browse: better-looking sort order arrows

This commit is contained in:
Matthew Holt 2015-06-22 15:04:22 -06:00
parent 47096e112a
commit 4b349805db
2 changed files with 12 additions and 6 deletions

View file

@ -139,6 +139,11 @@ th {
text-align: left; text-align: left;
} }
th a {
color: #000;
text-decoration: none;
}
@media (max-width: 700px) { @media (max-width: 700px) {
.hideable { .hideable {
display: none; display: none;
@ -204,27 +209,27 @@ th {
<tr> <tr>
<th> <th>
{{if and (eq .Sort "name") (ne .Order "desc")}} {{if and (eq .Sort "name") (ne .Order "desc")}}
<a href="?sort=name&order=desc">Name&#8595;</a> <a href="?sort=name&order=desc">Name &#9650;</a>
{{else if and (eq .Sort "name") (ne .Order "asc")}} {{else if and (eq .Sort "name") (ne .Order "asc")}}
<a href="?sort=name&order=asc">Name&#8593;</a> <a href="?sort=name&order=asc">Name &#9660;</a>
{{else}} {{else}}
<a href="?sort=name&order=asc">Name</a> <a href="?sort=name&order=asc">Name</a>
{{end}} {{end}}
</th> </th>
<th> <th>
{{if and (eq .Sort "size") (ne .Order "desc")}} {{if and (eq .Sort "size") (ne .Order "desc")}}
<a href="?sort=size&order=desc">Size&#8595;</a> <a href="?sort=size&order=desc">Size &#9650;</a>
{{else if and (eq .Sort "size") (ne .Order "asc")}} {{else if and (eq .Sort "size") (ne .Order "asc")}}
<a href="?sort=size&order=asc">Size&#8593;</a> <a href="?sort=size&order=asc">Size &#9660;</a>
{{else}} {{else}}
<a href="?sort=size&order=asc">Size</a> <a href="?sort=size&order=asc">Size</a>
{{end}} {{end}}
</th> </th>
<th class="hideable"> <th class="hideable">
{{if and (eq .Sort "time") (ne .Order "desc")}} {{if and (eq .Sort "time") (ne .Order "desc")}}
<a href="?sort=time&order=desc">Modified&#8595;</a> <a href="?sort=time&order=desc">Modified &#9650;</a>
{{else if and (eq .Sort "time") (ne .Order "asc")}} {{else if and (eq .Sort "time") (ne .Order "asc")}}
<a href="?sort=time&order=asc">Modified&#8593;</a> <a href="?sort=time&order=asc">Modified &#9660;</a>
{{else}} {{else}}
<a href="?sort=time&order=asc">Modified</a> <a href="?sort=time&order=asc">Modified</a>
{{end}} {{end}}

1
dist/CHANGES.txt vendored
View file

@ -1,6 +1,7 @@
CHANGES CHANGES
<VERSION> (<DATE>) <VERSION> (<DATE>)
- browse: Click column heading to sort
- git: Pull changes immediately with GitHub webhook - git: Pull changes immediately with GitHub webhook
- gzip: Filter by path and extension - gzip: Filter by path and extension
- gzip: Customize compression level - gzip: Customize compression level