Switch to unified view

a/webui.py b/webui.py
...
...
292
    if resnum > rclq.rowcount - 1:
292
    if resnum > rclq.rowcount - 1:
293
        return 'Bad result index %d' % resnum
293
        return 'Bad result index %d' % resnum
294
    rclq.scroll(resnum)
294
    rclq.scroll(resnum)
295
    doc = rclq.fetchone()
295
    doc = rclq.fetchone()
296
    bottle.response.content_type = doc.mimetype
296
    bottle.response.content_type = doc.mimetype
297
    bottle.response.headers['Content-Disposition'] = \
298
        'attachment; filename=%s' % doc.filename
297
    # If ipath is null, we can just return the file
299
    # If ipath is null, we can just return the file
298
    pathismine = False
300
    pathismine = False
299
    if doc.ipath == '':
301
    if doc.ipath == '':
300
        path = doc.url.replace('file://','')
302
        path = doc.url.replace('file://','')
301
    else:
303
    else: