##// END OF EJS Templates
UI fixes for searching
marcink -
r2389:324b8382 beta
parent child Browse files
Show More
@@ -40,7 +40,7 from whoosh.index import create_in, open
40 40 from whoosh.formats import Characters
41 41 from whoosh.highlight import highlight, HtmlFormatter, ContextFragmenter
42 42
43 from webhelpers.html.builder import escape
43 from webhelpers.html.builder import escape, literal
44 44 from sqlalchemy import engine_from_config
45 45
46 46 from rhodecode.model import init_model
@@ -231,7 +231,7 class WhooshResultWrapper(object):
231 231 if self.search_type != 'content':
232 232 return ''
233 233 hl = highlight(
234 text=escape(content),
234 text=content,
235 235 terms=self.highlight_items,
236 236 analyzer=ANALYZER,
237 237 fragmenter=FRAGMENTER,
@@ -65,7 +65,7
65 65 </div>
66 66 </div>
67 67 ${h.end_form()}
68
68 <div class="search">
69 69 %if c.cur_search == 'content':
70 70 <%include file='search_content.html'/>
71 71 %elif c.cur_search == 'path':
@@ -75,6 +75,7
75 75 %elif c.cur_search == 'repository':
76 76 <%include file='search_repository.html'/>
77 77 %endif
78 </div>
78 79 </div>
79 80
80 81 </%def>
General Comments 0
You need to be logged in to leave comments. Login now