annotate rhodecode/templates/search/search.html @ 3887:4930abd96a7e beta

minor css fixes
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 22 May 2013 03:10:28 +0200
parents 2ea981f9da79
children 072a37c44f58
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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"/>
3289
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
3
406
b153a51b1d3b Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <%def name="title()">
3289
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
5 %if c.repo_name:
3582
1f334a68d057 improved title consistency
Marcin Kuzminski <marcin@python-works.com>
parents: 3552
diff changeset
6 ${_('Search repository')} ${c.repo_name} &middot; ${c.rhodecode_name}
3289
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
7 %else:
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
8 ${_('Search in all repositories')}
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
9 %endif
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
10 </%def>
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
11
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
12 <%def name="breadcrumbs_links()">
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
13 %if c.repo_name:
3532
9e677f6d34cb Fixing missing icons.
Leonardo <leo@unity3d.com>
parents: 3527
diff changeset
14 ${_('Search')}
3289
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
15 %else:
3532
9e677f6d34cb Fixing missing icons.
Leonardo <leo@unity3d.com>
parents: 3527
diff changeset
16 ${_('Search in all repositories')}
3289
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
17 %endif
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
18 %if c.cur_query:
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
19 &raquo;
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
20 ${c.cur_query}
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
21 %endif
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
22 </%def>
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
23
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
24 <%def name="page_nav()">
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
25 %if c.repo_name:
3603
eacd33e0c5b3 use valid options for the top menu: repositories, journal, search and admin
Mads Kiilerich <madski@unity3d.com>
parents: 3582
diff changeset
26 ${self.menu('repositories')}
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
27 %else:
3289
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
28 ${self.menu('search')}
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
29 %endif
406
b153a51b1d3b Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30 </%def>
b153a51b1d3b Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
31 <%def name="main()">
3609
2ea981f9da79 templates: enforce more consistency by being less flexible in templates
Mads Kiilerich <madski@unity3d.com>
parents: 3603
diff changeset
32 %if c.repo_name:
3552
7967d00e4692 Stylistic cleanup - mostly formatting
Mads Kiilerich <madski@unity3d.com>
parents: 3532
diff changeset
33 ${self.context_bar('options')}
3609
2ea981f9da79 templates: enforce more consistency by being less flexible in templates
Mads Kiilerich <madski@unity3d.com>
parents: 3603
diff changeset
34 %endif
406
b153a51b1d3b Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
35 <div class="box">
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
36 <!-- box / title -->
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
37 <div class="title">
3289
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
38 ${self.breadcrumbs()}
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
39 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
40 <!-- end box / title -->
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
41 %if c.repo_name:
3289
666fc6ac9ce5 search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents: 3208
diff changeset
42 ${h.form(h.url('search_repo',repo_name=c.repo_name),method='get')}
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
43 %else:
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
44 ${h.form(h.url('search'),method='get')}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
45 %endif
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
46 <div class="form">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
47 <div class="fields">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
48 <div class="field field-first field-noborder">
556
65b2f150beb7 Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
49 <div class="label">
65b2f150beb7 Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
50 <label for="q">${_('Search term')}</label>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1242
diff changeset
51 </div>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
52 <div class="input">${h.text('q',c.cur_query,class_="small")}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
53 <div class="button highlight">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
54 <input type="submit" value="${_('Search')}" class="ui-button"/>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
55 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
56 </div>
3887
4930abd96a7e minor css fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 3609
diff changeset
57 <div style="font-weight: bold;clear:both;margin-left:200px">${c.runtime}</div>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
58 </div>
556
65b2f150beb7 Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
59
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
60 <div class="field">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
61 <div class="label">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
62 <label for="type">${_('Search in')}</label>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
63 </div>
556
65b2f150beb7 Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
64 <div class="select">
1242
61918fc169df fixes #164
Marcin Kuzminski <marcin@python-works.com>
parents: 888
diff changeset
65 ${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
66 ('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
67 ('path',_('File names')),
65b2f150beb7 Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
68 ##('repository',_('Repository names')),
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1242
diff changeset
69 ])}
556
65b2f150beb7 Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
70 </div>
65b2f150beb7 Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
71 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1242
diff changeset
72
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
73 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
74 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2640
diff changeset
75 ${h.end_form()}
2389
324b838250c9 UI fixes for searching
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
76 <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
77 %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
78 <%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
79 %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
80 <%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
81 %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
82 <%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
83 %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
84 <%include file='search_repository.html'/>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1242
diff changeset
85 %endif
2389
324b838250c9 UI fixes for searching
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
86 </div>
406
b153a51b1d3b Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
87 </div>
b153a51b1d3b Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
88
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1242
diff changeset
89 </%def>