##// END OF EJS Templates
made action logger more global, to be used in other places to log other actions....
made action logger more global, to be used in other places to log other actions. cleaned unused import in simpleHG, fixed little logging in hooks

File last commit:

r525:87d80c84 default
r536:39203995 default
Show More
search.html
87 lines | 2.2 KiB | text/html | HtmlLexer
Implemented search using whoosh. Still as experimental option.
r406 ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
added search in specific repository...
r525 ${_('Search')}
%if c.repo_name:
${_('in repository: ') + c.repo_name}
%else:
${_('in all repositories')}
%endif
:${c.cur_query}
Implemented search using whoosh. Still as experimental option.
r406 </%def>
<%def name="breadcrumbs()">
${c.hg_app_name}
</%def>
<%def name="page_nav()">
${self.menu('home')}
</%def>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
added search in specific repository...
r525 <h5>${_('Search')}
%if c.repo_name:
${_('in repository: ') + c.repo_name}
%else:
${_('in all repositories')}
%endif
</h5>
Implemented search using whoosh. Still as experimental option.
r406 </div>
<!-- end box / title -->
added search in specific repository...
r525 %if c.repo_name:
${h.form(h.url('search_repo',search_repo=c.repo_name),method='get')}
%else:
${h.form(h.url('search'),method='get')}
%endif
Implemented search using whoosh. Still as experimental option.
r406 <div class="form">
<div class="fields">
<div class="field ">
<div class="label">
added search in specific repository...
r525 <label for="q">${_('Search')}:</label>
Implemented search using whoosh. Still as experimental option.
r406 </div>
<div class="input">
${h.text('q',c.cur_query,class_="small")}
<div class="button highlight">
<input type="submit" value="${_('Search')}" class="ui-button ui-widget ui-state-default ui-corner-all"/>
</div>
<div style="font-weight: bold;clear:both;padding: 5px">${c.runtime}</div>
</div>
</div>
</div>
</div>
${h.end_form()}
%for cnt,sr in enumerate(c.formated_results):
%if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'):
<div class="table">
<div id="body${cnt}" class="codeblock">
<div class="code-header">
<div class="revision">${h.link_to(h.literal('%s &raquo; %s' % (sr['repository'],sr['f_path'])),
h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))}</div>
</div>
<div class="code-body">
Reimplemented searching for speed on large files and added paging for search results...
r478 <pre>${h.literal(sr['content_short_hl'])}</pre>
Implemented search using whoosh. Still as experimental option.
r406 </div>
</div>
</div>
%else:
%if cnt == 0:
<div class="table">
<div id="body${cnt}" class="codeblock">
<div class="error">${_('Permission denied')}</div>
</div>
</div>
%endif
Reimplemented searching for speed on large files and added paging for search results...
r478 %endif
Implemented search using whoosh. Still as experimental option.
r406 %endfor
Reimplemented searching for speed on large files and added paging for search results...
r478 %if c.cur_query:
<div class="pagination-wh pagination-left">
${c.formated_results.pager('$link_previous ~2~ $link_next')}
</div>
%endif
Implemented search using whoosh. Still as experimental option.
r406 </div>
</%def>