Commit 82dad9d4 authored by koniu's avatar koniu
Browse files

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

parent ea2dc0fd
......@@ -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>
......
......@@ -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'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment