Commit e6d7d379 authored by fred's avatar fred

add a "new emission" button for authorized persons on homepage

parent 37638f65
......@@ -52,6 +52,8 @@
<a href="{{ object|online_url }}" target="blank" class="icon-eye-open">Voir en ligne</a>
{% endif %}
{% endblock %}
{% block more-user-links %}
{% endblock %}
{% if object %}
{% with object|context_url as context_url %}
......
......@@ -8,6 +8,12 @@
{% endif %}
{% endblock %}
{% block more-user-links %}
{% if perms.emissions.add_emission %}
<a href="{% url 'emission-add' %}">Nouvelle émission</a>
{% endif %}
{% endblock %}
{% block content %}
{% for emission in emissions %}
<div class="emission">
......
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