actually use the include_user_list parameter

このコミットが含まれているのは:
n9k 2021-04-15 17:10:24 +00:00
コミット 2f2f9da50f
3個のファイルの変更6行の追加5行の削除

ファイルの表示

@ -145,6 +145,7 @@ def chat_iframe():
return render_template('chat-iframe.html',
token=token,
messages=messages,
include_user_list=include_user_list,
people=viewership.get_people_list(),
default_nickname=viewership.default_nickname,
broadcaster=token == BROADCASTER_TOKEN,
@ -312,4 +313,4 @@ def add_header(response):
@current_app.route('/teapot')
def teapot():
return {'short': True, 'stout': True}, 418
return {'short': True, 'stout': True}, 418

ファイルの表示

@ -97,7 +97,7 @@
<a href="" style="text-decoration: none;"><div id="refresh" class="rotate">Manual refresh required</div></a>
</div>
{% if users %}
{% if include_user_list %}
<div id="users" style="display: none;">
{% with person = people['broadcaster'] %}
{% if person %}
@ -151,4 +151,4 @@
</div>
{% endif %}
</body>
</html>
</html>

ファイルの表示

@ -52,7 +52,7 @@
<video style="width: 100%;height: 100%;" controls autoplay src="{{ url_for('segments', token=token) }}">
</noscript>
</div>
<div id="stream-info-container"><noscript><iframe id="stream-info" src="{{ url_for('stream_info', token=token, embed=1) }}"></iframe></noscript></div>
<div id="stream-info-container"><noscript><iframe id="stream-info" src="{{ url_for('stream_info') }}?token={{ token }}&embed=1"></iframe></noscript></div>
<div id="source" style="margin: -2.75em 0 1.5em 1.25em;"><a href="https://gitlab.com/ninya9k/onion-livestreaming" target="_blank">source code</a></div>
</div>
<div class="pure-u-1 pure-u-md-1-3">
@ -83,7 +83,7 @@
</form>
</div>
<div id="chat-window">
<div id="chat-container"><noscript><iframe id="chat" name="chat" src="{{ url_for('chat_iframe', token=token, users=0) }}"></iframe></noscript></div>
<div id="chat-container"><noscript><iframe id="chat" name="chat" src="{{ url_for('chat_iframe') }}?token={{ token }}&users=0"></iframe></noscript></div>
<div id="users-container"><noscript><iframe name="users" src="{{ url_for('users', token=token) }}"></iframe></noscript></div>
</div>
<iframe style="height:6em;border-top:1px solid #434343;padding-top:0.5em;" src="{{ url_for('comment_iframe', token=token) }}"></iframe>