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