<commit_before>{% extends "root.html" %}
{% load etcetera_tags %}

{% block title %}
   {{ object.make }} {{ object.model }} ({{ object.equipment_type }})
{% endblock %}

{% block breadcrumb %}
   <a href="{% url etcetera-home %}">Home</a> &rsaquo;
   <a href="{% url equipment-index %}">Equipment Inventory</a> &rsaquo;
   {{ object.make }} {{ object.model }} ({{ object.equipment_type }})
{% endblock %}

{% block content %}
<div id="detail">
   
   {% if object.barcode %}
      <div id="barcode">
         {{ object.barcode }}
      </div>
   {% endif %}
   
   <h1>
      <span class="right">
         <a href="{% url equipment-dupe object.id %}">duplicate</a>
         &bull; <a href="{% url equipment-edit object.id %}">edit</a>
      </span>
      {{ object.make }} {{ object.model }}
      <span class="head">{{ object.equipment_type }}</span>
   </h1>
   
   <h2>
      {% if object.status %}
         {% ifequal object.status "checkout" %}Available for {% endifequal %}
         {{ object.get_status_display }}
         {% if object.building %}
            {% ifequal object.status "missing" %}from
               {% else %}in
            {% endifequal %}
            {{ object.building.name }} {{ object.room }}
         {% endif %}
         {% else %}(this item has no status)
      {% endif %}
      <br />
      {% if object.last_inventoried %}
         Last inventoried on {{ object.last_inventoried|date:'n/j/Y' }}
      {% else %}
         &nbsp;
      {% endif %}
      <br /><commit_msg>Changed equipment detail page to show building abbreviation.<commit_after>{% extends "root.html" %}
{% load etcetera_tags %}

{% block title %}
   {{ object.make }} {{ object.model }} ({{ object.equipment_type }})
{% endblock %}

{% block breadcrumb %}
   <a href="{% url etcetera-home %}">Home</a> &rsaquo;
   <a href="{% url equipment-index %}">Equipment Inventory</a> &rsaquo;
   {{ object.make }} {{ object.model }} ({{ object.equipment_type }})
{% endblock %}

{% block content %}
<div id="detail">
   
   {% if object.barcode %}
      <div id="barcode">
         {{ object.barcode }}
      </div>
   {% endif %}
   
   <h1>
      <span class="right">
         <a href="{% url equipment-dupe object.id %}">duplicate</a>
         &bull; <a href="{% url equipment-edit object.id %}">edit</a>
      </span>
      {{ object.make }} {{ object.model }}
      <span class="head">{{ object.equipment_type }}</span>
   </h1>
   
   <h2>
      {% if object.status %}
         {% ifequal object.status "checkout" %}Available for {% endifequal %}
         {{ object.get_status_display }}
         {% if object.building %}
            {% ifequal object.status "missing" %}from
               {% else %}{% ifequal object.status "checkedout" %}from
                  {% else %}in
               {% endifequal %}
            {% endifequal %}
            {{ object.building.abbreviation }} {{ object.room }}
         {% endif %}
         {% else %}(this item has no status)
      {% endif %}
      <br />
      {% if object.last_inventoried %}
         Last inventoried on {{ object.last_inventoried|date:'n/j/Y' }}
      {% else %}
         &nbsp;
      {% endif %}
      <br />
{'fraction_non_alphanumeric': 0.18840579710144928, 'fraction_numerical': 0.001890359168241966, 'mean_word_length': 2.184553660982949, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '5694213', 'n_tokens_mistral': 1120, 'n_tokens_neox': 984, 'n_words': 223}