render_username should not be surrounded by anchor link

This commit is contained in:
rimu 2025-01-01 11:49:48 +13:00
parent ad46ab7efe
commit dcb340f9cf
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
{% if community %}
{% if not community.restricted_to_mods or (community.restricted_to_mods and current_user.is_authenticated and community_membership(current_user, community) in [SUBSCRIPTION_MODERATOR, SUBSCRIPTION_OWNER]) %}
<div class="mobile_create_post d-md-none mt-1">
<a class="btn btn-primary" href="/community/{{ community.link() }}/submit">{{ _('Create post') }}</a>
</div>
{% endif %}

View file

@ -39,7 +39,7 @@
{% for user in subscribers.items %}
<tr>
<td>
<a href="/u/{{ user.link() }}">{{ render_username(user) }}</a>
{{ render_username(user) }}
</td>
<td>{% if user.is_local() %} Local {% else %} <a href="{{ user.ap_profile_id }}">{{ user.ap_domain }}</a>{% endif %}</td>
<td>{{ arrow.get(user.last_seen).humanize(locale=locale) }} </td>
@ -99,7 +99,7 @@
</tr>
{% for user in banned_people %}
<tr>
<td><a href="/u/{{ user.link() }}">{{ render_username(user) }}</a></td>
<td>{{ render_username(user) }}</td>
<td>{% if user.is_local() %} Local {% else %} <a href="{{ user.ap_profile_id }}">{{ user.ap_domain }}</a>{% endif %}</td>
<td>{{ user.reports if user.reports > 0 }} </td>
<td>{{ user.ip_address if user.ip_address }} </td>