Commit f329d854 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt

fix empty menu item in groups menu

parent 9635c2b0
......@@ -133,23 +133,23 @@
{% endif %}
{# SETTINGS #}
<li>
{% load rules %}
{% has_perm 'groups.change' user group as can_change_group %}
{% has_perm 'groups.change_subscriptions_memberships' user group as can_edit_subscription_settings %}
{% if can_change_group %}
{% url 'group-settings' as settings_url %}
{% elif can_edit_subscription_settings %}
{% url 'subscriptions-memberships-settings' as settings_url %}
{% endif %}
{% if settings_url %}
{% load rules %}
{% has_perm 'groups.change' user group as can_change_group %}
{% has_perm 'groups.change_subscriptions_memberships' user group as can_edit_subscription_settings %}
{% if can_change_group %}
{% url 'group-settings' as settings_url %}
{% elif can_edit_subscription_settings %}
{% url 'subscriptions-memberships-settings' as settings_url %}
{% endif %}
{% if settings_url %}
<li>
<a href="{{ settings_url }}?group={{ group.slug }}"
class="nav-menu-item">
<i class="sg sg-fw sg-settings"></i>
<span class="nav-menu-item-label">Einstellungen</span>
</a>
{% endif %}
</li>
</li>
{% endif %}
</ol>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment