summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db.py3
-rw-r--r--static/style.css1
-rw-r--r--templates/base.tmpl1
3 files changed, 4 insertions, 1 deletions
diff --git a/db.py b/db.py
index 8cadb6b..064f8e5 100644
--- a/db.py
+++ b/db.py
@@ -56,7 +56,8 @@ class File(Base):
def html(self):
return u'<a href="{root}f/{hash}/{filename}">{filename}</a> ' \
- '<sup><a href="{root}f/{hash}">1</a> <a href="{root}f/{hash}{ext}">2</a> <a href="{root}d/{hash}">del</a></sup> ({size}) on {date}'.format(
+ '<sup><a href="{root}f/{hash}">1</a> <a href="{root}f/{hash}{ext}">2</a> <a href="{root}d/{hash}">del</a></sup> ' \
+ '<span class="file-info">({size}) on {date}'.format(
root = settings.virtual_root, hash = self.hash, filename = self.filename, ext = os.path.splitext(self.filename)[1],
size = self.pretty_size(self.get_size()), date = self.date.strftime('%Y-%m-%d %H:%M:%S UTC'))
diff --git a/static/style.css b/static/style.css
index 0e2002e..e2ff80f 100644
--- a/static/style.css
+++ b/static/style.css
@@ -12,6 +12,7 @@ div#page-menu a { color: #ccc; text-decoration: none; margin: 0 .5em 0 .5em; }
ul { list-style-type: none; }
li { margin-left: 1em; }
+.file-info { display: inline-block; }
.image-list .image { display: inline-block; vertical-align: top; width: 128px; margin: .5em; }
.image-list .image img { opacity: 1; }
diff --git a/templates/base.tmpl b/templates/base.tmpl
index d9d9ab1..fe9120b 100644
--- a/templates/base.tmpl
+++ b/templates/base.tmpl
@@ -5,6 +5,7 @@
<head>
<title>$title</title>
<link rel="StyleSheet" href="${root}s/style.css" type="text/css" />
+ <meta name="viewport" content="initial-scale=1.0, width=device-width" />
#block head
#end block
</head>