summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGabriel Rodríguez Alberich2022-12-14 18:15:46 +0100
committerGitHub2022-12-14 10:15:46 -0700
commitd1ce056288c97eea18e17f1b950194678618cefc (patch)
treef090c5da442348d7bf35a374cb4efc167e03d311 /templates
parent0d8b7db2729d94338824c748901637c625c103b0 (diff)
downloadtakahe-d1ce056288c97eea18e17f1b950194678618cefc.tar.gz
takahe-d1ce056288c97eea18e17f1b950194678618cefc.tar.bz2
takahe-d1ce056288c97eea18e17f1b950194678618cefc.zip
Show follows and following counts on profile page
And let their visibility be configured
Diffstat (limited to 'templates')
-rw-r--r--templates/identity/view.html9
-rw-r--r--templates/settings/profile.html1
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/identity/view.html b/templates/identity/view.html
index 8d5806f..7e2c8d4 100644
--- a/templates/identity/view.html
+++ b/templates/identity/view.html
@@ -72,6 +72,15 @@
</table>
{% endif %}
+ {% if identity.config_identity.visible_follows %}
+ <div class="stats">
+ <ul>
+ <li><strong>{{ following_count }}</strong> following</li>
+ <li><strong>{{ followers_count }}</strong> followers</li>
+ </ul>
+ </div>
+ {% endif %}
+
{% if not identity.local %}
{% if identity.outdated and not identity.name %}
<p class="system-note">
diff --git a/templates/settings/profile.html b/templates/settings/profile.html
index 806a930..3cac026 100644
--- a/templates/settings/profile.html
+++ b/templates/settings/profile.html
@@ -10,6 +10,7 @@
{% include "forms/_field.html" with field=form.name %}
{% include "forms/_field.html" with field=form.summary %}
{% include "forms/_field.html" with field=form.discoverable %}
+ {% include "forms/_field.html" with field=form.visible_follows %}
</fieldset>
<fieldset>
<legend>Images</legend>