Switch to unified view

a/views/results.tpl b/views/results.tpl
...
...
30
    %if  len(d['author']) > 0:
30
    %if  len(d['author']) > 0:
31
        <div class="search-result-author">{{d['author']}}</div>
31
        <div class="search-result-author">{{d['author']}}</div>
32
    %end
32
    %end
33
    <div class="search-result-url">
33
    <div class="search-result-url">
34
        %urllabel = d['url'].replace('/'+d['filename'],'').replace('file://','')
34
        %urllabel = d['url'].replace('/'+d['filename'],'').replace('file://','')
35
        %for r in roots:
35
        %for r in config['dirs']:
36
            %urllabel = urllabel.replace(r.rsplit('/',1)[0] + '/' , '')
36
            %urllabel = urllabel.replace(r.rsplit('/',1)[0] + '/' , '')
37
        %end
37
        %end
38
        <a href="{{url.replace('/'+d['filename'],'')}}">{{urllabel}}</a>
38
        <a href="{{url.replace('/'+d['filename'],'')}}">{{urllabel}}</a>
39
    </div>
39
    </div>
40
    <div class="search-result-date">{{d['time']}}</div>
40
    <div class="search-result-date">{{d['time']}}</div>