{%- import "components.html" as components -%} {% for channel in channels %} {{ icon "rss" }} {{ channel.title }} {{ icon "ellipsis" }} {% if user.id == channel.owner -%} {% if selected_community == 0 %} {{ icon "user-plus" }} {{ text "chats:action.add_someone" }} {%- endif %} {{ icon "pencil" }} {{ text "chats:action.rename" }} {{ icon "trash" }} {{ text "general:action.delete" }} {% else %} {{ icon "door-open" }} {{ text "chats:action.leave" }} {%- endif %} {% endfor %} {% if selected_community == 0 and selected_channel -%} {% for member in members %} {{ components::user_plate(user=member, show_kick=user.id == channel.owner) }} {% endfor %} {%- endif %}