%number = (query['page'] - 1)*config['perpage'] + i + 1
%url = d['url'].replace('file://', '')
%for dr, prefix in config['mounts'].items():
%url = url.replace(dr, prefix)
%end
%if len(d['ipath']) > 0:
[{{d['ipath']}}]
%end
%if d.has_key('author') and len(d['author']) > 0:
{{d['author']}}
%end
%urllabel = os.path.dirname(d['url'].replace('file://', ''))
%for r in config['dirs']:
%urllabel = urllabel.replace(r.rsplit('/',1)[0] + '/' , '')
%end
{{urllabel}}
%if hasrclextract:
%end
{{d['time']}}
{{!d['snippet']}}