<commit_before>{% load render_object %}
{% load rules %}
{% load permission_tags %}
{% load addcss %}

{% with 'acrelation'|create_perm_tuple:instance.id as permTuple %}
{% test_rule 'can_update_citation_field' user permTuple as can_update %}
{% test_rule 'can_view_citation_field' user permTuple as can_view %}

<div class="clearfix"></div>

<div class="form-group row">
  <div class="col-xs-12">


      <div style="background-color: #f9f9f9; border-radius: 6px; margin-bottom: 4px; border: solid #ddd 1px; padding-left: 3px; padding-right: 3px;">
        <table>
          <tr>
          <td style="vertical-align: top;" width="40px">
            <label class="input-xs">
              Cat.
              {% if can_update %}
              <a href="{% url 'curation:subjects_and_categories' instance.id %}?search={{ search_key }}&current={{ current_index }}" ><i class="fa fa-pencil" aria-hidden="true"></i></a>
              {% endif %}

            </label>
          </td>
          <td class="form-fields-xs phaedra-colors" style="margin-top: 5px;">
            {% for acrelation in instance.acrelation_set.all %}
                {% if acrelation.type_controlled == 'CA' %}
                      <a href="{% if acrelation.authority.public %}{% url 'authority' acrelation.authority.id %}{% else %}{% url 'curation:curate_authority' acrelation.authority.id %}{% endif%}" class="categories_subject_list label label-{{ acrelation.authority|get_label_class }} {% if not acrelation.authority.public %}not_public{% endif %}">
                        {% if not acrelation.public %}
                        <i class="fa fa-eye-slash" title="The linked record is not public."></i>
                        {% endif %}
                        {{ acrelation.authority.name }}
                      </a>
                {% endif %}
            {% endfor %}
          </td>
        </tr>
        </table>
      </div>

      <div style="background-color: #f1f1f1; border-radius: 6px; margin-bottom: 4px; border: solid #ddd 1px; padding-left: 3px; padding-right: 3px;">
        <table>
          <tr>
          <td style="vertical-align: top;" width="40px">
            <label class="input-xs">
              Subj.
              {% if can_update %}
              <a href="{% url 'curation:subjects_and_categories' instance.id %}?search={{ search_key }}&current={{ current_index }}" ><i class="fa fa-pencil" aria-hidden="true"></i></a>
              {% endif %}
            </label>
          </td>
          <td class="form-fields-xs phaedra-colors" style="margin-top: 5px;">
            {% for acrelation in instance.acrelation_set.all %}
                {% if acrelation.type_controlled == 'SU' %}
                      <a href="{% if acrelation.authority.public %}{% url 'authority' acrelation.authority.id %}{% else %}{% url 'curation:curate_authority' acrelation.authority.id %}{% endif%}" class="categories_subject_list label label-{{ acrelation.authority|get_label_class }} {% if not acrelation.authority.public %}not_public{% endif %}">
                        {% if not acrelation.public %}
                        <i class="fa fa-eye-slash" title="The linked record is not public."></i>
                        {% endif %}
                        {{ acrelation.authority.name }}
                      </a>
                {% endif %}
            {% endfor %}
          </td>
        </tr>
        </table>
      </div>
    </div>
  </div>
{% endwith %}<commit_msg>[IEXP-15] adjusted height of cat/subj td<commit_after>{% load render_object %}
{% load rules %}
{% load permission_tags %}
{% load addcss %}

{% with 'acrelation'|create_perm_tuple:instance.id as permTuple %}
{% test_rule 'can_update_citation_field' user permTuple as can_update %}
{% test_rule 'can_view_citation_field' user permTuple as can_view %}

<div class="clearfix"></div>

<div class="form-group row">
  <div class="col-xs-12">

    <div style="background-color: #f9f9f9; border-radius: 6px; margin-bottom: 4px; border: solid #ddd 1px; padding-left: 3px; padding-right: 3px;">
        <table>
          <tr>
          <td style="vertical-align: top;" height="40px" width="40px">
            <label class="input-xs">
              Cat.
              {% if can_update %}
              <a href="{% url 'curation:subjects_and_categories' instance.id %}?search={{ search_key }}&current={{ current_index }}" ><i class="fa fa-pencil" aria-hidden="true"></i></a>
              {% endif %}
            </label>
          </td>
          <td class="form-fields-xs phaedra-colors" style="margin-top: 5px; vertical-align: top;" ">
            {% for acrelation in instance.acrelation_set.all %}
                {% if acrelation.type_controlled == 'CA' %}
                      <a href="{% if acrelation.authority.public %}{% url 'authority' acrelation.authority.id %}{% else %}{% url 'curation:curate_authority' acrelation.authority.id %}{% endif%}" class="categories_subject_list label label-{{ acrelation.authority|get_label_class }} {% if not acrelation.authority.public %}not_public{% endif %}">
                        {% if not acrelation.public %}
                        <i class="fa fa-eye-slash" title="The linked record is not public."></i>
                        {% endif %}
                        {{ acrelation.authority.name }}
                      </a>
                {% endif %}
            {% endfor %}
          </td>
        </tr>
        </table>
      </div>

      <div style="background-color: #f1f1f1; border-radius: 6px; margin-bottom: 4px; border: solid #ddd 1px; padding-left: 3px; padding-right: 3px;">
        <table>
          <tr>
          <td style="vertical-align: top;" height="40px" width="40px">
            <label class="input-xs">
              Subj.
              {% if can_update %}
              <a href="{% url 'curation:subjects_and_categories' instance.id %}?search={{ search_key }}&current={{ current_index }}" ><i class="fa fa-pencil" aria-hidden="true"></i></a>
              {% endif %}
            </label>
          </td>
          <td class="form-fields-xs phaedra-colors" style="margin-top: 5px; vertical-align: top;">
            {% for acrelation in instance.acrelation_set.all %}
                {% if acrelation.type_controlled == 'SU' %}
                      <a href="{% if acrelation.authority.public %}{% url 'authority' acrelation.authority.id %}{% else %}{% url 'curation:curate_authority' acrelation.authority.id %}{% endif%}" class="categories_subject_list label label-{{ acrelation.authority|get_label_class }} {% if not acrelation.authority.public %}not_public{% endif %}">
                        {% if not acrelation.public %}
                        <i class="fa fa-eye-slash" title="The linked record is not public."></i>
                        {% endif %}
                        {{ acrelation.authority.name }}
                      </a>
                {% endif %}
            {% endfor %}
          </td>
        </tr>
        </table>
      </div>
    </div>
  </div>
{% endwith %}
{'fraction_non_alphanumeric': 0.15819450377331626, 'fraction_numerical': 0.007689021785561726, 'mean_word_length': 2.0929106120651695, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1091754', 'n_tokens_mistral': 2302, 'n_tokens_neox': 2039, 'n_words': 465}