<html> <head> <title>{{ title }}</title> <meta charset="utf-8"> <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/hint.css/1.3.5/hint.min.css"> <style type="text/css"> h1, p { text-align: center; } </style> </head> <body> <div class="container-fluid"> {% if debug %} <div class="alert alert-danger" role="alert" style="text-align: center;"> <b>DEBUG</b> </div> {% endif %} {% for headline, list in objs %} {% if list|length > 0 %} <h1>{{ headline }}</h2> <ul class="list-group"> {% for client, value in list %} <li id="{{ client.nick }}" onclick="window.location = '#{{ client.nick }}'" 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 class="badge">{{ value }}</span> </li> {% endfor %} </ul> {% endif %} {% endfor %} </div> </body> </html>