Switch to side-by-side view

--- a/webui.py
+++ b/webui.py
@@ -311,14 +311,11 @@
     doc = rclq.fetchone()
     bottle.response.content_type = doc.mimetype
     pathismine = False
-    if doc.ipath == '':
-        # If ipath is null, we can just return the file
-        path = doc.url.replace('file://','')
-    else:
-        # Else this is a subdocument, extract to temporary file
-        xt = rclextract.Extractor(doc)
-        path = xt.idoctofile(doc.ipath, doc.mimetype)
-        pathismine = True
+
+    xt = rclextract.Extractor(doc)
+    path = xt.idoctofile(doc.ipath, doc.mimetype)
+    pathismine = True
+
     bottle.response.headers['Content-Disposition'] = \
         'attachment; filename="%s"' % os.path.basename(path).encode('utf-8')
     path = path.encode('utf-8')