X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=qcg%2Ftemplates%2Fqcg%2Fjob.html;h=d3c3922cc2cbaf25c100f3ba5c6fa71602b32023;hb=5d89371016f27ca592862971f0e4c56a32c497bd;hp=cb8b687727a0650b06778a27d47ca5062b573448;hpb=b9bcd422c66e0cd9b0f20a0c037dbc2d811bb59f;p=qcg-portal.git diff --git a/qcg/templates/qcg/job.html b/qcg/templates/qcg/job.html index cb8b687..d3c3922 100644 --- a/qcg/templates/qcg/job.html +++ b/qcg/templates/qcg/job.html @@ -1,5 +1,5 @@ {% extends 'qcg/base.html' %} -{% load qcg_utils %} +{% load qcg_utils bootstrap3 %} {% block container %} +
+ {% if not job.terminated %} +
+ {% csrf_token %} + +
+ {% elif not job.purged %} +
+ {% csrf_token %} + +
+ {% endif %} +
+

{% block title %}Job {{ job.job_id }}{% endblock %}

@@ -25,7 +39,7 @@ {% display_attribute 'Status' job.get_status_display %} {% display_attribute 'Notatka' job.note %} {% display_attribute 'Projekt' job.project %} - {% display_attribute 'Czas życia proxy' job.proxy_lifetime %} + {% display_attribute 'Czas życia proxy' job.proxy_lifetime|timeuntil %} {% display_attribute 'Data zlecenia' job.submission_time %} {% display_attribute 'Data zakończenia' job.finish_time %} {% display_attribute 'Usunięty katalog roboczy?' job.purged %} @@ -37,6 +51,7 @@ {% else %} -
-
Brak elementów
-
+
Brak elementów
{% endif %}
-
{{ job.description }}
+ + + {% if job.get_description_type_display != 'QCG' %} +

Opis użytkownika

+
{{ job.description }}
+ {% endif %} + +

Opis QCG

+
{{ job.qcg_description|format_xml }}
+ + {% endblock container %}