mirror of
https://github.com/koniu/recoll-webui.git
synced 2025-10-04 18:29:20 +02:00
py, tpl: rename "open/dl" link to "dl" to avoid confusion
This commit is contained in:
parent
ea2dc0fd54
commit
82dad9d486
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@
|
||||||
%if hasrclextract:
|
%if hasrclextract:
|
||||||
<div class="search-result-links">
|
<div class="search-result-links">
|
||||||
<a href="/preview/{{number-1}}?{{query_string}}" target="_blank">Preview</a>
|
<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>
|
</div>
|
||||||
%end
|
%end
|
||||||
<div class="search-result-date">{{d['time']}}</div>
|
<div class="search-result-date">{{d['time']}}</div>
|
||||||
|
|
4
webui.py
4
webui.py
|
@ -281,8 +281,8 @@ def preview(resnum):
|
||||||
bottle.response.content_type = 'text/plain; charset=utf-8'
|
bottle.response.content_type = 'text/plain; charset=utf-8'
|
||||||
return tdoc.text
|
return tdoc.text
|
||||||
#}}}
|
#}}}
|
||||||
#{{{ edit
|
#{{{ download
|
||||||
@bottle.route('/edit/<resnum:int>')
|
@bottle.route('/download/<resnum:int>')
|
||||||
def edit(resnum):
|
def edit(resnum):
|
||||||
if not hasrclextract:
|
if not hasrclextract:
|
||||||
return 'Sorry, needs recoll version 1.19 or later'
|
return 'Sorry, needs recoll version 1.19 or later'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue