Mercurial > kallithea
annotate pylons_app/templates/admin/admin_log.html @ 193:50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 02:00:39 +0200 |
parents | 20dc7a5eb748 |
children | 64e1125fc479 |
rev | line source |
---|---|
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
79
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
2 %if c.users_log: |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
3 <table> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
4 <tr> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
5 <td>${_('Username')}</td> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
6 <td>${_('Repository')}</td> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
7 <td>${_('Action')}</td> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
8 <td>${_('Date')}</td> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
9 </tr> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
10 |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
11 %for cnt,l in enumerate(c.users_log): |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
12 <tr class="parity${cnt%2}"> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
13 <td>${l.user.username}</td> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
14 <td>${l.repository}</td> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
15 <td>${l.action}</td> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
16 <td>${l.action_date}</td> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
17 </tr> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
18 %endfor |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
19 |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
20 </table> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
21 <div> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
22 <script type="text/javascript"> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
23 var data_div = 'user_log'; |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
24 YAHOO.util.Event.onDOMReady(function(){ |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
25 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
26 YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});}); |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
27 </script> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
28 <h2>${c.users_log.pager('$link_previous ~2~ $link_next', |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
29 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
79
diff
changeset
|
30 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
79
diff
changeset
|
31 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
79
diff
changeset
|
32 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
33 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
34 </h2> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
35 </div> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
36 %else: |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
37 ${_('No actions yet')} |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
38 %endif |