add: ability to disable profile theme of other users

This commit is contained in:
trisua 2025-04-08 15:49:41 -04:00
parent e8ae7902b6
commit a8282a113d
29 changed files with 77 additions and 52 deletions

View file

@ -1,4 +1,4 @@
{% import "macros.html" as macros %} {% extends "root.html" %} {% block head %}
{% extends "root.html" %} {% block head %}
<title>{{ profile.username }} - {{ config.name }}</title>
{% endblock %} {% block body %} {{ macros::nav() }}
<article>
@ -211,4 +211,6 @@
</div>
</div>
</article>
{% endblock %}
{% if not use_user_theme %} {{ components::theme(user=profile) }} {% endif %} {%
endblock %}

View file

@ -1,5 +1,4 @@
{% import "macros.html" as macros %} {% extends "profile/base.html" %} {% block
content %}
{% extends "profile/base.html" %} {% block content %}
<div class="card-nest">
<div class="card small flex gap-2 items-center">
{{ icon "users-round" }}

View file

@ -1,5 +1,4 @@
{% import "macros.html" as macros %} {% extends "profile/base.html" %} {% block
content %}
{% extends "profile/base.html" %} {% block content %}
<div class="card-nest">
<div class="card small flex gap-2 items-center">
{{ icon "users-round" }}

View file

@ -1,5 +1,5 @@
{% import "macros.html" as macros %} {% extends "profile/base.html" %} {% block
content %} {% if pinned|length != 0 %}
{% extends "profile/base.html" %} {% block content %} {% if pinned|length != 0
%}
<div class="card-nest">
<div class="card small flex gap-2 items-center">
{{ icon "pin" }}

View file

@ -1,4 +1,4 @@
{% import "macros.html" as macros %} {% extends "root.html" %} {% block head %}
{% extends "root.html" %} {% block head %}
<title>Settings - {{ config.name }}</title>
{% endblock %} {% block body %} {{ macros::nav() }}
<main class="flex flex-col gap-2">
@ -690,6 +690,14 @@
"{{ profile.settings.theme_lit }}",
"input",
],
[
[
"disable_other_themes",
"Disable the profile theme of other users",
],
"{{ profile.settings.disable_other_themes }}",
"checkbox",
],
],
settings,
);