add: group channels, group channel members list, group channel renaming
This commit is contained in:
parent
a62905a8c4
commit
b91e9a62fb
16 changed files with 341 additions and 77 deletions
|
@ -925,7 +925,7 @@ if state and state.data %}
|
|||
{%- endmacro %} {% macro connection_url(key, value) -%} {% if value[0].data.url
|
||||
%} {{ value[0].data.url }} {% elif key == "LastFm" %} https://last.fm/user/{{
|
||||
value[0].data.name }} {% endif %} {%- endmacro %} {% macro
|
||||
message_actions(can_manage_message, user, message) -%}
|
||||
message_actions(can_manage_message, owner, message, owner) -%}
|
||||
<div class="dropdown">
|
||||
<button
|
||||
class="camo small"
|
||||
|
@ -956,6 +956,11 @@ message_actions(can_manage_message, user, message) -%}
|
|||
{{ icon "copy" }}
|
||||
<span>{{ text "general:action.copy_link" }}</span>
|
||||
</button>
|
||||
|
||||
<button onclick="mention_user('{{ owner.username }}')">
|
||||
{{ icon "at-sign" }}
|
||||
<span>{{ text "chats:action.mention_user" }}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{%- endmacro %} {% macro message(user, message, can_manage_message=false,
|
||||
|
@ -966,7 +971,7 @@ grouped=false) -%}
|
|||
>
|
||||
{% if not grouped %}
|
||||
<a href="/@{{ user.username }}" target="_top">
|
||||
{{ self::avatar(username=user.username, size="52px") }}
|
||||
{{ self::avatar(username=user.username, size="42px") }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
|
@ -985,7 +990,7 @@ grouped=false) -%}
|
|||
</div>
|
||||
|
||||
<div class="flex gap-2 hidden">
|
||||
{{ self::message_actions(user=user, message=message,
|
||||
{{ self::message_actions(owner=user, message=message,
|
||||
can_manage_message=can_manage_message) }}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -996,7 +1001,7 @@ grouped=false) -%}
|
|||
|
||||
{% if grouped %}
|
||||
<div class="hidden">
|
||||
{{ self::message_actions(user=user, message=message,
|
||||
{{ self::message_actions(owner=user, message=message,
|
||||
can_manage_message=can_manage_message) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@ -1096,7 +1101,7 @@ other_user.connections.Spotify[1].data.track %}
|
|||
>
|
||||
</div>
|
||||
{% endif %} {%- endmacro %} {% macro user_plate(user, show_menu=false,
|
||||
secondary=false) -%}
|
||||
show_kick=false, secondary=false) -%}
|
||||
<div
|
||||
class="flex gap-2 items-center card tiny user_plate {% if secondary %}secondary{% endif %}"
|
||||
>
|
||||
|
@ -1125,6 +1130,26 @@ secondary=false) -%}
|
|||
|
||||
{{ self::user_menu() }}
|
||||
</div>
|
||||
{% elif show_kick %}
|
||||
<div class="dropdown" style="margin-left: auto">
|
||||
<button
|
||||
class="camo small square"
|
||||
onclick="trigger('atto::hooks::dropdown', [event])"
|
||||
exclude="dropdown"
|
||||
>
|
||||
{{ icon "ellipsis" }}
|
||||
</button>
|
||||
|
||||
<div class="inner">
|
||||
<button
|
||||
class="red"
|
||||
onclick="kick_member('{{ channel.id }}', '{{ user.id }}')"
|
||||
>
|
||||
{{ icon "x" }}
|
||||
<span>{{ text "chats:action.kick_member" }}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{%- endmacro %} {% macro emoji_picker(element_id, render_dialog=false) -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue