1 | <%inherit file="/base.mako"/> |
---|
2 | <%namespace file="/message.mako" import="render_msg" /> |
---|
3 | |
---|
4 | %if message: |
---|
5 | ${render_msg( message, 'done' )} |
---|
6 | %endif |
---|
7 | |
---|
8 | <div class="toolForm"> |
---|
9 | <h3 align="center">Date of Last Galaxy Login</h3> |
---|
10 | <h4 align="center">Listed in descending order by access date ( oldest date first )</h4> |
---|
11 | <table align="center" width="70%" class="colored" cellpadding="5" cellspacing="5"> |
---|
12 | <tr> |
---|
13 | <td> |
---|
14 | <form method="post" controller="users" action="last_access_date"> |
---|
15 | <p> |
---|
16 | %if users: |
---|
17 | ${len( users ) } |
---|
18 | %else: |
---|
19 | 0 |
---|
20 | %endif |
---|
21 | users have not logged in to Galaxy for |
---|
22 | <input type="textfield" value="${not_logged_in_for_days}" size="3" name="not_logged_in_for_days"> days. |
---|
23 | <button name="action" value="not_logged_in_for_days">Go</button> |
---|
24 | </p> |
---|
25 | </form> |
---|
26 | </td> |
---|
27 | </tr> |
---|
28 | </table> |
---|
29 | <table align="center" width="70%" class="colored" cellpadding="5" cellspacing="5"> |
---|
30 | %if users: |
---|
31 | <tr class="header"> |
---|
32 | <td>Email</td> |
---|
33 | <td>Date of last Login</td> |
---|
34 | </tr> |
---|
35 | <% ctr = 0 %> |
---|
36 | %for user in users: |
---|
37 | %if ctr % 2 == 1: |
---|
38 | <tr class="odd_row"> |
---|
39 | %else: |
---|
40 | <tr class="tr"> |
---|
41 | %endif |
---|
42 | <td>${user[0]}</td> |
---|
43 | <td>${user[1]}</td> |
---|
44 | </tr> |
---|
45 | <% ctr += 1 %> |
---|
46 | %endfor |
---|
47 | %else: |
---|
48 | <tr><td>All users have logged in to Galaxy within the past ${not_logged_in_for_days} days</td></tr> |
---|
49 | %endif |
---|
50 | </table> |
---|
51 | </div> |
---|