show stats on user profile

This commit is contained in:
rimu 2024-09-13 11:21:42 +12:00
parent 51f2b3e40e
commit 30dedd19c5

View file

@ -94,7 +94,10 @@
{% if user.bot %} {% if user.bot %}
{{ _('Bot Account') }}<br /> {{ _('Bot Account') }}<br />
{% endif %} {% endif %}
{{ _('Attitude') }}: <span title="{{ _('Ratio of upvotes cast to downvotes cast. Higher is more positive.') }}">{{ (user.attitude * 100) | round | int }}%</span></p> {{ _('Attitude') }}: <span title="{{ _('Ratio of upvotes cast to downvotes cast. Higher is more positive.') }}">{{ (user.attitude * 100) | round | int }}%</span><br />
{{ _('Posts') }}: {{ user.post_count }}<br />
{{ _('Comments') }}: {{ user.post_reply_count }}<br />
</p>
{{ user.about_html|safe }} {{ user.about_html|safe }}
{% if posts %} {% if posts %}
<h2 class="mt-4">Posts</h2> <h2 class="mt-4">Posts</h2>