src/Ox/HoardBundle/Resources/views/hoard/show_containers.html.twig line 1

Open in your IDE?
  1. {% if hoard.containers is not empty %}
  2.     <h2>Containers belonging to this hoard</h2>
  3.     {% for container in hoard.containers %}
  4.     <div class="row">
  5.         <div class="col-md-8 col-md-offset-2">
  6.             <h4><a href="{{ path('container_show', { 'id': container.id }) }}">
  7.                     {{ container }}
  8.                 </a><h4>
  9.             <p>{{container.comment}}</p>
  10.         </div>
  11.     </div>
  12.     <div class="row" style="text-align:center">
  13.         {% for containerImage in container.containerImages %}
  14.         <div class="container-image-container magnify-image-container">
  15.             <img id="container-image-{{ containerImage.id }}" src="{{ path('container_image', { 'container_image_id': containerImage.id }) }}" class="magnify-image-inside"/>
  16.         </div>
  17.         <div class="col-md-12">
  18.             <div class="containerimage-metadata hoardlistview-12col">
  19.                 {% if containerImage.uri1 is defined and containerImage.uri1 %}
  20.                     <div class="datalabel">URI</div><div class="data"><a target="_blank" href="{{ containerImage.uri1 }}">{{ containerImage.uri1 }}</a></div>
  21.                 {% endif %}
  22.                 {% if containerImage.comment is defined and containerImage.comment %}
  23.                     <div class="datalabel">Comment</div><div class="data">{{ containerImage.comment }}</div>
  24.                 {% endif %}
  25.             </div>
  26.         </div>
  27.         <br><br><br>
  28.         {% endfor %}
  29.     </div>
  30.     {% endfor %}
  31. {% endif %}