mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
fix small issues in the template
This commit is contained in:
parent
bfb3827d34
commit
96ccc59dbf
2 changed files with 6 additions and 10 deletions
|
@ -20,11 +20,7 @@
|
||||||
</li>
|
</li>
|
||||||
{% if not current_user.is_anonymous %}
|
{% if not current_user.is_anonymous %}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
{% if not ban_visibility_permission %}
|
|
||||||
<span title="{{ _('Your account is either too new or too low reputation to be able to see banned domains') }}">
|
|
||||||
<a class="flex-sm-fill text-sm-center nav-link disabled" href="/domains/banned">Banned Domains</a></span>{% else %}
|
|
||||||
<a class="flex-sm-fill text-sm-center nav-link" href="/domains/banned">Banned Domains</a>
|
<a class="flex-sm-fill text-sm-center nav-link" href="/domains/banned">Banned Domains</a>
|
||||||
{% endif %}
|
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -49,13 +45,13 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ url_for('domain.show_domain', domain_id=domain.id) }}">{{ domain.name }}</a></td>
|
<td><a href="{{ url_for('domain.show_domain', domain_id=domain.id) }}">{{ domain.name }}</a></td>
|
||||||
<td>{{ domain.post_count }}</td>
|
<td>{{ domain.post_count }}</td>
|
||||||
<td>
|
|
||||||
{% if not current_user.is_anonymous %}
|
{% if not current_user.is_anonymous %}
|
||||||
{% if user_access('ban users', current_user.id) or user_access('manage users', current_user.id) %}
|
{% if user_access('ban users', current_user.id) or user_access('manage users', current_user.id) %}
|
||||||
|
<td>
|
||||||
<a class="confirm_first btn btn-primary" title="{{ _('Banning this domain will delete all posts linking to this domain and prevent future posts linking to that domain.') }}" href="/d/{{ domain.id }}/ban">{{ _('Ban') }}</a>
|
<a class="confirm_first btn btn-primary" title="{{ _('Banning this domain will delete all posts linking to this domain and prevent future posts linking to that domain.') }}" href="/d/{{ domain.id }}/ban">{{ _('Ban') }}</a>
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
</td>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h1 class="">{{ _('Domains') }}</h1>
|
<h1 class="">{{ _('Domains') }}</h1>
|
||||||
{% if not ban_visibility_permission %}
|
{% if not ban_visibility_permission %}
|
||||||
<p class="card-text">Your account is either too new or too low reputation to be able to see banned domains on this instance-</p>
|
<p class="card-text">Your account is either too new or too low reputation to be able to see banned domains on this instance.</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if search == '' %}
|
{% if search == '' %}
|
||||||
<p class="card-text">All domains this instance banned</p>
|
<p class="card-text">All domains this instance banned</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue