more styling

This commit is contained in:
Ville Rantanen
2018-02-18 11:01:31 +02:00
parent 5000a881e7
commit 2ef411ced9
3 changed files with 7 additions and 2 deletions

View File

@@ -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):

View File

@@ -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%);

View File

@@ -10,11 +10,14 @@
</div>
<div class=clear></div>
<table id=index_table>
<thead>
<tr>
<th>Name
<th class=td_right>Expires
<th class=td_right>Upload
</tr>
</thead>
<tbody>
{% for entry in entries %}
<tr>
<td><a
@@ -25,5 +28,6 @@
<td class=td_right>{% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %}
<td class=td_right>{% if entry.upload %}yes{% else %}no{% endif %}
{% endfor %}
</tbody>
</table>
{% endblock %}