.icon-regie::before { content: "\f130 "; }
.icon-download::before { content: "\f019 "; }
.icon-image::before { content: "\f03e "; }
+.icon-agenda::before { content: "\f073 "; }
.icon-circle-arrow-down:after { content: " \f0ab"; }
.icon-arrow-left:after { content: "\f060"; }
<a class="icon-regie" href="/regie/">{% trans "Studio" %}</a>
{% endif %}
<a class="icon-members" href="{% url 'members-list-view' %}">{% trans "Members directory" %}</a>
+{% if has_agendas %}
+<a class="icon-agenda" href="{% url 'agendas-selector' %}">{% trans "Agendas" %}</a>
+{% endif %}
{% if has_nonstop and perms.nonstop.add_track %}
<a class="icon-music" href="{% url 'nonstop-quick-links' %}">{% trans "Nonstop management" %}</a>
{% endif %}
import emissions.views
import newsletter.views
+from agendas.models import Agenda
from combo.data.models import Page
from django.conf import settings
from django.contrib import messages
'-last_update_timestamp'
)
context['extra_top_links'] = settings.HOME_EXTRA_TOP_LINKS
+ context['has_agendas'] = bool(Agenda.objects.all().exists())
return context