/
requests_user_per_month.mako
59 lines (55 loc) · 1.92 KB
/
requests_user_per_month.mako
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
<%namespace file="/sorting_base.mako" import="get_sort_url, get_css" />
<%
from galaxy import util
%>
%if message:
${render_msg( message, 'done' )}
%endif
${get_css()}
<div class="report">
<div class="reportBody">
<h3 align="center">
Sequencing requests per month for user
"${util.restore_text( email )}"
</h3>
<table align="center" width="60%" class="colored">
%if len( requests ) == 0:
<tr>
<td colspan="2">
There are no requests for user
"${util.restore_text( email )}"
</td>
</tr>
%else:
<tr class="header">
<td class="half_width">
${get_sort_url(sort_id, order, 'date', 'users', 'requests_users_per_month', 'Month')}
<span class='dir_arrow date'>${arrow}</span>
</td>
<td class="half_width">Total
${get_sort_url(sort_id, order, 'num_users', 'users', 'requests_users_per_month', 'Month')}
<span class='dir_arrow num_users'>${arrow}</span>
</td>
</tr>
<% ctr = 0 %>
%for request in requests:
<%
month = request[0]
total = request[1]
%>
%if ctr % 2 == 1:
<tr class="odd_row">
%else:
<tr class="tr">
%endif
<td>${month}</td>
<td>${total}</td>
</tr>
<% ctr += 1 %>
%endfor
%endif
</table>
</div>
</div>