30
|
1 {% block body %}
|
|
2 <table border="0" cellpadding="0" cellspacing="0" class="tbt"><tr>
|
|
3 <td class="tbtl"> </td>
|
|
4 <td class="tbtbot" nowrap="nowrap"><b>Lista zadań</b></td>
|
|
5 <td class="tbtr"> </td>
|
|
6 </tr></table>
|
|
7
|
|
8 <table align="center" width="100%" border="0" cellspacing="1" cellpadding="4" class="forumline">
|
|
9 <tr>
|
|
10 <td class="row1">
|
|
11 <table border="0" cellpadding="0" cellspacing="0" class="tbt" width="70%" align="center">
|
|
12 <tr>
|
|
13 <th class="colhead">id</th>
|
|
14 <th class="colhead">Właściciel</th>
|
|
15 <th class="colhead">Hash</th>
|
|
16 <th class="colhead">Opis</th>
|
|
17 <th class="colhead">Metoda</th>
|
|
18 <th class="colhead">Stan</th>
|
|
19 <th class="colhead">Postęp</th>
|
|
20 <th class="colhead">Wynik</th>
|
|
21
|
|
22 </tr>
|
|
23 {% for job in jobs %}
|
|
24 <tr class="row{{ job.index % 2 + 2}}">
|
|
25 <td>{{ job.id }}</td>
|
|
26 <td>{{ job.username }}</td>
|
|
27 <td>{{ job.hash }}</td>
|
|
28 <td>{{ job.label }}</td>
|
|
29 <td>{% if job.method is sameas 0 %}
|
|
30 Brute-force
|
|
31 {% else %}
|
|
32 słownik
|
|
33 {% endif %}</td>
|
|
34 <td align="center">{{ job.state_text }}</td>
|
|
35 <td align="center">{% if job.percent is not sameas None %}
|
|
36 {% if job.percent == 100 %}
|
|
37 <span class="state100">{{job.percent}}</span>
|
|
38 {% else %}
|
|
39 {% if job.percent >= 87 %}
|
|
40 <span class="state87">{{job.percent}}</span>
|
|
41 {% else %}
|
|
42 {% if job.percent >= 75 %}
|
|
43 <span class="state75">{{job.percent}}</span>
|
|
44 {% else %}
|
|
45 {% if job.percent >= 62 %}
|
|
46 <span class="state62">{{job.percent}}</span>
|
|
47 {% else %}
|
|
48 {% if job.percent >= 50 %}
|
|
49 <span class="state50">{{job.percent}}</span>
|
|
50 {% else %}
|
|
51 {% if job.percent >= 37 %}
|
|
52 <span class="state37">{{job.percent}}</span>
|
|
53 {% else %}
|
|
54 {% if job.percent >= 25 %}
|
|
55 <span class="state25">{{job.percent}}</span>
|
|
56 {% else %}
|
|
57 {% if job.percent >= 12 %}
|
|
58 <span class="state12">{{job.percent}}</span>
|
|
59 {% else %}
|
|
60 <span class="state0">{{job.percent}}</span>
|
|
61 {% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}
|
|
62
|
|
63 {% else %}
|
|
64 brak danych
|
|
65 {% endif %}
|
|
66 </td>
|
|
67 <td align="center">
|
|
68 {% if job.result is not sameas None %}
|
|
69 {{job.result}}
|
|
70 {% else %}
|
|
71 brak danych
|
|
72 {% endif %}
|
|
73 </td>
|
|
74 </tr>
|
|
75 {% endfor %}
|
|
76 </table></td></tr></table>
|
|
77 <table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr>
|
|
78 <td class="tbll"> </td>
|
|
79 <td class="tblbot"> </td>
|
|
80 <td class="tblr"> </td>
|
|
81 </tr></table>
|
|
82 <script>
|
|
83 function refresh()
|
|
84 {
|
|
85 $.ajax({
|
|
86 url: "/jobs/ajax/",
|
|
87 success: function (html){
|
|
88 $("#result").html(html);
|
|
89 }
|
|
90 });
|
|
91 }
|
|
92 setTimeout(refresh,5000);
|
|
93 </script>
|
|
94 {% endblock %}
|