add: profile and full search
This commit is contained in:
parent
b8b0ef7f21
commit
3e4ee8126a
52 changed files with 897 additions and 484 deletions
|
@ -7,15 +7,15 @@ hide_user_menu=true) }}
|
|||
class="flex gap-2 items-center active"
|
||||
onclick="toggle_sidebars(event)"
|
||||
>
|
||||
{{ icon "panel-left" }} {% if community %}
|
||||
{{ icon "panel-left" }} {% if community -%}
|
||||
<b class="name shorter">
|
||||
{% if community.context.display_name %} {{
|
||||
{% if community.context.display_name -%} {{
|
||||
community.context.display_name }} {% else %} {{ community.title }}
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</b>
|
||||
{% else %}
|
||||
<b>{{ text "chats:label.my_chats" }}</b>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</button>
|
||||
</nav>
|
||||
|
||||
|
@ -27,36 +27,36 @@ hide_user_menu=true) }}
|
|||
>
|
||||
<a
|
||||
href="/chats/0/0"
|
||||
class="button quaternary channel_icon {% if selected_community == 0 %}selected{% endif %}"
|
||||
class="button quaternary channel_icon {% if selected_community == 0 -%}selected{%- endif %}"
|
||||
data-turbo="false"
|
||||
>
|
||||
{{ icon "message-circle" }}
|
||||
</a>
|
||||
|
||||
{% for community in communities %} {% if community.id != 0 %}
|
||||
{% for community in communities %} {% if community.id != 0 -%}
|
||||
<a
|
||||
href="/chats/{{ community.id }}/0"
|
||||
class="button quaternary channel_icon {% if selected_community == community.id %}selected{% endif %}"
|
||||
class="button quaternary channel_icon {% if selected_community == community.id -%}selected{%- endif %}"
|
||||
data-turbo="false"
|
||||
>
|
||||
{{ components::community_avatar(id=community.id,
|
||||
community=community, size="48px") }}
|
||||
</a>
|
||||
{% endif %} {% endfor %}
|
||||
{%- endif %} {% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="sidebar flex flex-col gap-2 justify-between" id="channels_list">
|
||||
<div class="flex flex-col gap-2 w-full">
|
||||
<div class="title flex items-center justify-between channel_header">
|
||||
{% if community %}
|
||||
{% if community -%}
|
||||
<b class="name shorter">
|
||||
{% if community.context.display_name %} {{
|
||||
{% if community.context.display_name -%} {{
|
||||
community.context.display_name }} {% else %} {{
|
||||
community.title }} {% endif %}
|
||||
community.title }} {%- endif %}
|
||||
</b>
|
||||
{% else %}
|
||||
<b>{{ text "chats:label.my_chats" }}</b>
|
||||
{% endif %} {% if selected_community != 0 %}
|
||||
{%- endif %} {% if selected_community != 0 -%}
|
||||
<div class="dropdown">
|
||||
<button
|
||||
class="camo small"
|
||||
|
@ -74,18 +74,18 @@ hide_user_menu=true) }}
|
|||
}}</span
|
||||
>
|
||||
</a>
|
||||
{% if can_manage_channels %}
|
||||
{% if can_manage_channels -%}
|
||||
<a href="/community/{{ selected_community }}/manage">
|
||||
{{ icon "settings" }}
|
||||
<span>{{ text "general:action.manage" }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
||||
{% if can_manage_channels %}
|
||||
{% if can_manage_channels -%}
|
||||
<a
|
||||
class="button w-full justify-start quaternary"
|
||||
href="/community/{{ selected_community }}/manage#/channels"
|
||||
|
@ -93,7 +93,7 @@ hide_user_menu=true) }}
|
|||
{{ icon "plus" }}
|
||||
<span>{{ text "communities:action.create_channel" }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
<turbo-frame
|
||||
id="channels_list_frame"
|
||||
|
@ -105,7 +105,7 @@ hide_user_menu=true) }}
|
|||
{{ components::user_plate(user=user, show_menu=true) }}
|
||||
</div>
|
||||
|
||||
{% if channel %}
|
||||
{% if channel -%}
|
||||
<div class="w-full flex flex-col gap-2" id="stream" style="padding: 1rem">
|
||||
<turbo-frame
|
||||
id="stream_body_frame"
|
||||
|
@ -132,7 +132,7 @@ hide_user_menu=true) }}
|
|||
</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
<style>
|
||||
:root {
|
||||
|
@ -695,7 +695,7 @@ hide_user_menu=true) }}
|
|||
};
|
||||
</script>
|
||||
|
||||
{% if selected_channel %}
|
||||
{% if selected_channel -%}
|
||||
<script>
|
||||
window.SUBSCRIBE_CHANNEL = "{{ selected_community }}" === "0";
|
||||
|
||||
|
@ -713,6 +713,6 @@ hide_user_menu=true) }}
|
|||
}
|
||||
}, 100);
|
||||
</script>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue