Link to log
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 23 May 2011 14:43:39 +0000 (14:43 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 23 May 2011 14:43:39 +0000 (14:43 +0000)
www_templates/job.html

index c07525e8b61687187d131b4ccef6b40ecc82a071..512e534fc7ea0de2ce1eaba37e5ddd4c3d9a3947 100644 (file)
@@ -14,11 +14,21 @@ Job {{ job.id }} details
 <h3>Job {{ job.id }}</h3>
 <tt>{{ job.command }}</tt><br>
 {% if job.finish_time %}
-Status: <b>Completed</b> at {{ job.finish_time|date:"Y-m-d H:i:s" }} UTC in {{ job.process_time }}<br>
-Result: {% if job.result %}<b>Error {{ job.result }}</b>{% else %}<b>Success</b><br>
-Result size: {{ job.get_sucess_size|filesizeformat }}<br>
-Log size: {{ job.get_log_size|filesizeformat }}<br>
-<a href="/job/{{ job.id }}/download" class=button>download</a>{% endif %}<br>
+       Status: <b>Completed</b> at {{ job.finish_time|date:"Y-m-d H:i:s" }} UTC in {{ job.process_time }}<br>
+       Result:
+       {% if job.result %}
+               <b>Error {{ job.result }}</b><br>
+       {% else %}
+               <b>Success</b><br>
+               Result size: {{ job.get_sucess_size|filesizeformat }}<br>
+       {% endif %}
+       Log size: {{ job.get_log_size|filesizeformat }}<br>
+       {% if job.result %}
+       {% else %}
+               <a href="/job/{{ job.id }}/download" class=button>download</a>
+       {% endif %}
+       {% if job.get_log_size %}<a href="/job/{{ job.id }}/log" class=button>log</a>{% endif %}
+       <br>
 {% else %}
     {% if job.start_time %}
     Status: <b>Running</b> since {{ job.start_time|date:"Y-m-d H:i:s" }} UTC ( {{ job.running_time}} ) <br>