2021-04-15 21:45:22 +09:00
|
|
|
<html>
|
|
|
|
<head>
|
2021-04-16 00:18:46 +09:00
|
|
|
{% if not debug %}<meta http-equiv="refresh" content="8">{% endif %}
|
2021-04-15 21:45:22 +09:00
|
|
|
<style>
|
2021-04-16 21:28:41 +09:00
|
|
|
body {color:white;margin-top: 0;margin-bottom: 0;}
|
2021-04-15 21:45:22 +09:00
|
|
|
.group {margin-bottom:1.5em;}
|
|
|
|
.group-name {margin-bottom:0.25em;}
|
|
|
|
.person {margin-left: 0.5em;}
|
|
|
|
.camera {transform: scaleX(-1);text-shadow: 0px 0px 6px #{{ broadcaster_colour.hex() }};cursor: help;margin-right:0.25em;}
|
|
|
|
.name {font-weight: bold;unicode-bidi: isolate;}
|
|
|
|
sup {margin: 0 -0.25em 0 0.125em;font-size: 90%;font-family:monospace;}
|
|
|
|
.tripcode {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
padding: 0 5px;
|
|
|
|
border-radius: 6px;
|
|
|
|
font-size: 90%;
|
|
|
|
font-family: monospace;
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-04-16 21:28:41 +09:00
|
|
|
form {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.refresh {
|
|
|
|
color: white;
|
|
|
|
background-color: gray;
|
|
|
|
position: sticky;
|
|
|
|
top: 0; /* (when upside down etc.) placement is correct with top when there is no scrollbar */
|
|
|
|
/*bottom: 0;*/ /* (when upside down etc.) placement is correct with bottom when there is a scrollbar */
|
|
|
|
padding: 1em;
|
|
|
|
text-align: center;
|
|
|
|
font-weight: bold;
|
|
|
|
border-radius: 4px;
|
|
|
|
box-shadow: 0px 2px 4px black;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.unhide-margin {
|
|
|
|
animation: unhide-margin 0s forwards 30s;
|
|
|
|
height: 0;
|
|
|
|
padding: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
@keyframes unhide-margin {
|
|
|
|
to {
|
|
|
|
height: revert;
|
|
|
|
padding: 1em;
|
|
|
|
visibility: visible;
|
2021-04-17 02:53:06 +09:00
|
|
|
margin-bottom: 1.25em;
|
2021-04-16 21:28:41 +09:00
|
|
|
}
|
|
|
|
}
|
2021-04-15 21:45:22 +09:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2021-04-16 21:28:41 +09:00
|
|
|
<a href="" style="text-decoration: none;">
|
|
|
|
<div class="refresh unhide-margin" style="bottom:revert;top:0;">Manual refresh required</div>
|
|
|
|
</a>
|
2021-04-17 02:57:40 +09:00
|
|
|
<div style="margin: 0.5em 1em 0 1em;">
|
2021-04-16 00:18:46 +09:00
|
|
|
{% with person = people['broadcaster'] %}
|
|
|
|
{% if person %}
|
2021-04-15 21:45:22 +09:00
|
|
|
<div class="group">
|
|
|
|
<div class="group-name">Broadcaster</div>
|
|
|
|
<div class="person">
|
2021-04-16 00:18:46 +09:00
|
|
|
<span class="camera" title="Broadcaster">🎥</span><span class="name" style="color:#{{ person['colour'].hex() }};">{{ person['nickname'] or default_nickname(person['token']) }}</span>{% if person['tripcode']['string'] %}<div class="tripcode" style="background-color:#{{ person['tripcode']['background_colour'].hex() }};color:#{{ person['tripcode']['foreground_colour'].hex() }};">{{ person['tripcode']['string'] }}</div>{% endif %}
|
2021-04-15 21:45:22 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
2021-04-16 00:18:46 +09:00
|
|
|
{% if broadcaster %}
|
|
|
|
<form action="{{ url_for('mod_users') }}" method="post">
|
|
|
|
<input type="hidden" name="noscript" value="1">
|
|
|
|
<input type="hidden" name="banned" value="1">
|
|
|
|
{% endif %}
|
2021-04-15 21:45:22 +09:00
|
|
|
<div class="group">
|
|
|
|
<div class="group-name">Users watching ({{ len(people['watching']) }})</div>
|
|
|
|
{% for person in people['watching'] %}
|
|
|
|
<div class="person">
|
2021-04-16 00:18:46 +09:00
|
|
|
{% if broadcaster %}<input type="checkbox" name="token[]" value="{{ person['token'] }}">{% endif %}<span class="name" style="color:#{{ person['colour'].hex() }};">{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}<sup>{{ person['tag'] }}</sup>{% endif %}</span>{% if person['tripcode']['string'] %}{% if tag %}<span style="margin-right:0.125em;"></span>{% endif %}<div class="tripcode" style="background-color:#{{ person['tripcode']['background_colour'].hex() }};color:#{{ person['tripcode']['foreground_colour'].hex() }};">{{ person['tripcode']['string'] }}</div>{% endif %}{% endwith %}{% if person['token'] == token %}<span style="margin-left:0.5em;color:white;">(You)</span>{% endif %}
|
2021-04-15 21:45:22 +09:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div class="group">
|
|
|
|
<div class="group-name">Users not watching ({{ len(people['not_watching']) }})</div>
|
|
|
|
{% for person in people['not_watching'] %}
|
|
|
|
<div class="person">
|
2021-04-16 00:18:46 +09:00
|
|
|
{% if broadcaster %}<input type="checkbox" name="token[]" value="{{ person['token'] }}">{% endif %}<span class="name" style="color:#{{ person['colour'].hex() }};">{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}<sup>{{ person['tag'] }}</sup>{% endif %}</span>{% if person['tripcode']['string'] %}{% if tag %}<span style="margin-right:0.125em;"></span>{% endif %}<div class="tripcode" style="background-color:#{{ person['tripcode']['background_colour'].hex() }};color:#{{ person['tripcode']['foreground_colour'].hex() }};">{{ person['tripcode']['string'] }}</div>{% endif %}{% endwith %}{% if person['token'] == token %}<span style="margin-left:0.5em;color:white;">(You)</span>{% endif %}
|
2021-04-15 21:45:22 +09:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2021-04-16 00:18:46 +09:00
|
|
|
{% if broadcaster %}
|
|
|
|
<button>Ban</button>
|
|
|
|
</form>
|
|
|
|
<div style="margin:1.75em 0 1.5em 0;border-bottom:1px solid #3f3f3f;"></div>
|
|
|
|
<form action="{{ url_for('mod_users') }}" method="post">
|
|
|
|
<input type="hidden" name="noscript" value="1">
|
|
|
|
<input type="hidden" name="banned" value="0">
|
|
|
|
<div class="group-name">Banned ({{ len(people['banned']) }})</div>
|
|
|
|
<div class="group">
|
|
|
|
{% for person in people['banned'] %}
|
|
|
|
<div class="person">
|
|
|
|
<input type="checkbox" name="token[]" value="{{ person['token'] }}"><span class="name" style="color:#{{ person['colour'].hex() }};">{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}<sup>{{ person['tag'] }}</sup>{% endif %}</span>{% if person['tripcode']['string'] %}{% if tag %}<span style="margin-right:0.125em;"></span>{% endif %}<div class="tripcode" style="background-color:#{{ person['tripcode']['background_colour'].hex() }};color:#{{ person['tripcode']['foreground_colour'].hex() }};">{{ person['tripcode']['string'] }}</div>{% endif %}{% endwith %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<button>Unban</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2021-04-16 21:28:41 +09:00
|
|
|
</div>
|
2021-04-15 21:45:22 +09:00
|
|
|
</body>
|
2021-04-17 02:57:40 +09:00
|
|
|
</html>
|