From 2ef411ced99dcff37c92aa539e9a332cd8a33576 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Sun, 18 Feb 2018 11:01:31 +0200 Subject: [PATCH] more styling --- code/app.py | 2 +- code/static/css/styles.css | 3 ++- code/templates/index.html | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/app.py b/code/app.py index 422fa96..3b1a2c1 100644 --- a/code/app.py +++ b/code/app.py @@ -253,7 +253,7 @@ def file_size_human(num): num /= 1024.0 def file_size_MB(num): - return "%0.2f"%(num/(1024*1024),) + return "{:,.2f}".format(num/(1024*1024)) def file_date_human(num): diff --git a/code/static/css/styles.css b/code/static/css/styles.css index 4138500..ba338be 100755 --- a/code/static/css/styles.css +++ b/code/static/css/styles.css @@ -47,9 +47,10 @@ td,th { } th { cursor: pointer; + background: #FDF2E9; } -tr:nth-child(even) { +tr:nth-child(odd) { background-color: #FAE5D3; background: -moz-linear-gradient(left, #fae5d3 0%, #fae5d3 95%, #fdf2e9 100%); background: -webkit-linear-gradient(left, #fae5d3 0%,#fae5d3 95%,#fdf2e9 100%); diff --git a/code/templates/index.html b/code/templates/index.html index 81b6807..a6ca6a7 100755 --- a/code/templates/index.html +++ b/code/templates/index.html @@ -10,11 +10,14 @@
+ + + {% for entry in entries %}
Name Expires Upload
{% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %} {% if entry.upload %}yes{% else %}no{% endif %} {% endfor %} +
{% endblock %}