Show More
@@ -1,80 +1,80 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="/base/base.html"/> |
|
2 | <%inherit file="/base/base.html"/> | |
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('Search')} |
|
4 | ${_('Search')} | |
5 | ${'"%s"' % c.cur_query if c.cur_query else None} |
|
5 | ${'"%s"' % c.cur_query if c.cur_query else None} | |
6 | %if c.repo_name: |
|
6 | %if c.repo_name: | |
7 | ${_('in repository: ') + c.repo_name} |
|
7 | ${_('in repository: ') + c.repo_name} | |
8 | %else: |
|
8 | %else: | |
9 | ${_('in all repositories')} |
|
9 | ${_('in all repositories')} | |
10 | %endif |
|
10 | %endif | |
11 | - ${c.rhodecode_name} |
|
11 | - ${c.rhodecode_name} | |
12 | </%def> |
|
12 | </%def> | |
13 | <%def name="breadcrumbs()"> |
|
13 | <%def name="breadcrumbs()"> | |
14 | ${c.rhodecode_name} |
|
14 | ${c.rhodecode_name} | |
15 | </%def> |
|
15 | </%def> | |
16 | <%def name="page_nav()"> |
|
16 | <%def name="page_nav()"> | |
17 | ${self.menu('home')} |
|
17 | ${self.menu('home')} | |
18 | </%def> |
|
18 | </%def> | |
19 | <%def name="main()"> |
|
19 | <%def name="main()"> | |
20 |
|
20 | |||
21 | <div class="box"> |
|
21 | <div class="box"> | |
22 | <!-- box / title --> |
|
22 | <!-- box / title --> | |
23 | <div class="title"> |
|
23 | <div class="title"> | |
24 | <h5>${_('Search')} |
|
24 | <h5>${_('Search')} | |
25 | %if c.repo_name: |
|
25 | %if c.repo_name: | |
26 | ${_('in repository: ') + c.repo_name} |
|
26 | ${_('in repository: ') + c.repo_name} | |
27 | %else: |
|
27 | %else: | |
28 | ${_('in all repositories')} |
|
28 | ${_('in all repositories')} | |
29 | %endif |
|
29 | %endif | |
30 | </h5> |
|
30 | </h5> | |
31 | </div> |
|
31 | </div> | |
32 | <!-- end box / title --> |
|
32 | <!-- end box / title --> | |
33 | %if c.repo_name: |
|
33 | %if c.repo_name: | |
34 | ${h.form(h.url('search_repo',search_repo=c.repo_name),method='get')} |
|
34 | ${h.form(h.url('search_repo',search_repo=c.repo_name),method='get')} | |
35 | %else: |
|
35 | %else: | |
36 | ${h.form(h.url('search'),method='get')} |
|
36 | ${h.form(h.url('search'),method='get')} | |
37 | %endif |
|
37 | %endif | |
38 | <div class="form"> |
|
38 | <div class="form"> | |
39 | <div class="fields"> |
|
39 | <div class="fields"> | |
40 | <div class="field field-first field-noborder"> |
|
40 | <div class="field field-first field-noborder"> | |
41 | <div class="label"> |
|
41 | <div class="label"> | |
42 | <label for="q">${_('Search term')}</label> |
|
42 | <label for="q">${_('Search term')}</label> | |
43 | </div> |
|
43 | </div> | |
44 | <div class="input">${h.text('q',c.cur_query,class_="small")} |
|
44 | <div class="input">${h.text('q',c.cur_query,class_="small")} | |
45 | <div class="button highlight"> |
|
45 | <div class="button highlight"> | |
46 | <input type="submit" value="${_('Search')}" class="ui-button"/> |
|
46 | <input type="submit" value="${_('Search')}" class="ui-button"/> | |
47 | </div> |
|
47 | </div> | |
48 | </div> |
|
48 | </div> | |
49 | <div style="font-weight: bold;clear:Both;margin-left:200px">${c.runtime}</div> |
|
49 | <div style="font-weight: bold;clear:Both;margin-left:200px">${c.runtime}</div> | |
50 | </div> |
|
50 | </div> | |
51 |
|
51 | |||
52 | <div class="field"> |
|
52 | <div class="field"> | |
53 | <div class="label"> |
|
53 | <div class="label"> | |
54 | <label for="type">${_('Search in')}</label> |
|
54 | <label for="type">${_('Search in')}</label> | |
55 | </div> |
|
55 | </div> | |
56 | <div class="select"> |
|
56 | <div class="select"> | |
57 |
${h.select('type',c.cur_type,[('content',_(' |
|
57 | ${h.select('type',c.cur_type,[('content',_('File contents')), | |
58 | ##('commit',_('Commit messages')), |
|
58 | ##('commit',_('Commit messages')), | |
59 | ('path',_('File names')), |
|
59 | ('path',_('File names')), | |
60 | ##('repository',_('Repository names')), |
|
60 | ##('repository',_('Repository names')), | |
61 | ])} |
|
61 | ])} | |
62 | </div> |
|
62 | </div> | |
63 | </div> |
|
63 | </div> | |
64 |
|
64 | |||
65 | </div> |
|
65 | </div> | |
66 | </div> |
|
66 | </div> | |
67 | ${h.end_form()} |
|
67 | ${h.end_form()} | |
68 |
|
68 | |||
69 | %if c.cur_search == 'content': |
|
69 | %if c.cur_search == 'content': | |
70 | <%include file='search_content.html'/> |
|
70 | <%include file='search_content.html'/> | |
71 | %elif c.cur_search == 'path': |
|
71 | %elif c.cur_search == 'path': | |
72 | <%include file='search_path.html'/> |
|
72 | <%include file='search_path.html'/> | |
73 | %elif c.cur_search == 'commit': |
|
73 | %elif c.cur_search == 'commit': | |
74 | <%include file='search_commit.html'/> |
|
74 | <%include file='search_commit.html'/> | |
75 | %elif c.cur_search == 'repository': |
|
75 | %elif c.cur_search == 'repository': | |
76 | <%include file='search_repository.html'/> |
|
76 | <%include file='search_repository.html'/> | |
77 | %endif |
|
77 | %endif | |
78 | </div> |
|
78 | </div> | |
79 |
|
79 | |||
80 | </%def> |
|
80 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now