Mercurial > kallithea
annotate rhodecode/templates/admin/admin.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 | b4f401524060 |
children | 1f334a68d057 |
rev | line source |
---|---|
43 | 1 ## -*- coding: utf-8 -*- |
127
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
108
diff
changeset
|
2 <%inherit file="/base/base.html"/> |
175
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
3 |
44 | 4 <%def name="title()"> |
619
a1ec653f5f95
#38 updated RhodeCode titles
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
5 ${_('Admin journal')} - ${c.rhodecode_name} |
44 | 6 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
7 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
8 <%def name="breadcrumbs_links()"> |
3062
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
9 <form id="filter_form"> |
3070
cc7eedb5323c
final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
10 <input class="q_filter_box ${'' if c.search_term else 'initial'}" id="j_filter" size="15" type="text" name="filter" value="${c.search_term or _('journal filter...')}"/> |
cc7eedb5323c
final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
11 <span class="tooltip" title="${h.tooltip(h.journal_filter_help())}">?</span> |
3063
ca2b21819dfd
Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents:
3062
diff
changeset
|
12 <input type='submit' value="${_('filter')}" class="ui-btn" style="padding:0px 2px 0px 2px;margin:0px"/> |
ca2b21819dfd
Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents:
3062
diff
changeset
|
13 ${_('Admin journal')} - ${ungettext('%s entry', '%s entries', c.users_log.item_count) % (c.users_log.item_count)} |
3062
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
14 </form> |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
15 ${h.end_form()} |
44 | 16 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
17 |
44 | 18 <%def name="page_nav()"> |
3197 | 19 ${self.menu('admin')} |
44 | 20 </%def> |
21 <%def name="main()"> | |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
22 <div class="box"> |
3197 | 23 <!-- box / title --> |
24 <div class="title"> | |
25 ${self.breadcrumbs()} | |
26 </div> | |
27 <!-- end box / title --> | |
28 <div class="table"> | |
29 <div id="user_log"> | |
30 ${c.log_data} | |
31 </div> | |
32 </div> | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
33 </div> |
3062
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
34 |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
35 <script> |
3070
cc7eedb5323c
final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
36 YUE.on('j_filter','click',function(){ |
3197 | 37 var jfilter = YUD.get('j_filter'); |
38 if(YUD.hasClass(jfilter, 'initial')){ | |
39 jfilter.value = ''; | |
40 } | |
3069
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
41 }); |
3070
cc7eedb5323c
final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
42 var fix_j_filter_width = function(len){ |
cc7eedb5323c
final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
43 YUD.setStyle(YUD.get('j_filter'),'width',Math.max(80, len*6.50)+'px'); |
3069
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
44 } |
3070
cc7eedb5323c
final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
45 YUE.on('j_filter','keyup',function(){ |
3197 | 46 fix_j_filter_width(YUD.get('j_filter').value.length); |
3062
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
47 }); |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
48 YUE.on('filter_form','submit',function(e){ |
3197 | 49 YUE.preventDefault(e) |
3070
cc7eedb5323c
final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
50 var val = YUD.get('j_filter').value; |
3197 | 51 window.location = "${url.current(filter='__FILTER__')}".replace('__FILTER__',val); |
3069
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
52 }); |
3070
cc7eedb5323c
final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents:
3069
diff
changeset
|
53 fix_j_filter_width(YUD.get('j_filter').value.length); |
3062
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
54 </script> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
55 </%def> |