Show last-seen hint only in Onlinetime-section

currently by filtering by headline (probably not a good long-term-solution)
This commit is contained in:
Thor77 2017-02-10 23:34:23 +01:00
parent f97f309b85
commit 6366d3ebb1
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
{% 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>{{ client.nick }}{{ " (" + client.identifier + ")" if debug }}</span> <span>{{ client.nick }}{{ " (" + client.identifier + ")" if debug }}</span>
<span class="badge"><div{% if not client.connected %} class="hint--left" data-hint="{{ client.last_seen|frmttime }}"{% endif %}>{{ value }}</div></span> <span class="badge"><div{% if not client.connected and headline == 'Onlinetime' %} class="hint--left" data-hint="{{ client.last_seen|frmttime }}"{% endif %}>{{ value }}</div></span>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>