Commit 95e93e4d authored by jobe451's avatar jobe451
Browse files

removed link to file, download is default

download links to files directly (file://) are not supported anymore by most browsers. Basides, I have the application running anyhow on a different server. Network file path' on local machines are anyhow different.
parent 91ed38aa
......@@ -6,7 +6,9 @@
%for dr, prefix in config['mounts'].items():
%url = url.replace(dr, prefix)
<div class="search-result-title" id="r{{d['sha']}}" title="{{d['abstract']}}"><a href="{{url}}">{{d['label']}}</a></div>
<div class="search-result-title" id="r{{d['sha']}}" title="{{d['abstract']}}">
<a href="download/{{number-1}}?{{query_string}}">{{d['label']}}</a>
%if len(d['ipath']) > 0:
<div class="search-result-ipath">[{{d['ipath']}}]</div>
......@@ -23,7 +25,6 @@
%if hasrclextract:
<div class="search-result-links">
<a href="preview/{{number-1}}?{{query_string}}" target="_blank">Preview</a>
<a href="download/{{number-1}}?{{query_string}}">Download</a>
<div class="search-result-date">{{d['time']}}</div>
Markdown is supported
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