Mercurial > kallithea
annotate rhodecode/templates/search/search.html @ 2944:0add173667b6 beta
Journal was missing a dt.repo_name change
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 20 Oct 2012 13:49:16 +0200 |
parents | 5f21a9dcb09d |
children | b4f401524060 |
rev | line source |
---|---|
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 <%inherit file="/base/base.html"/> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 <%def name="title()"> |
2493
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
4 %if c.cur_query: |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
5 %if c.repo_name: |
2493
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
6 ${_('Search "%s" in repository: %s') % (c.cur_query, c.repo_name)} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
7 %else: |
2493
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
8 ${_('Search "%s" in all repositories') % c.cur_query} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
9 %endif |
2493
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
10 %else: |
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
11 %if c.repo_name: |
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
12 ${_('Search in repository: %s') % c.repo_name} |
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
13 %else: |
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
14 ${_('Search in all repositories')} |
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
15 %endif |
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
16 %endif |
619
a1ec653f5f95
#38 updated RhodeCode titles
Marcin Kuzminski <marcin@python-works.com>
parents:
582
diff
changeset
|
17 - ${c.rhodecode_name} |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 </%def> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
19 <%def name="breadcrumbs()"> |
548
b75b77ef649d
renamed hg_app to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
20 ${c.rhodecode_name} |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
21 </%def> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 <%def name="page_nav()"> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 ${self.menu('home')} |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
24 </%def> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 <%def name="main()"> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
26 |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
27 <div class="box"> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
28 <!-- box / title --> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
29 <div class="title"> |
2493
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
30 <h5> |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
31 %if c.repo_name: |
2493
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
32 ${_('Search in repository: %s') % c.repo_name} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
33 %else: |
2493
a93db48c75f5
i18n friendly search page title
Takumi IINO <trot.thunder@gmail.com>
parents:
2389
diff
changeset
|
34 ${_('Search in all repositories')} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1242
diff
changeset
|
35 %endif |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
36 </h5> |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
37 </div> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
38 <!-- end box / title --> |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
39 %if c.repo_name: |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1242
diff
changeset
|
40 ${h.form(h.url('search_repo',search_repo=c.repo_name),method='get')} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
41 %else: |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
42 ${h.form(h.url('search'),method='get')} |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
478
diff
changeset
|
43 %endif |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
44 <div class="form"> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
45 <div class="fields"> |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
46 <div class="field field-first field-noborder"> |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
47 <div class="label"> |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
48 <label for="q">${_('Search term')}</label> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1242
diff
changeset
|
49 </div> |
582
ff15232ce9d2
fixed search button
Marcin Kuzminski <marcin@python-works.com>
parents:
556
diff
changeset
|
50 <div class="input">${h.text('q',c.cur_query,class_="small")} |
ff15232ce9d2
fixed search button
Marcin Kuzminski <marcin@python-works.com>
parents:
556
diff
changeset
|
51 <div class="button highlight"> |
888
6b40654afa1e
css optimizations
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
52 <input type="submit" value="${_('Search')}" class="ui-button"/> |
582
ff15232ce9d2
fixed search button
Marcin Kuzminski <marcin@python-works.com>
parents:
556
diff
changeset
|
53 </div> |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
54 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1242
diff
changeset
|
55 <div style="font-weight: bold;clear:Both;margin-left:200px">${c.runtime}</div> |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
56 </div> |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
57 |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
58 <div class="field"> |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
59 <div class="label"> |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
60 <label for="type">${_('Search in')}</label> |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
61 </div> |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
62 <div class="select"> |
1242 | 63 ${h.select('type',c.cur_type,[('content',_('File contents')), |
2640
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
2493
diff
changeset
|
64 ('commit',_('Commit messages')), |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
65 ('path',_('File names')), |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
66 ##('repository',_('Repository names')), |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1242
diff
changeset
|
67 ])} |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
68 </div> |
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
69 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1242
diff
changeset
|
70 |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
71 </div> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
72 </div> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
73 ${h.end_form()} |
2389
324b838250c9
UI fixes for searching
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
74 <div class="search"> |
2640
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
2493
diff
changeset
|
75 %if c.cur_type == 'content': |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
76 <%include file='search_content.html'/> |
2640
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
2493
diff
changeset
|
77 %elif c.cur_type == 'path': |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
78 <%include file='search_path.html'/> |
2640
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
2493
diff
changeset
|
79 %elif c.cur_type == 'commit': |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
80 <%include file='search_commit.html'/> |
2640
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
2493
diff
changeset
|
81 %elif c.cur_type == 'repository': |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
548
diff
changeset
|
82 <%include file='search_repository.html'/> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1242
diff
changeset
|
83 %endif |
2389
324b838250c9
UI fixes for searching
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
84 </div> |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
85 </div> |
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
86 |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1242
diff
changeset
|
87 </%def> |