<commit_before>{% extends "base.html" %}

{% block title %}PyTutor::Question Editor{% endblock %}

{% block body %}

<section id="question-form">
    <h1>Question Editor</h1>
    <dl id="question-info">
        <dt>Created by:</dt>
          <dd>{{question.instance.creator}} on {{question.instance.created}}</dd>
        <dt>Last modified by:</dt>
          <dd>{{question.instance.modifier}} on {{question.instance.modified}}</dd>
        <dt>Version:</dt>
          <dd>{{question.instance.version}}</dd>
    </dl>
    <h3>
    <form action="/tutor/save" method="post">
        {% csrf_token %}
        <input type="hidden" name="pk" value="{{pk}}">
        {{ question.as_p }}
        <input type="submit" value="Submit">
    </form>
</section>

{% endblock %}<commit_msg>added table showing revision history for quesitons, but no links yet to previous versions<commit_after>{% extends "base.html" %}

{% block title %}PyTutor::Question Editor{% endblock %}

{% block body %}

<section id="question-form">
    <h1>Question Editor</h1>
    <dl id="question-info">
        <dt>Created by:</dt>
          <dd>{{question.instance.creator}} on {{question.instance.created}}</dd>
        <dt>Last modified by:</dt>
          <dd>{{question.instance.modifier}} on {{question.instance.modified}}</dd>
        <dt>Version:</dt>
          <dd>{{question.instance.version}}</dd>
    </dl>
    <h3>
    <form action="/tutor/save" method="post">
        {% csrf_token %}
        <input type="hidden" name="pk" value="{{pk}}">
        {{ question.as_p }}
        <input type="submit" value="Submit">
    </form>
</section>

<aside id="question-history">
    <h2>Revision History</h2>
    <table>
        <tr><th>version</th><th>date modified</th><th>modified by</th></tr>
        {% for aq in history %}
            <tr class="{% cycle 'odd' 'even'%}"><td>{{aq.version}}</td><td>{{aq.modified}}</td><td>{{aq.modifier}}</td></tr>
        {% endfor %}
    </table>


</aside>

{% endblock %}
{'fraction_non_alphanumeric': 0.21020717534108135, 'fraction_numerical': 0.00404244567963618, 'mean_word_length': 2.9919354838709675, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '2761664', 'n_tokens_mistral': 685, 'n_tokens_neox': 629, 'n_words': 125}