##// 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 from whoosh.formats import Characters
40 from whoosh.formats import Characters
41 from whoosh.highlight import highlight, HtmlFormatter, ContextFragmenter
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 from sqlalchemy import engine_from_config
44 from sqlalchemy import engine_from_config
45
45
46 from rhodecode.model import init_model
46 from rhodecode.model import init_model
@@ -231,7 +231,7 class WhooshResultWrapper(object):
231 if self.search_type != 'content':
231 if self.search_type != 'content':
232 return ''
232 return ''
233 hl = highlight(
233 hl = highlight(
234 text=escape(content),
234 text=content,
235 terms=self.highlight_items,
235 terms=self.highlight_items,
236 analyzer=ANALYZER,
236 analyzer=ANALYZER,
237 fragmenter=FRAGMENTER,
237 fragmenter=FRAGMENTER,
@@ -65,7 +65,7
65 </div>
65 </div>
66 </div>
66 </div>
67 ${h.end_form()}
67 ${h.end_form()}
68
68 <div class="search">
69 %if c.cur_search == 'content':
69 %if c.cur_search == 'content':
70 <%include file='search_content.html'/>
70 <%include file='search_content.html'/>
71 %elif c.cur_search == 'path':
71 %elif c.cur_search == 'path':
@@ -75,6 +75,7
75 %elif c.cur_search == 'repository':
75 %elif c.cur_search == 'repository':
76 <%include file='search_repository.html'/>
76 <%include file='search_repository.html'/>
77 %endif
77 %endif
78 </div>
78 </div>
79 </div>
79
80
80 </%def>
81 </%def>
General Comments 0
You need to be logged in to leave comments. Login now