diff --git a/core/models/config.py b/core/models/config.py index cb40e60..cf54b7a 100644 --- a/core/models/config.py +++ b/core/models/config.py @@ -243,3 +243,6 @@ class Config(models.Model): toot_mode: bool = False default_post_visibility: int = 0 # Post.Visibilities.public visible_follows: bool = True + + # wellness Options + visible_reaction_counts: bool = True diff --git a/takahe/urls.py b/takahe/urls.py index 75e5fb6..41a6d2c 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -46,6 +46,11 @@ urlpatterns = [ settings.InterfacePage.as_view(), name="settings_interface", ), + path( + "settings/user/", + settings.WellnessPage.as_view(), + name="settings_wellness", + ), path( "admin/", admin.AdminRoot.as_view(), diff --git a/templates/activities/_boost.html b/templates/activities/_boost.html index 945683e..fe78567 100644 --- a/templates/activities/_boost.html +++ b/templates/activities/_boost.html @@ -1,9 +1,11 @@ {% if post.pk in interactions.boost %} - {% if event.boost_count is not None %}{{ event.boost_count }}{% else %}{{ post.boost_count }}{% endif %} + + {% if event.boost_count is not None %}{{ event.boost_count }}{% else %}{{ post.boost_count }}{% endif %} {% else %} - {% if event.boost_count is not None %}{{ event.boost_count }}{% else %}{{ post.boost_count }}{% endif %} + + {% if event.boost_count is not None %}{{ event.boost_count }}{% else %}{{ post.boost_count }}{% endif %} {% endif %} diff --git a/templates/activities/_like.html b/templates/activities/_like.html index 5877fff..6934d86 100644 --- a/templates/activities/_like.html +++ b/templates/activities/_like.html @@ -1,9 +1,11 @@ {% if post.pk in interactions.like %} - {% if event.like_count is not None %}{{ event.like_count }}{% else %}{{ post.like_count }}{% endif %} + + {% if event.like_count is not None %}{{ event.like_count }}{% else %}{{ post.like_count }}{% endif %} {% else %} - {% if event.like_count is not None %}{{ event.like_count }}{% else %}{{ post.like_count }}{% endif %} + + {% if event.like_count is not None %}{{ event.like_count }}{% else %}{{ post.like_count }}{% endif %} {% endif %} diff --git a/templates/base.html b/templates/base.html index 8a6f6c7..33f7ec1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -16,6 +16,11 @@ body { --color-highlight: {{ config.highlight_color }}; } + {% if not config_system.visible_reaction_counts %} + .like-count { + display: none; + } + {% endif %} {% block extra_head %}{% endblock %} diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index 478e5ae..da12c3e 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -6,6 +6,9 @@ Interface + + Wellness +