Skip to content

Commit

Permalink
removed link to file, download is default
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jobe451 committed Mar 31, 2014
1 parent 91ed38a commit 95e93e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions views/result.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
%for dr, prefix in config['mounts'].items():
%url = url.replace(dr, prefix)
%end
<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>
</div>
%if len(d['ipath']) > 0:
<div class="search-result-ipath">[{{d['ipath']}}]</div>
%end
Expand All @@ -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>
%end
<div class="search-result-date">{{d['time']}}</div>
Expand Down

0 comments on commit 95e93e4

Please sign in to comment.