com: news list: fix UI for admins

This commit is contained in:
Skia 2021-10-03 19:08:14 +02:00
parent 8d1abb8f33
commit 89979dbf61

View File

@ -6,13 +6,13 @@
{% endblock %}
{% block content %}
<div id="news">
{% if user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %}
<div id="news_admin">
{% if user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %}
<div id="news_admin">
<a href="{{ url('com:news_admin_list') }}">{% trans %}Administrate news{% endtrans %}</a>
</div>
{% endif %}
</div>
{% endif %}
<div id="news">
<div id="left_column" class="news_column">
{% for news in object_list.filter(type="NOTICE") %}