1
0
Fork 0
mirror of https://github.com/koniu/recoll-webui.git synced 2025-10-04 10:19:16 +02:00

py, tpl: rename "open/dl" link to "dl" to avoid confusion

This commit is contained in:
koniu 2013-10-07 22:56:13 +02:00
parent ea2dc0fd54
commit 82dad9d486
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@
%if hasrclextract:
<div class="search-result-links">
<a href="/preview/{{number-1}}?{{query_string}}" target="_blank">Preview</a>
<a href="/edit/{{number-1}}?{{query_string}}">Download/Open</a>
<a href="/download/{{number-1}}?{{query_string}}">Download</a>
</div>
%end
<div class="search-result-date">{{d['time']}}</div>

View file

@ -281,8 +281,8 @@ def preview(resnum):
bottle.response.content_type = 'text/plain; charset=utf-8'
return tdoc.text
#}}}
#{{{ edit
@bottle.route('/edit/<resnum:int>')
#{{{ download
@bottle.route('/download/<resnum:int>')
def edit(resnum):
if not hasrclextract:
return 'Sorry, needs recoll version 1.19 or later'