Mercurial > kallithea
comparison rhodecode/templates/admin/admin_log.html @ 660:df61378032f3 beta
#48 rewrote action logger, translated action logger messages, added some extra messages. Linked and showed pushed revisions in logs
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 05 Nov 2010 22:36:51 +0100 |
parents | 1e757ac98988 |
children | 1af15d66838f |
comparison
equal
deleted
inserted
replaced
659:758f64f3fbda | 660:df61378032f3 |
---|---|
1 ## -*- coding: utf-8 -*- | 1 ## -*- coding: utf-8 -*- |
2 %if c.users_log: | 2 %if c.users_log: |
3 <table> | 3 <table> |
4 <tr> | 4 <tr> |
5 <th class="left">${_('Username')}</th> | 5 <th class="left">${_('Username')}</th> |
6 <th class="left">${_('Action')}</th> | |
6 <th class="left">${_('Repository')}</th> | 7 <th class="left">${_('Repository')}</th> |
7 <th class="left">${_('Action')}</th> | |
8 <th class="left">${_('Date')}</th> | 8 <th class="left">${_('Date')}</th> |
9 <th class="left">${_('From IP')}</th> | 9 <th class="left">${_('From IP')}</th> |
10 </tr> | 10 </tr> |
11 | 11 |
12 %for cnt,l in enumerate(c.users_log): | 12 %for cnt,l in enumerate(c.users_log): |
13 <tr class="parity${cnt%2}"> | 13 <tr class="parity${cnt%2}"> |
14 <td>${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))}</td> | 14 <td>${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))}</td> |
15 <td>${h.action_parser(l)}</td> | |
15 <td> | 16 <td> |
16 %if l.repository: | 17 %if l.repository: |
17 ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} | 18 ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} |
18 %else: | 19 %else: |
19 ${l.repository_name} | 20 ${l.repository_name} |
20 %endif | 21 %endif |
21 </td> | 22 </td> |
22 <td> | 23 |
23 % if l.action == 'push' and l.revision: | |
24 ${h.link_to('%s - %s' % (l.action,l.revision), | |
25 h.url('changeset_home',repo_name=l.repository.repo_name,revision=l.revision))} | |
26 %else: | |
27 ${l.action} | |
28 %endif | |
29 </td> | |
30 <td>${l.action_date}</td> | 24 <td>${l.action_date}</td> |
31 <td>${l.user_ip}</td> | 25 <td>${l.user_ip}</td> |
32 </tr> | 26 </tr> |
33 %endfor | 27 %endfor |
34 </table> | 28 </table> |