<commit_before>{% extends "instance_base.html" %}
{% load instance_config %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load auth_extras %}
{% load form_extras %}

{% block page_title %} | {% trans "Planting Site" %} {{plot.pk}}{% endblock %}

{% block head_extra %}
{% endblock head_extra %}

{% block subhead_exports %}
{# Exporting is not available from the plot detail page #}
{% endblock subhead_exports %}

{% block content %}
{% include "treemap/partials/upload_image.html" with panel_id="add-photo-modal" title="Add a Photo" endpoint=upload_tree_photo_url %}

<div class="image-background"></div>
<div class="container contained tree-details">
  <div class="row-fluid">
    <div class="span3">
      {% with photo=tree.most_recent_photo %}
      {% if photo %}
      <a href="{{ photo.image.url }}"><img id="tree-photo" src="{{ photo.thumbnail.url }}"></a>
      {% else %}
      <img src="{{ STATIC_URL }}img/tree.png">
      {% endif %}
      {% endwith %}
      <button id="toggle-add-photo-modal"
         data-toggle="modal"
         data-target="#add-photo-modal"
         data-always-enable="{{ last_effective_instance_user.can_add_photos_to_tree }}"
         data-href="{{ request.get_full_path }}"
         disabled="disabled"
         data-disabled-title="{% trans "Adding tree photos is not available to all users" %}"
         class="btn btn-mini add-photos">{% trans "Add Photo" %}</button>
      <div id="upload-error" class="text-error" style="display: none"></div>
      <hr>
      <div id="sidebar">
        {% include "treemap/partials/sidebar.html" %}
      </div>
    </div>
    <div class="span6">
      <h1>{{ tree.species.common_name }} <small>{{ tree.species.scientific_name }}</small></h1>
      <h5>{{ plot.address_full }}</h5>
      <button id="edit-plot"
              data-class="display"
              disabled="disabled"<commit_msg>In template for plot page, image element needs an ID whether or not photos exist<commit_after>{% extends "instance_base.html" %}
{% load instance_config %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load auth_extras %}
{% load form_extras %}

{% block page_title %} | {% trans "Planting Site" %} {{plot.pk}}{% endblock %}

{% block head_extra %}
{% endblock head_extra %}

{% block subhead_exports %}
{# Exporting is not available from the plot detail page #}
{% endblock subhead_exports %}

{% block content %}
{% include "treemap/partials/upload_image.html" with panel_id="add-photo-modal" title="Add a Photo" endpoint=upload_tree_photo_url %}

<div class="image-background"></div>
<div class="container contained tree-details">
  <div class="row-fluid">
    <div class="span3">
      {% with photo=tree.most_recent_photo %}
      {% if photo %}
      <a href="{{ photo.image.url }}"><img id="tree-photo" src="{{ photo.thumbnail.url }}"></a>
      {% else %}
      <img id="tree-photo" src="{{ STATIC_URL }}img/tree.png">
      {% endif %}
      {% endwith %}
      <button id="toggle-add-photo-modal"
         data-toggle="modal"
         data-target="#add-photo-modal"
         data-always-enable="{{ last_effective_instance_user.can_add_photos_to_tree }}"
         data-href="{{ request.get_full_path }}"
         disabled="disabled"
         data-disabled-title="{% trans "Adding tree photos is not available to all users" %}"
         class="btn btn-mini add-photos">{% trans "Add Photo" %}</button>
      <div id="upload-error" class="text-error" style="display: none"></div>
      <hr>
      <div id="sidebar">
        {% include "treemap/partials/sidebar.html" %}
      </div>
    </div>
    <div class="span6">
      <h1>{{ tree.species.common_name }} <small>{{ tree.species.scientific_name }}</small></h1>
      <h5>{{ plot.address_full }}</h5>
      <button id="edit-plot"
              data-class="display"
              disabled="disabled"
{'fraction_non_alphanumeric': 0.17692907248636008, 'fraction_numerical': 0.005196154845414394, 'mean_word_length': 3.2730299667036626, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 51, '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': '5559329', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1189, 'n_words': 276}