<commit_before>{#-
       Licensed to the Apache Software Foundation (ASF) under one
       or more contributor license agreements.  See the NOTICE file
       distributed with this work for additional information
       regarding copyright ownership.  The ASF licenses this file
       to you under the Apache License, Version 2.0 (the
       "License"); you may not use this file except in compliance
       with the License.  You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

       Unless required by applicable law or agreed to in writing,
       software distributed under the License is distributed on an
       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
       KIND, either express or implied.  See the License for the
       specific language governing permissions and limitations
       under the License.
-#}
{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
<form method="POST" action="update" enctype="multipart/form-data" id="metadata_form">
  <div class="grid-9">
    {%if not c.project.is_user_project %}
    {{ widget.display_label(widget.fields.name) }}
    <br>
    {{widget.display_field(widget.fields.name) }}
    <label for="shortname">Unixname</label>
    <br>
    <input id="shortname" type="text" disabled="disabled"
           value="{{c.project.shortname}}">

    {{ widget.display_label(widget.fields.external_homepage) }}
    <br>
    {{widget.display_field(widget.fields.external_homepage) }}

    {{ widget.display_label(widget.fields.video_url) }}
    <br>
    {{widget.display_field(widget.fields.video_url) }}
    {% endif %}

    {{ widget.display_label(widget.fields.summary) }}
    <br>
    {{widget.display_field(widget.fields.summary) }}
    <br>

    {%if not c.project.is_user_project %}
    {{ widget.display_label(widget.fields.short_description) }}
    <br>
    {{widget.display_field(widget.fields.short_description) }}

    <div style="clear:both">&nbsp;</div>

    <div id="features">
      {{ widget.display_label(widget.fields.features) }}
      {{ widget.display_field(widget.fields.features) }}
    </div>
    <br>

    {% if tg.config.get('support_tool_choices') %}
    Preferred Support Page (for users of your project):<br>
    {% if c.form_errors.get('support_page_url') %}
        <div class="error">{{c.form_errors.get('support_page_url')}}</div>
    {% endif %}
    <input name="support_page" type="radio" value=""{% if value.support_page == '' %} checked{% endif %} id="support_page_none">
    <label for="support_page_none">None</label><br>
    {% for ac in c.project.app_configs %}
      {% if ac.tool_name.lower() in tg.config['support_tool_choices'].split() %}
        <input name="support_page" type="radio" value="{{ac.options.mount_point}}" id="support_page_{{ac.options.mount_point}}"
               {% if value.support_page == ac.options.mount_point %} checked{% endif %}>
        <label for="support_page_{{ac.options.mount_point}}">{{ac.options.mount_label}}</label><br>
      {% endif %}
    {% endfor %}
    <input name="support_page" type="radio" value="_members" {% if value.support_page == '_members' %} checked{% endif %} id="support_page_members">
    <label for="support_page_members">Contact project admins</label><br>
    <input name="support_page" type="radio" value="_url" id="support_page_url_cb"
           {% if value.support_page == '_url' %} checked{% endif %}>
    <label for="support_page_url_cb">URL: </label>
    <input type="text" name="support_page_url" value="{{value.support_page_url}}" style="width: 70%"><br>
    {% endif %}

    {{ widget.display_label(widget.fields.twitter_handle) }}
    <br>
    {{widget.display_field(widget.fields.twitter_handle) }}

    {{ widget.display_label(widget.fields.facebook_page) }}
    <br>
    {{widget.display_field(widget.fields.facebook_page) }}

    {% if c.project.neighborhood.features['google_analytics'] %}
    {{ widget.display_label(widget.fields.tracking_id) }}
    <br>
    {{widget.display_field(widget.fields.tracking_id) }}
    {% endif %}
      {% endif%}
  </div>

  <div class="grid-10">
    <label>Project Logo:</label><commit_msg>Allow more admin page customization via some div classes, and jinja block<commit_after>{#-
       Licensed to the Apache Software Foundation (ASF) under one
       or more contributor license agreements.  See the NOTICE file
       distributed with this work for additional information
       regarding copyright ownership.  The ASF licenses this file
       to you under the Apache License, Version 2.0 (the
       "License"); you may not use this file except in compliance
       with the License.  You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

       Unless required by applicable law or agreed to in writing,
       software distributed under the License is distributed on an
       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
       KIND, either express or implied.  See the License for the
       specific language governing permissions and limitations
       under the License.
-#}
{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
<form method="POST" action="update" enctype="multipart/form-data" id="metadata_form">
  <div class="grid-9">
    {%if not c.project.is_user_project %}
    {{ widget.display_label(widget.fields.name) }}
    <br>
    {{widget.display_field(widget.fields.name) }}
    <label for="shortname">Unixname</label>
    <br>
    <input id="shortname" type="text" disabled="disabled"
           value="{{c.project.shortname}}">

    {{ widget.display_label(widget.fields.external_homepage) }}
    <br>
    {{widget.display_field(widget.fields.external_homepage) }}

    {{ widget.display_label(widget.fields.video_url) }}
    <br>
    {{widget.display_field(widget.fields.video_url) }}
    {% endif %}

    <div class="summary-fields">
    {{ widget.display_label(widget.fields.summary) }}
    <br>
    {{widget.display_field(widget.fields.summary) }}
    <br>
    </div>

    {% if not c.project.is_user_project %}
        <div class="description-fields">
        {{ widget.display_label(widget.fields.short_description) }}
        <br>
        {{widget.display_field(widget.fields.short_description) }}
        <div style="clear:both">&nbsp;</div>
        </div>

        <div id="features">
          {{ widget.display_label(widget.fields.features) }}
          {{ widget.display_field(widget.fields.features) }}
        </div>
        <br>

        {% if tg.config.get('support_tool_choices') %}
        <div class="support-page-fields">
        Preferred Support Page (for users of your project):<br>
        {% if c.form_errors.get('support_page_url') %}
            <div class="error">{{c.form_errors.get('support_page_url')}}</div>
        {% endif %}
        <input name="support_page" type="radio" value=""{% if value.support_page == '' %} checked{% endif %} id="support_page_none">
        <label for="support_page_none">None</label><br>
        {% for ac in c.project.app_configs %}
          {% if ac.tool_name.lower() in tg.config['support_tool_choices'].split() %}
            <input name="support_page" type="radio" value="{{ac.options.mount_point}}" id="support_page_{{ac.options.mount_point}}"
                   {% if value.support_page == ac.options.mount_point %} checked{% endif %}>
            <label for="support_page_{{ac.options.mount_point}}">{{ac.options.mount_label}}</label><br>
          {% endif %}
        {% endfor %}
        <input name="support_page" type="radio" value="_members" {% if value.support_page == '_members' %} checked{% endif %} id="support_page_members">
        <label for="support_page_members">Contact project admins</label><br>
        <input name="support_page" type="radio" value="_url" id="support_page_url_cb"
               {% if value.support_page == '_url' %} checked{% endif %}>
        <label for="support_page_url_cb">URL: </label>
        <input type="text" name="support_page_url" value="{{value.support_page_url}}" style="width: 70%"><br>
        </div>
        {% endif %}

        <div class="social-media-fields">
        {{ widget.display_label(widget.fields.twitter_handle) }}
        <br>
        {{widget.display_field(widget.fields.twitter_handle) }}

        {{ widget.display_label(widget.fields.facebook_page) }}
        <br>
        {{widget.display_field(widget.fields.facebook_page) }}
        </div>

        {% if c.project.neighborhood.features['google_analytics'] %}
        {{ widget.display_label(widget.fields.tracking_id) }}
        <br>
        {{widget.display_field(widget.fields.tracking_id) }}
        {% endif %}
    {% endif%}
    {% block fields_column1_end -%}
    {% endblock %}
  </div>

  <div class="grid-10">
    <label>Project Logo:</label>
{'fraction_non_alphanumeric': 0.14721560621526597, 'fraction_numerical': 0.002154927980038562, 'mean_word_length': 3.3438423645320197, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1694188', 'n_tokens_mistral': 2745, 'n_tokens_neox': 2588, 'n_words': 555}