more styling
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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%);
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user