Move last-seen hint to value

and display it on the left side because last-seen is related to onlinetime and not
to the nick.
This commit is contained in:
Thor77 2017-02-10 23:04:52 +01:00
parent 38d497300c
commit f97f309b85
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@
{% for client, value in clients %} {% for client, value in clients %}
{% set id = [headline_id, client.nick|striptags]|join('.') %} {% set id = [headline_id, client.nick|striptags]|join('.') %}
<li id="{{ id }}" onclick="window.location = '#{{ id }}'" class="list-group-item{{ ' list-group-item-success' if client.connected else loop.cycle('" style="background-color: #eee;', '') }}"> <li id="{{ id }}" onclick="window.location = '#{{ id }}'" class="list-group-item{{ ' list-group-item-success' if client.connected else loop.cycle('" style="background-color: #eee;', '') }}">
<span {% if not client.connected %}class="hint--right" data-hint="{{ client.last_seen|frmttime }}"{% endif %}>{{ client.nick }}{{ " (" + client.identifier + ")" if debug }}</span> <span>{{ client.nick }}{{ " (" + client.identifier + ")" if debug }}</span>
<span class="badge">{{ value }}</span> <span class="badge"><div{% if not client.connected %} class="hint--left" data-hint="{{ client.last_seen|frmttime }}"{% endif %}>{{ value }}</div></span>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>