Skip to content

Commit

Permalink
closes #277 - Add links for edit event image in event page
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeG committed Mar 18, 2018
1 parent c410a83 commit fffde72
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions eventol/manager/templates/base-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,23 @@
{% endif %}
{% if event_slug is not None %}
{% if user.is_authenticated and user|is_organizer:event_slug %}
<li>
<a href="{% url "edit_event" event_slug %}">
<i class="fa fa-cogs"></i> {% trans "Manage event" %}
</a>
</li>
<li class="dropdown">
<a href="#" data-target="#" class="dropdown-toggle"
data-toggle="dropdown"><i class="fa fa-cogs"></i> {% trans "Manage event" %} <b
class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="{% url "edit_event" event_slug %}">
<i class="fa fa-cogs"></i> {% trans "Edit event" %}
</a>
</li>
<li>
<a href="{% url "event_add_image" event_slug %}">
<i class="fa fa-cogs"></i> {% trans "Edit image" %}
</a>
</li>
</ul>
</li>
{% endif %}
{% if not user.is_authenticated %}
<li>
Expand Down

0 comments on commit fffde72

Please sign in to comment.