|
a/views/result.tpl |
|
b/views/result.tpl |
|
... |
|
... |
4 |
<div class="search-result-number"><a href="#r{{d['sha']}}">#{{number}}</a></div>
|
4 |
<div class="search-result-number"><a href="#r{{d['sha']}}">#{{number}}</a></div>
|
5 |
%url = d['url'].replace('file://', '')
|
5 |
%url = d['url'].replace('file://', '')
|
6 |
%for dr, prefix in config['mounts'].items():
|
6 |
%for dr, prefix in config['mounts'].items():
|
7 |
%url = url.replace(dr, prefix)
|
7 |
%url = url.replace(dr, prefix)
|
8 |
%end
|
8 |
%end
|
9 |
<div class="search-result-title" id="r{{d['sha']}}" title="{{d['abstract']}}"><a href="{{url}}">{{d['label']}}</a></div>
|
9 |
<div class="search-result-title" id="r{{d['sha']}}" title="{{d['abstract']}}">
|
|
|
10 |
<a href="download/{{number-1}}?{{query_string}}">{{d['label']}}</a>
|
|
|
11 |
</div>
|
10 |
%if len(d['ipath']) > 0:
|
12 |
%if len(d['ipath']) > 0:
|
11 |
<div class="search-result-ipath">[{{d['ipath']}}]</div>
|
13 |
<div class="search-result-ipath">[{{d['ipath']}}]</div>
|
12 |
%end
|
14 |
%end
|
13 |
%if d.has_key('author') and len(d['author']) > 0:
|
15 |
%if d.has_key('author') and len(d['author']) > 0:
|
14 |
<div class="search-result-author">{{d['author']}}</div>
|
16 |
<div class="search-result-author">{{d['author']}}</div>
|
|
... |
|
... |
21 |
<a href="{{url.replace('/'+d['filename'],'')}}">{{urllabel}}</a>
|
23 |
<a href="{{url.replace('/'+d['filename'],'')}}">{{urllabel}}</a>
|
22 |
</div>
|
24 |
</div>
|
23 |
%if hasrclextract:
|
25 |
%if hasrclextract:
|
24 |
<div class="search-result-links">
|
26 |
<div class="search-result-links">
|
25 |
<a href="preview/{{number-1}}?{{query_string}}" target="_blank">Preview</a>
|
27 |
<a href="preview/{{number-1}}?{{query_string}}" target="_blank">Preview</a>
|
26 |
<a href="download/{{number-1}}?{{query_string}}">Download</a>
|
|
|
27 |
</div>
|
28 |
</div>
|
28 |
%end
|
29 |
%end
|
29 |
<div class="search-result-date">{{d['time']}}</div>
|
30 |
<div class="search-result-date">{{d['time']}}</div>
|
30 |
<div class="search-result-snippet">{{!d['snippet']}}</div>
|
31 |
<div class="search-result-snippet">{{!d['snippet']}}</div>
|
31 |
</div>
|
32 |
</div>
|