76 行
1.8 KiB
HTML
76 行
1.8 KiB
HTML
{% from 'macros/user.html' import appearance with context %}
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<style>
|
|
html {
|
|
min-height: 100%;
|
|
}
|
|
body {
|
|
margin: 0 0 0.875rem;
|
|
background: linear-gradient(#121214 calc(100% - 0.625rem), #232327 calc(100% - 0.125rem));
|
|
color: #ddd;
|
|
font-family: sans-serif;
|
|
}
|
|
#header {
|
|
padding: 0.5rem;
|
|
background-color: #2c2c29;
|
|
border-bottom: 1px solid #4a4a4f;
|
|
}
|
|
#header > h4 {
|
|
margin: 0;
|
|
font-weight: normal;
|
|
text-align: center;
|
|
}
|
|
#main {
|
|
margin: 0.5rem 0.75rem;
|
|
}
|
|
#main > h5 {
|
|
margin: 0;
|
|
}
|
|
#main > ul {
|
|
margin: 0;
|
|
padding-left: 0.75rem;
|
|
list-style: none;
|
|
}
|
|
.user {
|
|
line-height: 1.4375;
|
|
}
|
|
.user__name {
|
|
font-weight: bold;
|
|
cursor: default;
|
|
}
|
|
.user__name__tag {
|
|
font-family: monospace;
|
|
font-size: 9pt;
|
|
vertical-align: top;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header id="header"><h4>Users in chat</h4></header>
|
|
<main id="main">
|
|
<h5>Watching ({{ users_watching | length }})</h5>
|
|
<ul>
|
|
{% for user_listed in users_watching %}
|
|
<li class="user">
|
|
{{- appearance(user_listed, name_class='user__name', tag_class='user__name__tag') -}}
|
|
{%- if user.token == user_listed.token %} (You){% endif -%}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<br>
|
|
<h5>Not watching ({{ users_notwatching | length }})</h5>
|
|
<ul>
|
|
{% for user_listed in users_notwatching %}
|
|
<li class="user">
|
|
{{- appearance(user_listed, name_class='user__name', tag_class='user__name__tag') -}}
|
|
{%- if user.token == user_listed.token %} (You){% endif -%}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</article>
|
|
</body>
|
|
</html>
|