Only show the edit details on the detail page.

This commit is contained in:
Tim Schumacher 2014-09-17 17:06:35 +02:00
parent f2bc90c9ae
commit 405b19b157
2 changed files with 3 additions and 1 deletions

View file

@ -4,10 +4,12 @@
href="{{ path('_show', { 'slug': entity.slug }) }}">{{ entity.summary }}</a>
</h2>
{% if (detail|default(false)) %}
<p class="edit">
<a href="{{ path('_edit', {'slug' : entity.slug }) }}"><i
class="circular icon edit green inverted link"></i>Bearbeiten</a>
</p>
{% endif %}
<p class="startdate ">
<i class="circular icon calendar green inverted link" title="Wann?"

View file

@ -18,6 +18,6 @@
{% block body -%}
<div class="ui one column page grid">
{{ include('CalciferBundle:Event:event_box.html.twig',{'entity' : entity}) }}
{{ include('CalciferBundle:Event:event_box.html.twig',{'entity' : entity,'detail' : true}) }}
</div>
{% endblock %}