Source

HackersEdge / he_one / templates / he_one / task_list.html

Full commit
Kevin Veroneau 8d6c3a4 

































{% extends "base.html" %}
{% load hackers_edge %}
{% load url from future %}
{% load cache %}

{% block css %}.jtable tr .ui-state-hover { font-weight: normal; }{% endblock %}

{% block title %}Running Tasks{% endblock %}

{% block jquery %}
{{block.super}}
  $(".jtable th").each(function(){ $(this).addClass("ui-state-default"); });
  $(".jtable td").each(function(){ $(this).addClass("ui-widget-content"); });
  $(".jtable tr").hover(function(){
   $(this).children("td").addClass("ui-state-hover");
  }, function(){
   $(this).children("td").removeClass("ui-state-hover");
  });
{% endblock %}

{% block content %}
<h2>Running Tasks</h2>
{% if object_list.count > 0 %}
<table class="jtable" width="600">
<thead><tr><th>Host</th><th>Target Host</th><th>Target</th><th>Time until completion</th></tr></thead>
<tbody>
{% for task in object_list %}
<tr><td>{{task.host|link}}</td><td>{{task.target_host|link}}</td><td>{{task.target|link}}</td><td>{{task.end_time|timeuntil}}</td></tr>
{% endfor %}
</tbody>
</table>
{% else %}
No currently running tasks found.
{% endif %}
{% endblock %}