add: profile and full search
This commit is contained in:
parent
b8b0ef7f21
commit
3e4ee8126a
52 changed files with 897 additions and 484 deletions
|
@ -50,23 +50,23 @@
|
|||
<h3 id="username" class="username flex items-center gap-2 flex-wrap w-full">
|
||||
<span class="name shorter">{{ components::username(user=profile) }}</span>
|
||||
|
||||
{% if profile.is_verified %}
|
||||
{% if profile.is_verified -%}
|
||||
<span title="Verified" style="color: var(--color-primary);" class="flex items-center">
|
||||
{{ icon "badge-check" }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
{% if profile.permissions|has_supporter %}
|
||||
{% if profile.permissions|has_supporter -%}
|
||||
<span title="Supporter" style="color: var(--color-primary);" class="flex items-center">
|
||||
{{ icon "star" }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
{% if profile.permissions|has_staff_badge %}
|
||||
{% if profile.permissions|has_staff_badge -%}
|
||||
<span title="Staff" style="color: var(--color-primary);" class="flex items-center">
|
||||
{{ icon "shield-user" }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</h3>
|
||||
|
||||
<span class="fade">{{ profile.username }}</span>
|
||||
|
@ -77,9 +77,9 @@
|
|||
class="card flex flex-col items-center gap-2"
|
||||
id="social"
|
||||
>
|
||||
{% if profile.settings.status %}
|
||||
{% if profile.settings.status -%}
|
||||
<p>{{ profile.settings.status }}</p>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
<div class="w-full flex">
|
||||
<a
|
||||
|
@ -98,14 +98,14 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
{% if is_following_you %}
|
||||
{% if is_following_you -%}
|
||||
<b
|
||||
class="notification chip w-content flex items-center gap-2"
|
||||
>
|
||||
{{ icon "heart" }}
|
||||
<span>Follows you</span>
|
||||
</b>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -117,11 +117,11 @@
|
|||
<div class="card flex flex-col gap-2">
|
||||
<!-- prettier-ignore -->
|
||||
<div style="display: contents;">
|
||||
{% if profile.connections.Spotify and profile.connections.Spotify[0].data.name %}
|
||||
{% if profile.connections.Spotify and profile.connections.Spotify[0].data.name -%}
|
||||
{{ components::spotify_playing(state=profile.connections.Spotify[1]) }}
|
||||
{% elif profile.connections.LastFm and profile.connections.LastFm[0].data.name %}
|
||||
{{ components::last_fm_playing(state=profile.connections.LastFm[1]) }}
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
||||
<div class="w-full flex justify-between items-center">
|
||||
|
@ -157,21 +157,21 @@
|
|||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if not is_self and user %}
|
||||
{% if not is_self and user -%}
|
||||
<div class="card-nest">
|
||||
<div class="card small">
|
||||
<b>{{ text "auth:label.relationship" }}</b>
|
||||
</div>
|
||||
|
||||
<div class="card flex gap-2 flex-wrap">
|
||||
{% if not is_blocking %}
|
||||
{% if not is_blocking -%}
|
||||
<button
|
||||
onclick="toggle_follow_user(event)"
|
||||
class="{% if is_following %} hidden{% endif %}"
|
||||
class="{% if is_following -%} hidden{%- endif %}"
|
||||
atto_tag="user.follow"
|
||||
>
|
||||
{{ icon "user-plus" }}
|
||||
|
@ -180,7 +180,7 @@
|
|||
|
||||
<button
|
||||
onclick="toggle_follow_user(event)"
|
||||
class="quaternary red{% if not is_following %} hidden{% endif %}"
|
||||
class="quaternary red{% if not is_following -%} hidden{%- endif %}"
|
||||
atto_tag="user.unfollow"
|
||||
>
|
||||
{{ icon "user-minus" }}
|
||||
|
@ -202,7 +202,7 @@
|
|||
{{ icon "shield-off" }}
|
||||
<span>{{ text "auth:action.unblock" }}</span>
|
||||
</button>
|
||||
{% endif %} {% if not user.settings.private_chats or
|
||||
{%- endif %} {% if not user.settings.private_chats or
|
||||
is_following_you %}
|
||||
<button
|
||||
onclick="create_group_chat()"
|
||||
|
@ -211,7 +211,7 @@
|
|||
{{ icon "message-circle" }}
|
||||
<span>{{ text "auth:action.message" }}</span>
|
||||
</button>
|
||||
{% endif %} {% if is_helper %}
|
||||
{%- endif %} {% if is_helper -%}
|
||||
<a
|
||||
href="/mod_panel/profile/{{ profile.id }}"
|
||||
class="button quaternary"
|
||||
|
@ -219,7 +219,7 @@
|
|||
{{ icon "shield" }}
|
||||
<span>{{ text "general:action.manage" }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
<script>
|
||||
globalThis.create_group_chat = async () => {
|
||||
|
@ -320,7 +320,7 @@
|
|||
</script>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %} {% if not profile.settings.private_communities or
|
||||
{%- endif %} {% if not profile.settings.private_communities or
|
||||
is_self or is_helper %}
|
||||
<div class="card-nest">
|
||||
<div class="card small flex gap-2 items-center">
|
||||
|
@ -337,7 +337,7 @@
|
|||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
<div class="flex flex-col gap-2" id="connections">
|
||||
{% for key, value in profile.connections %} {% if
|
||||
|
@ -355,7 +355,7 @@
|
|||
{{ icon "external-link" }}
|
||||
</button>
|
||||
</a>
|
||||
{% endif %} {% endfor %}
|
||||
{%- endif %} {% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -365,7 +365,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{% if not is_self and profile.settings.warning %}
|
||||
{% if not is_self and profile.settings.warning -%}
|
||||
<script>
|
||||
setTimeout(() => {
|
||||
// check for warning
|
||||
|
@ -376,5 +376,5 @@
|
|||
]);
|
||||
}, 150);
|
||||
</script>
|
||||
{% endif %} {% if not use_user_theme %} {{ components::theme(user=profile,
|
||||
theme_preference=profile.settings.profile_theme) }} {% endif %} {% endblock %}
|
||||
{%- endif %} {% if not use_user_theme -%} {{ components::theme(user=profile,
|
||||
theme_preference=profile.settings.profile_theme) }} {%- endif %} {% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue