comparison frontend/mfrontend/templates/joblist.html @ 29:28eb82047167

Ukończona strona klienta
author mild@mild-laptop
date Sun, 05 Jun 2011 23:09:18 +0200
parents 9916d46ff096
children
comparison
equal deleted inserted replaced
28:d017e2ab3027 29:28eb82047167
1 {% extends "layout.html" %} 1 {% extends "layout.html" %}
2 {% block body %} 2 {% block body %}
3 <table border="0" cellpadding="0" cellspacing="0" class="tbt"><tr>
4 <td class="tbtl">&nbsp;</td>
5 <td class="tbtbot" nowrap="nowrap"><b>Lista zadań</b></td>
6 <td class="tbtr">&nbsp;</td>
7 </tr></table>
3 8
4 <div class="frame"> 9 <table align="center" width="100%" border="0" cellspacing="1" cellpadding="4" class="forumline">
5 <div class="ft"><div class="ftl"></div><div class="ftc">Lista zadań</div><div class="ftr"></div></div> 10 <tr>
6 <div class="fm"> 11 <td class="row1">
7 12 <table border="0" cellpadding="0" cellspacing="0" class="tbt" width="70%" align="center">
8 <table class="inner" width="100%">
9 <tr> 13 <tr>
10 <th class="colhead">id</th> 14 <th class="colhead">id</th>
11 <th class="colhead">Właściciel</th> 15 <th class="colhead">Właściciel</th>
12 <th class="colhead">Hash</th> 16 <th class="colhead">Hash</th>
13 <th class="colhead">Opis</th> 17 <th class="colhead">Opis</th>
21 <tr class="row{{ job.index % 2 + 2}}"> 25 <tr class="row{{ job.index % 2 + 2}}">
22 <td>{{ job.id }}</td> 26 <td>{{ job.id }}</td>
23 <td>{{ job.username }}</td> 27 <td>{{ job.username }}</td>
24 <td>{{ job.hash }}</td> 28 <td>{{ job.hash }}</td>
25 <td>{{ job.label }}</td> 29 <td>{{ job.label }}</td>
26 <td>{{ job.method }}</td> 30 <td>{% if job.method is sameas 0 %}
27 <td>{{ job.state_text }}</td> 31 Brute-force
28 <td>{% if job.percent is not sameas None %} 32 {% else %}
29 {{ job.percent }}% 33 słownik
34 {% endif %}</td>
35 <td align="center">{{ job.state_text }}</td>
36 <td align="center">{% if job.percent is not sameas None %}
37 {% if job.percent == 100 %}
38 <span class="state100">{{job.percent}}</span>
39 {% else %}
40 {% if job.percent >= 87 %}
41 <span class="state87">{{job.percent}}</span>
42 {% else %}
43 {% if job.percent >= 75 %}
44 <span class="state75">{{job.percent}}</span>
45 {% else %}
46 {% if job.percent >= 62 %}
47 <span class="state62">{{job.percent}}</span>
48 {% else %}
49 {% if job.percent >= 50 %}
50 <span class="state50">{{job.percent}}</span>
51 {% else %}
52 {% if job.percent >= 37 %}
53 <span class="state37">{{job.percent}}</span>
54 {% else %}
55 {% if job.percent >= 25 %}
56 <span class="state25">{{job.percent}}</span>
57 {% else %}
58 {% if job.percent >= 12 %}
59 <span class="state12">{{job.percent}}</span>
60 {% else %}
61 <span class="state0">{{job.percent}}</span>
62 {% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}
63
30 {% else %} 64 {% else %}
31 brak danych 65 brak danych
32 {% endif %} 66 {% endif %}
33 </td> 67 </td>
34 <td>{{ job.result }}</td> 68 <td align="center">
69 {% if job.result is not sameas None %}
70 {{job.result}}
71 {% else %}
72 brak danych
73 {% endif %}
74 </td>
35 </tr> 75 </tr>
36 {% endfor %} 76 {% endfor %}
37 </table> 77 </table></td></tr></table>
38 </div> 78 <table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr>
39 <div class="fb"><div class="fbl"></div><div class="fbc"></div><div class="fbr"></div></div> 79 <td class="tbll">&nbsp;</td>
40 </div> 80 <td class="tblbot">&nbsp;</td>
41 &nbsp; 81 <td class="tblr">&nbsp;</td>
42 </div> 82 </tr></table>
83 <script>
84 function refresh()
85 {
86 $.ajax({
87 url: "/jobs/ajax/",
88 success: function (html){
89 $("#result").html(html);
90
91 }
92 });
93 }
94 setTimeout(refresh,5000);
95 </script>
43 {% endblock %} 96 {% endblock %}
44 97