From 405b19b15785e3d8f2ef4a036ee3ecd4a27e2756 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Wed, 17 Sep 2014 17:06:35 +0200 Subject: [PATCH] Only show the edit details on the detail page. --- .../CalciferBundle/Resources/views/Event/event_box.html.twig | 2 ++ .../Bundle/CalciferBundle/Resources/views/Event/show.html.twig | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Hackspace/Bundle/CalciferBundle/Resources/views/Event/event_box.html.twig b/src/Hackspace/Bundle/CalciferBundle/Resources/views/Event/event_box.html.twig index 84f135a..fbf734a 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Resources/views/Event/event_box.html.twig +++ b/src/Hackspace/Bundle/CalciferBundle/Resources/views/Event/event_box.html.twig @@ -4,10 +4,12 @@ href="{{ path('_show', { 'slug': entity.slug }) }}">{{ entity.summary }} + {% if (detail|default(false)) %}

Bearbeiten

+ {% endif %}

- {{ include('CalciferBundle:Event:event_box.html.twig',{'entity' : entity}) }} + {{ include('CalciferBundle:Event:event_box.html.twig',{'entity' : entity,'detail' : true}) }} {% endblock %}