Mercurial > kallithea
comparison rhodecode/templates/admin/admin_log.html @ 547:1e757ac98988
renamed project to rhodecode
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Oct 2010 03:18:16 +0200 |
parents | pylons_app/templates/admin/admin_log.html@48be953851fc |
children | df61378032f3 |
comparison
equal
deleted
inserted
replaced
546:7c2f5e4d7bbf | 547:1e757ac98988 |
---|---|
1 ## -*- coding: utf-8 -*- | |
2 %if c.users_log: | |
3 <table> | |
4 <tr> | |
5 <th class="left">${_('Username')}</th> | |
6 <th class="left">${_('Repository')}</th> | |
7 <th class="left">${_('Action')}</th> | |
8 <th class="left">${_('Date')}</th> | |
9 <th class="left">${_('From IP')}</th> | |
10 </tr> | |
11 | |
12 %for cnt,l in enumerate(c.users_log): | |
13 <tr class="parity${cnt%2}"> | |
14 <td>${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))}</td> | |
15 <td> | |
16 %if l.repository: | |
17 ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} | |
18 %else: | |
19 ${l.repository_name} | |
20 %endif | |
21 </td> | |
22 <td> | |
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> | |
31 <td>${l.user_ip}</td> | |
32 </tr> | |
33 %endfor | |
34 </table> | |
35 | |
36 <script type="text/javascript"> | |
37 var data_div = 'user_log'; | |
38 YAHOO.util.Event.onDOMReady(function(){ | |
39 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ | |
40 YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});}); | |
41 </script> | |
42 | |
43 | |
44 <div class="pagination-wh pagination-left"> | |
45 ${c.users_log.pager('$link_previous ~2~ $link_next', | |
46 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ | |
47 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; | |
48 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ | |
49 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); | |
50 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} | |
51 </div> | |
52 %else: | |
53 ${_('No actions yet')} | |
54 %endif |