Show More
@@ -1,40 +1,40 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('Admin audit logs')} |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 | 11 | <%def name="breadcrumbs_links()"> |
|
12 | 12 | ${h.form(None, id_="filter_form", method="get")} |
|
13 | 13 | <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 ''}" placeholder="${_('filter...')}"/> |
|
14 | 14 | <input type='submit' value="${_('filter')}" class="btn" /> |
|
15 | 15 | ${_('Audit logs')} - ${_ungettext('%s entry', '%s entries', c.audit_logs.item_count) % (c.audit_logs.item_count)} |
|
16 | 16 | ${h.end_form()} |
|
17 | <p class="tooltip filterexample" title="${h.tooltip(h.journal_filter_help(request))}">${_('Example Queries')}</p> | |
|
17 | <p class="tooltip filterexample" title="${h.tooltip(h.journal_filter_help(c.pyramid_request))}">${_('Example Queries')}</p> | |
|
18 | 18 | </%def> |
|
19 | 19 | |
|
20 | 20 | <%def name="menu_bar_nav()"> |
|
21 | 21 | ${self.menu_items(active='admin')} |
|
22 | 22 | </%def> |
|
23 | 23 | <%def name="main()"> |
|
24 | 24 | <div class="box"> |
|
25 | 25 | <!-- box / title --> |
|
26 | 26 | <div class="title"> |
|
27 | 27 | ${self.breadcrumbs()} |
|
28 | 28 | </div> |
|
29 | 29 | <!-- end box / title --> |
|
30 | 30 | <div class="table"> |
|
31 | 31 | <div id="user_log"> |
|
32 | 32 | <%include file="/admin/admin_log_base.mako" /> |
|
33 | 33 | </div> |
|
34 | 34 | </div> |
|
35 | 35 | </div> |
|
36 | 36 | |
|
37 | 37 | <script> |
|
38 | 38 | $('#j_filter').autoGrowInput(); |
|
39 | 39 | </script> |
|
40 | 40 | </%def> |
@@ -1,22 +1,22 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%namespace name="base" file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | |
|
5 | 5 | <div class="panel panel-default"> |
|
6 | 6 | <div class="panel-heading"> |
|
7 | 7 | <h3 class="panel-title">${_('User Audit Logs')} - |
|
8 | 8 | ${_ungettext('%s entry', '%s entries', c.audit_logs.item_count) % (c.audit_logs.item_count)} |
|
9 | 9 | </h3> |
|
10 | 10 | </div> |
|
11 | 11 | <div class="panel-body"> |
|
12 | 12 | |
|
13 | 13 | ${h.form(None, id_="filter_form", method="get")} |
|
14 | 14 | <input class="q_filter_box ${'' if c.filter_term else 'initial'}" id="j_filter" size="15" type="text" name="filter" value="${c.filter_term or ''}" placeholder="${_('audit filter...')}"/> |
|
15 | 15 | <input type='submit' value="${_('filter')}" class="btn" /> |
|
16 | 16 | ${h.end_form()} |
|
17 | <p class="tooltip filterexample" style="position: inherit" title="${h.tooltip(h.journal_filter_help(request))}">${_('Example Queries')}</p> | |
|
17 | <p class="tooltip filterexample" style="position: inherit" title="${h.tooltip(h.journal_filter_help(c.pyramid_request))}">${_('Example Queries')}</p> | |
|
18 | 18 | |
|
19 | 19 | <%include file="/admin/admin_log_base.mako" /> |
|
20 | 20 | |
|
21 | 21 | </div> |
|
22 | 22 | </div> |
@@ -1,54 +1,54 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | <%def name="title()"> |
|
4 | 4 | ${_('Journal')} |
|
5 | 5 | %if c.rhodecode_name: |
|
6 | 6 | · ${h.branding(c.rhodecode_name)} |
|
7 | 7 | %endif |
|
8 | 8 | </%def> |
|
9 | 9 | <%def name="breadcrumbs()"> |
|
10 | 10 | <h1 class="block-left"> |
|
11 | 11 | ${h.form(None, id_="filter_form", method="get")} |
|
12 | 12 | <input class="q_filter_box ${'' if c.search_term else 'initial'}" id="j_filter" size="15" type="text" name="filter" value="${c.search_term}" placeholder="${_('quick filter...')}"/> |
|
13 | 13 | <input type='submit' value="${_('Filter')}" class="btn" /> |
|
14 | 14 | ${_('Journal')} - ${ungettext('%s entry', '%s entries', c.journal_pager.item_count) % (c.journal_pager.item_count)} |
|
15 | 15 | ${h.end_form()} |
|
16 | 16 | </h1> |
|
17 | <p class="tooltip filterexample" title="${h.tooltip(h.journal_filter_help(request))}">${_('Example Queries')}</p> | |
|
17 | <p class="tooltip filterexample" title="${h.tooltip(h.journal_filter_help(c.pyramid_request))}">${_('Example Queries')}</p> | |
|
18 | 18 | </%def> |
|
19 | 19 | <%def name="menu_bar_nav()"> |
|
20 | 20 | ${self.menu_items(active='journal')} |
|
21 | 21 | </%def> |
|
22 | 22 | <%def name="head_extra()"> |
|
23 | 23 | <link href="${h.url('journal_atom', auth_token=c.rhodecode_user.feed_token)}" rel="alternate" title="${_('ATOM journal feed')}" type="application/atom+xml" /> |
|
24 | 24 | <link href="${h.url('journal_rss', auth_token=c.rhodecode_user.feed_token)}" rel="alternate" title="${_('RSS journal feed')}" type="application/rss+xml" /> |
|
25 | 25 | </%def> |
|
26 | 26 | <%def name="main()"> |
|
27 | 27 | |
|
28 | 28 | <div class="box"> |
|
29 | 29 | <!-- box / title --> |
|
30 | 30 | <div class="title journal"> |
|
31 | 31 | ${self.breadcrumbs()} |
|
32 | 32 | <ul class="links icon-only-links block-right"> |
|
33 | 33 | <li> |
|
34 | 34 | <span><a id="refresh" href="${h.url('journal')}"><i class="icon-refresh"></i></a></span> |
|
35 | 35 | </li> |
|
36 | 36 | <li> |
|
37 | 37 | <span><a href="${h.url('journal_atom', auth_token=c.rhodecode_user.feed_token)}"><i class="icon-rss-sign"></i></a></span> |
|
38 | 38 | </li> |
|
39 | 39 | </ul> |
|
40 | 40 | </div> |
|
41 | 41 | <div id="journal">${c.journal_data}</div> |
|
42 | 42 | </div> |
|
43 | 43 | |
|
44 | 44 | <script type="text/javascript"> |
|
45 | 45 | |
|
46 | 46 | $('#j_filter').autoGrowInput(); |
|
47 | 47 | $(document).on('pjax:success',function(){ |
|
48 | 48 | show_more_event(); |
|
49 | 49 | }); |
|
50 | 50 | $(document).pjax('#refresh', '#journal', |
|
51 | 51 | {url: "${h.url.current(filter=c.search_term)}", push: false}); |
|
52 | 52 | |
|
53 | 53 | </script> |
|
54 | 54 | </%def> |
@@ -1,108 +1,108 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | %if c.repo_name: |
|
6 | 6 | ${_('Search inside repository %(repo_name)s') % {'repo_name': c.repo_name}} |
|
7 | 7 | %else: |
|
8 | 8 | ${_('Search inside all accessible repositories')} |
|
9 | 9 | %endif |
|
10 | 10 | %if c.rhodecode_name: |
|
11 | 11 | · ${h.branding(c.rhodecode_name)} |
|
12 | 12 | %endif |
|
13 | 13 | </%def> |
|
14 | 14 | |
|
15 | 15 | <%def name="breadcrumbs_links()"> |
|
16 | 16 | %if c.repo_name: |
|
17 | 17 | ${_('Search inside repository %(repo_name)s') % {'repo_name': c.repo_name}} |
|
18 | 18 | %else: |
|
19 | 19 | ${_('Search inside all accessible repositories')} |
|
20 | 20 | %endif |
|
21 | 21 | %if c.cur_query: |
|
22 | 22 | » |
|
23 | 23 | ${c.cur_query} |
|
24 | 24 | %endif |
|
25 | 25 | </%def> |
|
26 | 26 | |
|
27 | 27 | <%def name="menu_bar_nav()"> |
|
28 | 28 | %if c.repo_name: |
|
29 | 29 | ${self.menu_items(active='repositories')} |
|
30 | 30 | %else: |
|
31 | 31 | ${self.menu_items(active='search')} |
|
32 | 32 | %endif |
|
33 | 33 | </%def> |
|
34 | 34 | |
|
35 | 35 | <%def name="menu_bar_subnav()"> |
|
36 | 36 | %if c.repo_name: |
|
37 | 37 | ${self.repo_menu(active='options')} |
|
38 | 38 | %endif |
|
39 | 39 | </%def> |
|
40 | 40 | |
|
41 | 41 | <%def name="main()"> |
|
42 | 42 | <div class="box"> |
|
43 | 43 | %if c.repo_name: |
|
44 | 44 | <!-- box / title --> |
|
45 | 45 | <div class="title"> |
|
46 | 46 | ${self.repo_page_title(c.rhodecode_db_repo)} |
|
47 | 47 | </div> |
|
48 | 48 | ${h.form(h.route_path('search_repo',repo_name=c.repo_name),method='get')} |
|
49 | 49 | %else: |
|
50 | 50 | <!-- box / title --> |
|
51 | 51 | <div class="title"> |
|
52 | 52 | ${self.breadcrumbs()} |
|
53 | 53 | <ul class="links"> </ul> |
|
54 | 54 | </div> |
|
55 | 55 | <!-- end box / title --> |
|
56 | 56 | ${h.form(h.route_path('search'), method='get')} |
|
57 | 57 | %endif |
|
58 | 58 | <div class="form search-form"> |
|
59 | 59 | <div class="fields"> |
|
60 | 60 | <label for="q">${_('Search item')}:</label> |
|
61 | 61 | ${h.text('q', c.cur_query)} |
|
62 | 62 | |
|
63 | 63 | ${h.select('type',c.search_type,[('content',_('File contents')), ('commit',_('Commit messages')), ('path',_('File names')),],id='id_search_type')} |
|
64 | 64 | <input type="submit" value="${_('Search')}" class="btn"/> |
|
65 | 65 | <br/> |
|
66 | 66 | |
|
67 | 67 | <div class="search-feedback-items"> |
|
68 | 68 | % for error in c.errors: |
|
69 | 69 | <span class="error-message"> |
|
70 | 70 | % for k,v in error.asdict().items(): |
|
71 | 71 | ${k} - ${v} |
|
72 | 72 | % endfor |
|
73 | 73 | </span> |
|
74 | 74 | % endfor |
|
75 | 75 | <div class="field"> |
|
76 | 76 | <p class="filterexample" style="position: inherit" onclick="$('#search-help').toggle()">${_('Example Queries')}</p> |
|
77 | <pre id="search-help" style="display: none">${h.tooltip(h.search_filter_help(c.searcher, request))}</pre> | |
|
77 | <pre id="search-help" style="display: none">${h.tooltip(h.search_filter_help(c.searcher, c.pyramid_request))}</pre> | |
|
78 | 78 | </div> |
|
79 | 79 | |
|
80 | 80 | <div class="field">${c.runtime}</div> |
|
81 | 81 | </div> |
|
82 | 82 | </div> |
|
83 | 83 | </div> |
|
84 | 84 | |
|
85 | 85 | ${h.end_form()} |
|
86 | 86 | <div class="search"> |
|
87 | 87 | % if c.search_type == 'content': |
|
88 | 88 | <%include file='search_content.mako'/> |
|
89 | 89 | % elif c.search_type == 'path': |
|
90 | 90 | <%include file='search_path.mako'/> |
|
91 | 91 | % elif c.search_type == 'commit': |
|
92 | 92 | <%include file='search_commit.mako'/> |
|
93 | 93 | % elif c.search_type == 'repository': |
|
94 | 94 | <%include file='search_repository.mako'/> |
|
95 | 95 | % endif |
|
96 | 96 | </div> |
|
97 | 97 | </div> |
|
98 | 98 | <script> |
|
99 | 99 | $(document).ready(function(){ |
|
100 | 100 | $("#id_search_type").select2({ |
|
101 | 101 | 'containerCssClass': "drop-menu", |
|
102 | 102 | 'dropdownCssClass': "drop-menu-dropdown", |
|
103 | 103 | 'dropdownAutoWidth': true, |
|
104 | 104 | 'minimumResultsForSearch': -1 |
|
105 | 105 | }); |
|
106 | 106 | }) |
|
107 | 107 | </script> |
|
108 | 108 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now