<commit_before>{% extends "fpr/app_layout.html" %}
{% load staticfiles %}

{% block title %}Archivematica FPR Server - Identification Rules{% endblock title %}

{% block page_title %}
Identification Rule Information
{% endblock page_title %}

{% block breadcrumbs %}
{{ block.super }}
<li>Identification Rules</li>
{% endblock breadcrumbs %}

{% block app_content %}
<div class="row">

  {% include 'fpr/_sidebar.html' %}

  <div class="span10">

  {% if request.user.is_superuser %}
  <p><a href="{% url 'idrule_create' %}">Create New Rule</a></p>
  {% endif %}

{% if idrules %}
  <table class="datatable">
    <thead>
      <tr>
        <th>Format</th>
        <th>Command</th>
        <th>Output</th>
        <th>Tools</th>
        <th>Actions</th>
      </tr>
    </thead>
    <tbody>
    {% for idrule in idrules %}
      <tr>
        <td><a href="{% url 'format_detail' idrule.format.format.slug %}">{{ idrule.format }}</a></td>
        <td><a href="{% url 'idcommand_detail' idrule.command.uuid %}">{{ idrule.command.description }}</a></td>
        <td><a href="{% url 'idrule_detail' idrule.uuid %}">{{ idrule.command_output }}</a></td>
        <td>
          {% for tool in idrule.command.tool.all %}
            <a href="{% url 'idtool_detail' tool.slug %}">{{ tool }}</a><br />
          {% endfor %}
        </td>
        <td>
          <a href="{% url 'idrule_detail' idrule.uuid %}">View</a>
          {% if request.user.is_superuser %}
            | <a href="{% url 'idrule_edit' idrule.uuid %}">Replace</a>
            | <a href="{% url 'idrule_delete' idrule.uuid %}">Disable</a>
          {% endif %}
        </td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
{% else %}
  <p>No identification rules exist.</p><commit_msg>IDRule: fix display associated tool<commit_after>{% extends "fpr/app_layout.html" %}
{% load staticfiles %}

{% block title %}Archivematica FPR Server - Identification Rules{% endblock title %}

{% block page_title %}
Identification Rule Information
{% endblock page_title %}

{% block breadcrumbs %}
{{ block.super }}
<li>Identification Rules</li>
{% endblock breadcrumbs %}

{% block app_content %}
<div class="row">

  {% include 'fpr/_sidebar.html' %}

  <div class="span10">

  {% if request.user.is_superuser %}
  <p><a href="{% url 'idrule_create' %}">Create New Rule</a></p>
  {% endif %}

{% if idrules %}
  <table class="datatable">
    <thead>
      <tr>
        <th>Format</th>
        <th>Command</th>
        <th>Output</th>
        <th>Tools</th>
        <th>Actions</th>
      </tr>
    </thead>
    <tbody>
    {% for idrule in idrules %}
      <tr>
        <td><a href="{% url 'format_detail' idrule.format.format.slug %}">{{ idrule.format }}</a></td>
        <td><a href="{% url 'idcommand_detail' idrule.command.uuid %}">{{ idrule.command.description }}</a></td>
        <td><a href="{% url 'idrule_detail' idrule.uuid %}">{{ idrule.command_output }}</a></td>
        <td><a href="{% url 'idtool_detail' idrule.command.tool.slug %}">{{ idrule.command.tool }}</a></td>
        <td>
          <a href="{% url 'idrule_detail' idrule.uuid %}">View</a>
          {% if request.user.is_superuser %}
            | <a href="{% url 'idrule_edit' idrule.uuid %}">Replace</a>
            | <a href="{% url 'idrule_delete' idrule.uuid %}">Disable</a>
          {% endif %}
        </td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
{% else %}
  <p>No identification rules exist.</p>
{'fraction_non_alphanumeric': 0.20336524514070206, 'fraction_numerical': 0.0011604293588627793, 'mean_word_length': 2.7195253505933117, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 112, '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': '219691', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1168, 'n_words': 260}