comparison rhodecode/templates/search/search.html @ 2640:5f21a9dcb09d beta

create an index for commit messages and the ability to search them and see results
author Indra Talip <indra.talip@gmail.com>
date Fri, 20 Jul 2012 12:50:56 +0200
parents a93db48c75f5
children b4f401524060
comparison
equal deleted inserted replaced
2631:f597cfb492f9 2640:5f21a9dcb09d
59 <div class="label"> 59 <div class="label">
60 <label for="type">${_('Search in')}</label> 60 <label for="type">${_('Search in')}</label>
61 </div> 61 </div>
62 <div class="select"> 62 <div class="select">
63 ${h.select('type',c.cur_type,[('content',_('File contents')), 63 ${h.select('type',c.cur_type,[('content',_('File contents')),
64 ##('commit',_('Commit messages')), 64 ('commit',_('Commit messages')),
65 ('path',_('File names')), 65 ('path',_('File names')),
66 ##('repository',_('Repository names')), 66 ##('repository',_('Repository names')),
67 ])} 67 ])}
68 </div> 68 </div>
69 </div> 69 </div>
70 70
71 </div> 71 </div>
72 </div> 72 </div>
73 ${h.end_form()} 73 ${h.end_form()}
74 <div class="search"> 74 <div class="search">
75 %if c.cur_search == 'content': 75 %if c.cur_type == 'content':
76 <%include file='search_content.html'/> 76 <%include file='search_content.html'/>
77 %elif c.cur_search == 'path': 77 %elif c.cur_type == 'path':
78 <%include file='search_path.html'/> 78 <%include file='search_path.html'/>
79 %elif c.cur_search == 'commit': 79 %elif c.cur_type == 'commit':
80 <%include file='search_commit.html'/> 80 <%include file='search_commit.html'/>
81 %elif c.cur_search == 'repository': 81 %elif c.cur_type == 'repository':
82 <%include file='search_repository.html'/> 82 <%include file='search_repository.html'/>
83 %endif 83 %endif
84 </div> 84 </div>
85 </div> 85 </div>
86 86