Mercurial > kallithea
annotate rhodecode/templates/admin/admin.html @ 3069:9dca99ffd495 beta
added help on how to filter the journal
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 06 Dec 2012 21:57:24 +0100 |
parents | ca2b21819dfd |
children | cc7eedb5323c |
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"> |
3069
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
10 <input class="q_filter_box ${'' if c.search_term else 'initial'}" id="q_filter" size="15" type="text" name="filter" value="${c.search_term or _('quick filter...')}"/> |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
11 <span class="tooltip" title="${h.tooltip(_(''' |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
12 Example search query: |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
13 "repository:vcs" |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
14 "username:marcin" |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
15 |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
16 You can use wildcards using '*' |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
17 "repositroy:vcs*" - search everything starting with 'vcs' |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
18 "repository:*vcs*" - search for repository containing 'vcs' |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
19 Use AND / OR operators in queries |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
20 "repository:vcs OR repository:test" |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
21 "username:test AND repository:test*" |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
22 List of valid search filters: |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
23 repository: |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
24 username: |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
25 action: |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
26 ip: |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
27 date: |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
28 '''))}">?</span> |
3063
ca2b21819dfd
Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents:
3062
diff
changeset
|
29 <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
|
30 ${_('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
|
31 </form> |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
32 ${h.end_form()} |
44 | 33 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
34 |
44 | 35 <%def name="page_nav()"> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
175
diff
changeset
|
36 ${self.menu('admin')} |
44 | 37 </%def> |
38 <%def name="main()"> | |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
39 <div class="box"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
40 <!-- box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
41 <div class="title"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
42 ${self.breadcrumbs()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
43 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
44 <!-- end box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
45 <div class="table"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
46 <div id="user_log"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
47 ${c.log_data} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
48 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
308
diff
changeset
|
49 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
50 </div> |
3062
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
51 |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
52 <script> |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
53 YUE.on('q_filter','click',function(){ |
3069
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
54 var qfilter = YUD.get('q_filter'); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
55 if(YUD.hasClass(qfilter, 'initial')){ |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
56 qfilter.value = ''; |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
57 } |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
58 }); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
59 var fix_q_filter_width = function(len){ |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
60 YUD.setStyle(YUD.get('q_filter'),'width',Math.max(80, len*6.50)+'px'); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
61 } |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
62 YUE.on('q_filter','keyup',function(){ |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
63 fix_q_filter_width(YUD.get('q_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
|
64 }); |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
65 YUE.on('filter_form','submit',function(e){ |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
66 YUE.preventDefault(e) |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
67 var val = YUD.get('q_filter').value; |
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
68 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
|
69 }); |
9dca99ffd495
added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3063
diff
changeset
|
70 fix_q_filter_width(YUD.get('q_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
|
71 </script> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
72 </%def> |
3062
a08624dd675e
Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
73 |