Improve log display for small displays
This commit is contained in:
parent
7dc976e347
commit
1b7152930d
1 changed files with 18 additions and 16 deletions
|
@ -58,22 +58,24 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if entries and not filter_nsfw %}
|
{% if entries and not filter_nsfw %}
|
||||||
<table class="table is-narrow is-striped">
|
<div class="table-container">
|
||||||
<tbody>
|
<table class="table is-narrow is-striped is-fullwidth">
|
||||||
{% for entry in entries %}
|
<tbody>
|
||||||
<tr>
|
{% for entry in entries %}
|
||||||
{% if request.user.is_staff %}
|
<tr>
|
||||||
<td>
|
{% if request.user.is_staff %}
|
||||||
<a href="{% url 'log_switch_entry' entry.pk %}?next={{ request.path_info }}">{% if entry.hidden %}<span class="has-text-danger">⚠</span>{% else %}<span class="has-text-success">✓</span>{% endif %}</a>
|
<td>
|
||||||
</td>
|
<a href="{% url 'log_switch_entry' entry.pk %}?next={{ request.path_info }}">{% if entry.hidden %}<span class="has-text-danger">⚠</span>{% else %}<span class="has-text-success">✓</span>{% endif %}</a>
|
||||||
{% endif %}
|
</td>
|
||||||
<td>{{ entry.created|date:"H:i:s" }}</td>
|
{% endif %}
|
||||||
<td class="has-text-right{% if not entry.nick %} has-text-grey-light is-italic{% endif %}">{% if entry.nick %}{{ entry.nick }}{% else %}*{% endif %}</td>
|
<td>{{ entry.created|date:"H:i:s" }}</td>
|
||||||
<td{% if not entry.nick %} class="has-text-grey-light is-italic"{% endif %}>{{ entry.content|urlize }}</td>
|
<td class="has-text-right{% if not entry.nick %} has-text-grey-light is-italic{% endif %}">{% if entry.nick %}{{ entry.nick }}{% else %}*{% endif %}</td>
|
||||||
</tr>
|
<td{% if not entry.nick %} class="has-text-grey-light is-italic"{% endif %}>{{ entry.content|urlize }}</td>
|
||||||
{% endfor %}
|
</tr>
|
||||||
</tbody>
|
{% endfor %}
|
||||||
</table>
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{% elif entries %}
|
{% elif entries %}
|
||||||
{% include "nsfw/alert.html" with next_url=current_url %}
|
{% include "nsfw/alert.html" with next_url=current_url %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue