|
a/views/result.tpl |
|
b/views/result.tpl |
|
... |
|
... |
9 |
%end
|
9 |
%end
|
10 |
<div class="search-result-title" id="r{{d['sha']}}" title="{{d['abstract']}}"><a href="{{url}}">{{d['label']}}</a></div>
|
10 |
<div class="search-result-title" id="r{{d['sha']}}" title="{{d['abstract']}}"><a href="{{url}}">{{d['label']}}</a></div>
|
11 |
%if len(d['ipath']) > 0:
|
11 |
%if len(d['ipath']) > 0:
|
12 |
<div class="search-result-ipath">[{{d['ipath']}}]</div>
|
12 |
<div class="search-result-ipath">[{{d['ipath']}}]</div>
|
13 |
%end
|
13 |
%end
|
14 |
%if len(d['author']) > 0:
|
14 |
%if d.has_key('author') and len(d['author']) > 0:
|
15 |
<div class="search-result-author">{{d['author']}}</div>
|
15 |
<div class="search-result-author">{{d['author']}}</div>
|
16 |
%end
|
16 |
%end
|
17 |
<div class="search-result-url">
|
17 |
<div class="search-result-url">
|
18 |
%urllabel = d['url'].replace('/'+d['filename'],'').replace('file://','')
|
18 |
%urllabel = d['url'].replace('/'+d['filename'],'').replace('file://','')
|
19 |
%for r in config['dirs']:
|
19 |
%for r in config['dirs']:
|