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