Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
3068:44827c84dc66 | 3069:9dca99ffd495 |
---|---|
5 ${_('Admin journal')} - ${c.rhodecode_name} | 5 ${_('Admin journal')} - ${c.rhodecode_name} |
6 </%def> | 6 </%def> |
7 | 7 |
8 <%def name="breadcrumbs_links()"> | 8 <%def name="breadcrumbs_links()"> |
9 <form id="filter_form"> | 9 <form id="filter_form"> |
10 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${c.search_term or _('quick filter...')}"/> | 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...')}"/> |
11 <span class="tooltip" title="${h.tooltip(_(''' | |
12 Example search query: | |
13 "repository:vcs" | |
14 "username:marcin" | |
15 | |
16 You can use wildcards using '*' | |
17 "repositroy:vcs*" - search everything starting with 'vcs' | |
18 "repository:*vcs*" - search for repository containing 'vcs' | |
19 Use AND / OR operators in queries | |
20 "repository:vcs OR repository:test" | |
21 "username:test AND repository:test*" | |
22 List of valid search filters: | |
23 repository: | |
24 username: | |
25 action: | |
26 ip: | |
27 date: | |
28 '''))}">?</span> | |
11 <input type='submit' value="${_('filter')}" class="ui-btn" style="padding:0px 2px 0px 2px;margin:0px"/> | 29 <input type='submit' value="${_('filter')}" class="ui-btn" style="padding:0px 2px 0px 2px;margin:0px"/> |
12 ${_('Admin journal')} - ${ungettext('%s entry', '%s entries', c.users_log.item_count) % (c.users_log.item_count)} | 30 ${_('Admin journal')} - ${ungettext('%s entry', '%s entries', c.users_log.item_count) % (c.users_log.item_count)} |
13 </form> | 31 </form> |
14 ${h.end_form()} | 32 ${h.end_form()} |
15 </%def> | 33 </%def> |
31 </div> | 49 </div> |
32 </div> | 50 </div> |
33 | 51 |
34 <script> | 52 <script> |
35 YUE.on('q_filter','click',function(){ | 53 YUE.on('q_filter','click',function(){ |
36 YUD.get('q_filter').value = ''; | 54 var qfilter = YUD.get('q_filter'); |
55 if(YUD.hasClass(qfilter, 'initial')){ | |
56 qfilter.value = ''; | |
57 } | |
58 }); | |
59 var fix_q_filter_width = function(len){ | |
60 YUD.setStyle(YUD.get('q_filter'),'width',Math.max(80, len*6.50)+'px'); | |
61 } | |
62 YUE.on('q_filter','keyup',function(){ | |
63 fix_q_filter_width(YUD.get('q_filter').value.length); | |
37 }); | 64 }); |
38 YUE.on('filter_form','submit',function(e){ | 65 YUE.on('filter_form','submit',function(e){ |
39 YUE.preventDefault(e) | 66 YUE.preventDefault(e) |
40 var val = YUD.get('q_filter').value; | 67 var val = YUD.get('q_filter').value; |
41 window.location = "${url.current(filter='__FILTER__')}".replace('__FILTER__',val); | 68 window.location = "${url.current(filter='__FILTER__')}".replace('__FILTER__',val); |
42 }); | 69 }); |
70 fix_q_filter_width(YUD.get('q_filter').value.length); | |
43 </script> | 71 </script> |
44 </%def> | 72 </%def> |
45 | 73 |