more styling
This commit is contained in:
@@ -253,7 +253,7 @@ def file_size_human(num):
|
|||||||
num /= 1024.0
|
num /= 1024.0
|
||||||
|
|
||||||
def file_size_MB(num):
|
def file_size_MB(num):
|
||||||
return "%0.2f"%(num/(1024*1024),)
|
return "{:,.2f}".format(num/(1024*1024))
|
||||||
|
|
||||||
|
|
||||||
def file_date_human(num):
|
def file_date_human(num):
|
||||||
|
|||||||
@@ -47,9 +47,10 @@ td,th {
|
|||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
background: #FDF2E9;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr:nth-child(even) {
|
tr:nth-child(odd) {
|
||||||
background-color: #FAE5D3;
|
background-color: #FAE5D3;
|
||||||
background: -moz-linear-gradient(left, #fae5d3 0%, #fae5d3 95%, #fdf2e9 100%);
|
background: -moz-linear-gradient(left, #fae5d3 0%, #fae5d3 95%, #fdf2e9 100%);
|
||||||
background: -webkit-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>
|
||||||
<div class=clear></div>
|
<div class=clear></div>
|
||||||
<table id=index_table>
|
<table id=index_table>
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name
|
<th>Name
|
||||||
<th class=td_right>Expires
|
<th class=td_right>Expires
|
||||||
<th class=td_right>Upload
|
<th class=td_right>Upload
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
{% for entry in entries %}
|
{% for entry in entries %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a
|
<td><a
|
||||||
@@ -25,5 +28,6 @@
|
|||||||
<td class=td_right>{% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %}
|
<td class=td_right>{% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %}
|
||||||
<td class=td_right>{% if entry.upload %}yes{% else %}no{% endif %}
|
<td class=td_right>{% if entry.upload %}yes{% else %}no{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user