up-/downvoters: link to local user profile

This commit is contained in:
Hendrik L 2024-12-27 19:51:10 +01:00
parent 6f53afd4b9
commit cef53df0da
2 changed files with 12 additions and 8 deletions

View file

@ -10,18 +10,20 @@
<h3>{{ _('Voting Activity for "%(reply_text)s"', reply_text=reply_text) }}</h3> <h3>{{ _('Voting Activity for "%(reply_text)s"', reply_text=reply_text) }}</h3>
<p><details open> <p><details open>
<summary>Upvoters</summary> <summary>Upvoters</summary>
<ul>
{% for upvoter in upvoters -%} {% for upvoter in upvoters -%}
<a href="{{ upvoter.ap_profile_id }}" rel="nofollow" class="no-underline"><span class="fe fe-external"></span> <li>{{ render_username(upvoter) }}</li>
{{ upvoter.ap_profile_id }}</a><br />
{% endfor -%} {% endfor -%}
</ul>
</details> </details>
</p><p><hr></p> </p><p><hr></p>
<details open> <details open>
<summary>Downvoters</summary> <summary>Downvoters</summary>
<ul>
{% for downvoter in downvoters -%} {% for downvoter in downvoters -%}
<a href="{{ downvoter.ap_profile_id }}" rel="nofollow" class="no-underline"><span class="fe fe-external"></span> <li>{{ render_username(downvoter) }}</li>
{{ downvoter.ap_profile_id }}</a><br />
{% endfor -%} {% endfor -%}
</ul>
</details> </details>
</div> </div>
{% endblock -%} {% endblock -%}

View file

@ -10,18 +10,20 @@
<h3>{{ _('Voting Activity for "%(post_title)s"', post_title=post_title) }}</h3> <h3>{{ _('Voting Activity for "%(post_title)s"', post_title=post_title) }}</h3>
<p><details open> <p><details open>
<summary>Upvoters</summary> <summary>Upvoters</summary>
<ul>
{% for upvoter in upvoters -%} {% for upvoter in upvoters -%}
<a href="{{ upvoter.ap_profile_id }}" rel="nofollow" class="no-underline"><span class="fe fe-external"></span> <li>{{ render_username(upvoter) }}</li>
{{ upvoter.ap_profile_id }}</a><br />
{% endfor -%} {% endfor -%}
</ul>
</details> </details>
</p><p><hr></p> </p><p><hr></p>
<details open> <details open>
<summary>Downvoters</summary> <summary>Downvoters</summary>
<ul>
{% for downvoter in downvoters -%} {% for downvoter in downvoters -%}
<a href="{{ downvoter.ap_profile_id }}" rel="nofollow" class="no-underline"><span class="fe fe-external"></span> <li>{{ render_username(downvoter) }}</li>
{{ downvoter.ap_profile_id }}</a><br />
{% endfor -%} {% endfor -%}
</ul>
</details> </details>
</div> </div>
{% endblock -%} {% endblock -%}