add: profile and full search

This commit is contained in:
trisua 2025-05-18 16:43:56 -04:00
parent b8b0ef7f21
commit 3e4ee8126a
52 changed files with 897 additions and 484 deletions

View file

@ -2,23 +2,23 @@
<title>Post - {{ config.name }}</title>
{% endblock %} {% block body %} {{ macros::nav() }}
<main class="flex flex-col gap-2">
{% if post.replying_to %}
{% if post.replying_to -%}
<a href="/post/{{ post.replying_to }}" class="button">
{{ icon "arrow-up" }}
<span>{{ text "communities:action.continue_thread" }}</span>
</a>
{% endif %}
{%- endif %}
<!-- prettier-ignore -->
<div style="display: contents;">
{% if post.context.repost and post.context.repost.reposting %}
{% if post.context.repost and post.context.repost.reposting -%}
{{ components::repost(repost=reposting, post=post, owner=owner, community=community, show_community=true, can_manage_post=can_manage_posts) }}
{% else %}
{{ components::post(post=post, owner=owner, question=question, community=community, show_community=true, can_manage_post=can_manage_posts) }}
{% endif %}
{%- endif %}
</div>
{% if user and post.context.comments_enabled %}
{% if user and post.context.comments_enabled -%}
<div class="card-nest">
<div class="card small">
<b>{{ text "communities:label.create_reply" }}</b>
@ -47,7 +47,7 @@
<div class="flex gap-2">
{{ components::emoji_picker(element_id="content",
render_dialog=true) }} {% if is_supporter %} {{
render_dialog=true) }} {% if is_supporter -%} {{
components::file_picker(files_list_id="files_list") }} {% endif
%}
@ -57,7 +57,7 @@
</div>
</form>
</div>
{% endif %}
{%- endif %}
<div class="pillmenu">
<a href="#/replies" data-tab-button="replies" class="active">
{{ icon "newspaper" }}
@ -75,14 +75,14 @@
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %}
{% if (user and user.id == post.owner) or can_manage_posts -%}
<div class="pillmenu">
{% if user and user.id == post.owner %}
{% if user and user.id == post.owner -%}
<a href="/post/{{ post.id }}#/edit">
{{ icon "pen" }}
<span>{{ text "communities:label.edit_content" }}</span>
</a>
{% endif %}
{%- endif %}
<a href="/post/{{ post.id }}/likes">
{{ icon "heart" }}
@ -94,7 +94,7 @@
<span>{{ text "communities:action.configure" }}</span>
</a>
</div>
{% endif %}
{%- endif %}
<div class="flex flex-col gap-2 hidden" data-tab="configure">
<div class="card-nest w-full">
@ -218,7 +218,7 @@
</script>
</div>
{% if user and user.id == post.owner %}
{% if user and user.id == post.owner -%}
<div class="card-nest w-full hidden" data-tab="edit">
<div class="card small flex items-center gap-2">
{{ icon "pen" }}
@ -279,7 +279,7 @@
});
}
</script>
{% endif %}
{%- endif %}
<div class="card-nest w-full" data-tab="replies">
<div class="card small flex items-center gap-2">