New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve file list #66
Conversation
That looks awesome! One tiny thing: It'd be nice, based on your screenshots, for there to be a space in between the folder icons and the filenames. |
@ReimuHakurei Well, there is a space character after the icon. I'll try something else. Thanks! |
👍 |
@TheAMM |
Ah, right. Well, that can be iterated upon later, for now this looks a whole lot better than a flat list. |
@TheAMM nyaa/templates/view.html
@@ -89,11 +89,11 @@
<tr>
{%- if value is iterable %}
<td colspan="2" {% if loop.depth0 is greaterthan 0 %}style="padding-left: {{ loop.depth0 * 20 }}px"{% endif %}>
- <i class="glyphicon glyphicon-folder-open"></i> <b>{{ key }}</b></td>
+ <i class="glyphicon glyphicon-folder-open"></i> <b>{{ key }}</b></td>
{{ loop(value.items()) }}
{%- else %}
<td style="padding-left: {{ loop.depth0 * 20 }}px">
- <i class="glyphicon glyphicon-file"></i> {{ key }}</td>
+ <i class="glyphicon glyphicon-file"></i> {{ key }}</td>
<td class="col-md-2">{{ value | filesizeformat(True) }}</td>
{%- endif %}
</tr> |
This is very, very simple, based on the table that currently exists.
Ideally, it should be done using
<li>
&<ul>
, and allow for collapsing every directory tree (separately).But I don't think I'm capable of doing that.
This configuration should be good in the meantime.
Preview: