Only show the edit details on the detail page.
This commit is contained in:
parent
f2bc90c9ae
commit
405b19b157
2 changed files with 3 additions and 1 deletions
|
@ -4,10 +4,12 @@
|
||||||
href="{{ path('_show', { 'slug': entity.slug }) }}">{{ entity.summary }}</a>
|
href="{{ path('_show', { 'slug': entity.slug }) }}">{{ entity.summary }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
{% if (detail|default(false)) %}
|
||||||
<p class="edit">
|
<p class="edit">
|
||||||
<a href="{{ path('_edit', {'slug' : entity.slug }) }}"><i
|
<a href="{{ path('_edit', {'slug' : entity.slug }) }}"><i
|
||||||
class="circular icon edit green inverted link"></i>Bearbeiten</a>
|
class="circular icon edit green inverted link"></i>Bearbeiten</a>
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p class="startdate ">
|
<p class="startdate ">
|
||||||
<i class="circular icon calendar green inverted link" title="Wann?"
|
<i class="circular icon calendar green inverted link" title="Wann?"
|
||||||
|
|
|
@ -18,6 +18,6 @@
|
||||||
|
|
||||||
{% block body -%}
|
{% block body -%}
|
||||||
<div class="ui one column page grid">
|
<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>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Reference in a new issue