diff --git a/templates/identity/view.html b/templates/identity/view.html index d7018f5..805b45f 100644 --- a/templates/identity/view.html +++ b/templates/identity/view.html @@ -66,13 +66,13 @@ {% endif %} - {% if identity.local and identity.config_identity.visible_follows %} -
- {{ post_count }} posts - {{ following_count }} following - {{ followers_count }} follower{{ followers_count|pluralize }} -
- {% endif %} +
+ {{ post_count }} posts + {% if identity.local and identity.config_identity.visible_follows %} + {{ following_count }} following + {{ followers_count }} follower{{ followers_count|pluralize }} + {% endif %} +
{% if not identity.local %} {% if identity.outdated and not identity.name %} diff --git a/tests/users/views/settings/test_privacy.py b/tests/users/views/settings/test_privacy.py index 48c356b..680a61f 100644 --- a/tests/users/views/settings/test_privacy.py +++ b/tests/users/views/settings/test_privacy.py @@ -23,7 +23,7 @@ def test_visible_follows_disabled(client, identity): """ Config.set_identity(identity, "visible_follows", True) response = client.get(identity.urls.view) - assertContains(response, '
', status_code=200) + assertContains(response, 'follower', status_code=200) Config.set_identity(identity, "visible_follows", False) response = client.get(identity.urls.view) - assertNotContains(response, '
', status_code=200) + assertNotContains(response, 'follower', status_code=200)