This commit is contained in:
Norman Jäckel 2012-07-05 00:23:42 +02:00
parent a41aba04f0
commit 812d7a3c83

View File

@ -20,23 +20,24 @@
{% if item %} {% if item %}
<br> <br>
<h3>{{ item.title }}</h3> <h3>{{ item.title }}</h3>
<ul> <ul>
{# view item #} {# view item #}
{% url item_view item.id as url_itemview %} {% url item_view item.id as url_itemview %}
<li class="{% if request.path == url_itemview %}selected{% endif %}"><a href="{% url item_view item.id %}">{%trans 'View item' %}</a></li> <li class="{% if request.path == url_itemview %}selected{% endif %}"><a href="{% url item_view item.id %}">{%trans 'View item' %}</a></li>
{% if perms.agenda.can_manage_agenda %} {% if perms.agenda.can_manage_agenda %}
{# edit item #} {# edit item #}
{% url item_edit item.id as url_itemedit %} {% url item_edit item.id as url_itemedit %}
<li class="{% if request.path == url_itemedit %}selected{% endif %}"><a href="{% url item_edit item.id %}">{%trans 'Edit item' %}</a></li> <li class="{% if request.path == url_itemedit %}selected{% endif %}"><a href="{% url item_edit item.id %}"><img src="{% static 'images/icons/edit.png' %}"> {%trans 'Edit item' %}</a></li>
{# delete item #} {# delete item #}
<li><a href="{% url item_delete item.id %}"><img src="{% static 'images/icons/delete.png' %}"> {%trans 'Delete item' %}</a></li> <li><a href="{% url item_delete item.id %}"><img src="{% static 'images/icons/delete.png' %}"> {%trans 'Delete item' %}</a></li>
{% endif %} {% endif %}
{# activate item #} {# activate item #}
{% if perms.projector.can_manage_projector %} {% if perms.projector.can_manage_projector %}
<li><a href="{% url projector_activate_slide item.sid %}"><img src="{% static 'images/icons/projector.png' %}"> {%trans 'Show item' %}</a></li> <li><a href="{% url projector_activate_slide item.sid %}"><img src="{% static 'images/icons/projector.png' %}"> {%trans 'Show item' %}</a></li>
{% endif %} {% endif %}
</ul> </ul>
{% endif %} {% endif %}
{% endblock %} {% endblock %}