Merge branch 'dev'
このコミットが含まれているのは:
コミット
e14cd4c09c
|
@ -136,14 +136,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
{% for token in messages | map(attribute='token') | list | unique %}
|
{% for token in messages | map(attribute='token') | list | unique %}
|
||||||
{% with user = users_by_token[token] %}
|
{% with this_user = users_by_token[token] %}
|
||||||
[data-token-hash="{{ user.token_hash }}"] > .chat-message__name {
|
[data-token-hash="{{ this_user.token_hash }}"] > .chat-message__name {
|
||||||
color: {{ user.color }};
|
color: {{ this_user.color }};
|
||||||
}
|
}
|
||||||
{% if user.tripcode %}
|
{% if this_user.tripcode %}
|
||||||
[data-token-hash="{{ user.token_hash }}"] > .tripcode {
|
[data-token-hash="{{ this_user.token_hash }}"] > .tripcode {
|
||||||
background-color: {{ user.tripcode.background_color }};
|
background-color: {{ this_user.tripcode.background_color }};
|
||||||
color: {{ user.tripcode.foreground_color }};
|
color: {{ this_user.tripcode.foreground_color }};
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
@ -161,15 +161,15 @@
|
||||||
</aside>
|
</aside>
|
||||||
<ol id="chat-messages">
|
<ol id="chat-messages">
|
||||||
{% for message in messages | reverse %}
|
{% for message in messages | reverse %}
|
||||||
<li class="chat-message" data-seq="{{ message.seq }}" data-token-hash="{{ user.token_hash }}">
|
{% with this_user = users_by_token[message.token] %}
|
||||||
{% with user = users_by_token[message.token] %}
|
<li class="chat-message" data-seq="{{ message.seq }}" data-token-hash="{{ this_user.token_hash }}">
|
||||||
<time class="chat-message__time" datetime="{{ message.date }}T{{ message.time_seconds }}Z" title="{{ message.date }} {{ message.time_seconds }}">{{ message.time_minutes }}</time>
|
<time class="chat-message__time" datetime="{{ message.date }}T{{ message.time_seconds }}Z" title="{{ message.date }} {{ message.time_seconds }}">{{ message.time_minutes }}</time>
|
||||||
{{- ' ' | safe -}}
|
{{- ' ' | safe -}}
|
||||||
{{ appearance(user, insignia_class='chat-message__insignia', name_class='chat-message__name', tag_class='chat-message__name__tag') }}
|
{{ appearance(this_user, insignia_class='chat-message__insignia', name_class='chat-message__name', tag_class='chat-message__name__tag') }}
|
||||||
{{- ': ' -}}
|
{{- ': ' -}}
|
||||||
<span class="chat-message__markup">{{ message.markup }}</span>
|
<span class="chat-message__markup">{{ message.markup }}</span>
|
||||||
{% endwith %}
|
</li>
|
||||||
</li>
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
<aside id="timeout-dismiss">
|
<aside id="timeout-dismiss">
|
||||||
|
|
|
@ -86,14 +86,14 @@
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
{% for user in users_watching + users_notwatching %}
|
{% for user_listed in users_watching + users_notwatching %}
|
||||||
[data-token-hash="{{ user.token_hash }}"] > .user__name {
|
[data-token-hash="{{ user_listed.token_hash }}"] > .user__name {
|
||||||
color: {{ user.color }};
|
color: {{ user_listed.color }};
|
||||||
}
|
}
|
||||||
{% if user.tripcode %}
|
{% if user_listed.tripcode %}
|
||||||
[data-token-hash="{{ user.token_hash }}"] > .tripcode {
|
[data-token-hash="{{ user_listed.token_hash }}"] > .tripcode {
|
||||||
background-color: {{ user.tripcode.background_color }};
|
background-color: {{ user_listed.tripcode.background_color }};
|
||||||
color: {{ user.tripcode.foreground_color }};
|
color: {{ user_listed.tripcode.foreground_color }};
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
<h5>Watching ({{ users_watching | length }})</h5>
|
<h5>Watching ({{ users_watching | length }})</h5>
|
||||||
<ul>
|
<ul>
|
||||||
{% for user_listed in users_watching %}
|
{% for user_listed in users_watching %}
|
||||||
<li class="user" data-token-hash="{{ user.token_hash }}">
|
<li class="user" data-token-hash="{{ user_listed.token_hash }}">
|
||||||
{{- appearance(user_listed, insignia_class='user__insignia', name_class='user__name', tag_class='user__name__tag') -}}
|
{{- appearance(user_listed, insignia_class='user__insignia', name_class='user__name', tag_class='user__name__tag') -}}
|
||||||
{%- if user.token == user_listed.token %} (You){% endif -%}
|
{%- if user.token == user_listed.token %} (You){% endif -%}
|
||||||
</li>
|
</li>
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
<h5>Not watching ({{ users_notwatching | length }})</h5>
|
<h5>Not watching ({{ users_notwatching | length }})</h5>
|
||||||
<ul>
|
<ul>
|
||||||
{% for user_listed in users_notwatching %}
|
{% for user_listed in users_notwatching %}
|
||||||
<li class="user" data-token-hash="{{ user.token_hash }}">
|
<li class="user" data-token-hash="{{ user_listed.token_hash }}">
|
||||||
{{- appearance(user_listed, insignia_class='user__insignia', name_class='user__name', tag_class='user__name__tag') -}}
|
{{- appearance(user_listed, insignia_class='user__insignia', name_class='user__name', tag_class='user__name__tag') -}}
|
||||||
{%- if user.token == user_listed.token %} (You){% endif -%}
|
{%- if user.token == user_listed.token %} (You){% endif -%}
|
||||||
</li>
|
</li>
|
||||||
|
|
読み込み中…
新しいイシューから参照