<commit_before>{% extends "base.html" %}
{% load projecttags %}
{% load bootstrap %}

{% block title %}
    {{ block.super }} - Submission Details
{% endblock %}

{% block content %}
<div class="page-header">
    <h1>Submission Details</h1>
</div>

{% details_table submission %}

{% endblock %}
<commit_msg>Allow withdraw and re-upload from details page. Closes #26<commit_after>{% extends "base.html" %}
{% load projecttags %}
{% load bootstrap %}

{% block title %}
    {{ block.super }} - Submission Details
{% endblock %}

{% block content %}
<div class="page-header">
    <h1>Submission Details</h1>
</div>

{% details_table submission %}

{% if submission.can_reupload %}
    <p></p>
    <a href="{% url 'update' submission.pk %}" class="btn btn-default"><span class="glyphicon glyphicon-upload"></span> Re-upload</a>
{% endif %}
{% if submission.can_withdraw %}
    <p></p>
    <a href="{% url 'withdraw' submission.pk %}" class="btn btn-default"><span class="glyphicon glyphicon-trash"></span> Withdraw</a>
{% endif %}

{% endblock %}

{'fraction_non_alphanumeric': 0.19540229885057472, 'fraction_numerical': 0.005747126436781609, 'mean_word_length': 4.251256281407035, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '6329378', 'n_tokens_mistral': 381, 'n_tokens_neox': 331, 'n_words': 82}