<commit_before>{% extends "djtracker/base.html" %}
{% load comments %}
{% block title %} - {{ issue }} {% endblock %}
{% block content %}
  <table style="width: 100%"><tr><td class="col" style="width: 100%; padding-right: 10px;">  
  <h3>{% if request.user.is_authenticated %}<small class="inlineaction">{% if can_edit %}<a href="{% url project_modify_issue project.slug issue.id %}">edit</a> |{% endif %} {% if is_watching %}<a href="{% url project_issue project.slug issue.id %}?watch=no">unwatch</a>{% else %}<a href="{% url project_issue project.slug issue.id %}?watch=yes">watch</a>{% endif %}</small>{% endif %}<a href="{{ issue.project.get_absolute_url }}">{{ issue.project }}</a> : {{ issue }}</h3>  
  <div class="description">{{ issue.description }}</div>
  <h4>{% if can_comment %}<small class="inlineaction"><a href="{% url project_file_upload project.slug issue.id %}">Add an Attachment</a></small>{% endif %}Attachments</h4>
  {% if issue.fileupload_set.all %}
  <ul>    
  {% for file in issue.fileupload_set.all %}
      <li><a href="{{ file.get_absolute_url }}">{{ file }}</a></li>
  {% endfor %}
  </ul>
  {% else %}
  <em>no attachments yet</em>
  {% endif %}
  {% get_comment_list for issue as comments %}
  {% if comments %}
    <h4>Comments</h4>
    {% for comment in comments %}
      <a name="comment{{comment.pk}}"/>(<a class="headerlink" title="permalink to this comment" href="#comment{{comment.pk}}">#</a>){% if comment.user %}
        <em style="color: #888888;"><a href="{{ comment.user.userprofile.get_absolute_url }}">{{ comment.user}}</a>{% else %}anon{% endif %}, {{ comment.submit_date|date:'r' }}:</em><br/>{{ comment.comment }}<br/><br/>
    {% endfor %}
  {% endif %}  
  {% if can_comment %}
  <h4>New Comment</h4>
  {% if request.user.is_authenticated %}
    {% get_comment_form for issue as form %}	
    <form action="{% comment_form_target %}" method="post">
		 {{ form.content_type }}
         {{ form.object_pk }}
         {{ form.timestamp }}
         {{ form.security_hash }}<commit_msg>issues and comments should at least have *some* markup (though ReST is not optimal, it's the only one which does not need additional libraries)<commit_after>{% extends "djtracker/base.html" %}
{% load comments %}
{% load markup %}
{% block title %} - {{ issue }} {% endblock %}
{% block content %}
  <table style="width: 100%"><tr><td class="col" style="width: 100%; padding-right: 10px;">  
  <h3>{% if request.user.is_authenticated %}<small class="inlineaction">{% if can_edit %}<a href="{% url project_modify_issue project.slug issue.id %}">edit</a> |{% endif %} {% if is_watching %}<a href="{% url project_issue project.slug issue.id %}?watch=no">unwatch</a>{% else %}<a href="{% url project_issue project.slug issue.id %}?watch=yes">watch</a>{% endif %}</small>{% endif %}<a href="{{ issue.project.get_absolute_url }}">{{ issue.project }}</a> : {{ issue }}</h3>  
  <div class="description">{{ issue.description|restructuredtext }}</div>
  <h4>{% if can_comment %}<small class="inlineaction"><a href="{% url project_file_upload project.slug issue.id %}">Add an Attachment</a></small>{% endif %}Attachments</h4>
  {% if issue.fileupload_set.all %}
  <ul>    
  {% for file in issue.fileupload_set.all %}
      <li><a href="{{ file.get_absolute_url }}">{{ file }}</a></li>
  {% endfor %}
  </ul>
  {% else %}
  <em>no attachments yet</em>
  {% endif %}
  {% get_comment_list for issue as comments %}
  {% if comments %}
    <h4>Comments</h4>
    {% for comment in comments %}
      <a name="comment{{comment.pk}}"/>(<a class="headerlink" title="permalink to this comment" href="#comment{{comment.pk}}">#</a>){% if comment.user %}
        <em style="color: #888888;"><a href="{{ comment.user.userprofile.get_absolute_url }}">{{ comment.user}}</a>{% else %}anon{% endif %}, {{ comment.submit_date|date:'r' }}:</em><br/>{{ comment.comment|restructuredtext }}<br/><br/>
    {% endfor %}
  {% endif %}  
  {% if can_comment %}
  <h4>New Comment</h4>
  {% if request.user.is_authenticated %}
    {% get_comment_form for issue as form %}	
    <form action="{% comment_form_target %}" method="post">
		 {{ form.content_type }}
         {{ form.object_pk }}
         {{ form.timestamp }}
         {{ form.security_hash }}
{'fraction_non_alphanumeric': 0.21563088512241055, 'fraction_numerical': 0.010357815442561206, 'mean_word_length': 4.258663366336633, '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': '5620882', 'n_tokens_mistral': 1563, 'n_tokens_neox': 1388, 'n_words': 335}