Mercurial > kallithea
annotate rhodecode/templates/admin/admin_log.html @ 3527:87c97fcea029 beta
Adding the context bar too all pages related to a Repository.
Deleted top menu items that are on the context bar already.
author | Leonardo <leo@unity3d.com> |
---|---|
date | Mon, 04 Mar 2013 12:15:34 +0100 |
parents | c20adbaf16af |
children |
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: |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
331
diff
changeset
|
3 <table> |
3197 | 4 <tr> |
5 <th class="left">${_('Username')}</th> | |
6 <th class="left">${_('Action')}</th> | |
7 <th class="left">${_('Repository')}</th> | |
8 <th class="left">${_('Date')}</th> | |
9 <th class="left">${_('From IP')}</th> | |
10 </tr> | |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
11 |
3197 | 12 %for cnt,l in enumerate(c.users_log): |
13 <tr class="parity${cnt%2}"> | |
14 <td> | |
3063
ca2b21819dfd
Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents:
2979
diff
changeset
|
15 %if l.user is not None: |
ca2b21819dfd
Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents:
2979
diff
changeset
|
16 ${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))} |
ca2b21819dfd
Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents:
2979
diff
changeset
|
17 %else: |
ca2b21819dfd
Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents:
2979
diff
changeset
|
18 ${l.username} |
3149
68f9c216377d
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
19 %endif |
3063
ca2b21819dfd
Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents:
2979
diff
changeset
|
20 </td> |
3197 | 21 <td>${h.action_parser(l)[0]()} |
3198
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
22 <div class="journal_action_params"> |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
23 ${h.literal(h.action_parser(l)[1]())} |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
24 </div> |
3197 | 25 </td> |
26 <td> | |
3198
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
27 %if l.repository is not None: |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
28 ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))} |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
29 %else: |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
30 ${l.repository_name} |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
31 %endif |
3197 | 32 </td> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
33 |
3197 | 34 <td>${h.fmt_date(l.action_date)}</td> |
35 <td>${l.user_ip}</td> | |
36 </tr> | |
37 %endfor | |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
331
diff
changeset
|
38 </table> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
39 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
331
diff
changeset
|
40 <script type="text/javascript"> |
808
1af15d66838f
added icons to journal, extend show more to actually show more pushed revisions,
Marcin Kuzminski <marcin@python-works.com>
parents:
660
diff
changeset
|
41 YUE.onDOMReady(function(){ |
3069
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
42 YUE.delegate("user_log","click",function(e, matchedEl, container){ |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
43 ypjax(e.target.href,"user_log",function(){ |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
44 show_more_event(); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
45 tooltip_activate(); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
46 show_changeset_tooltip(); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
47 }); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
48 YUE.preventDefault(e); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
49 },'.pager_link'); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
50 |
3069
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
51 YUE.delegate("user_log","click",function(e,matchedEl,container){ |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
52 var el = e.target; |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
53 YUD.setStyle(YUD.get(el.id.substring(1)),'display',''); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
54 YUD.setStyle(el.parentNode,'display','none'); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
55 },'.show_more'); |
808
1af15d66838f
added icons to journal, extend show more to actually show more pushed revisions,
Marcin Kuzminski <marcin@python-works.com>
parents:
660
diff
changeset
|
56 }); |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
331
diff
changeset
|
57 </script> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1066
diff
changeset
|
58 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
331
diff
changeset
|
59 <div class="pagination-wh pagination-left"> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1066
diff
changeset
|
60 ${c.users_log.pager('$link_previous ~2~ $link_next')} |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
61 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
62 %else: |
3197 | 63 ${_('No actions yet')} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
64 %endif |