jet: dynamically show all led groups
This commit is contained in:
@@ -217,6 +217,27 @@ django.gettext = window.gettext
|
|||||||
{% if user.is_active and user.is_staff %}
|
{% if user.is_active and user.is_staff %}
|
||||||
{% jet_get_menu as app_list %}
|
{% jet_get_menu as app_list %}
|
||||||
{% if SIDE_MENU_COMPACT %}
|
{% if SIDE_MENU_COMPACT %}
|
||||||
|
{% if user.member %}
|
||||||
|
{% if user.member.led_groups|length > 0 %}
|
||||||
|
<div class="sidebar-section">
|
||||||
|
<div class="sidebar-title">
|
||||||
|
<a class="sidebar-title-link">
|
||||||
|
Meine Jugendgruppen
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% for group in user.member.led_groups %}
|
||||||
|
<div>
|
||||||
|
<a href="{% url 'admin:members_member_changelist' %}?group__id__exact={{group.pk}}" class="sidebar-link">
|
||||||
|
<span class="sidebar-right">
|
||||||
|
<span class="sidebar-right-arrow icon-arrow-right"></span>
|
||||||
|
</span>
|
||||||
|
<span class="sidebar-link-label">{{ group }}</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% for app in app_list %}
|
{% for app in app_list %}
|
||||||
{% if app.has_perms %}
|
{% if app.has_perms %}
|
||||||
<div class="sidebar-section">
|
<div class="sidebar-section">
|
||||||
|
|||||||
Reference in New Issue
Block a user