templates/default/resourcecollection_renderlet.html.twig line 1

Open in your IDE?
  1. {% if object %}
  2.     <h2>{{object.title}}</h2>
  3. {% if object.description %}
  4. <p>{{object.description}}</p>
  5.     {% endif %}
  6.     {% if object.children %}
  7.         {% for resourceCollection in object.children %}
  8.             <h3>{{resourceCollection.title}}</h3>
  9.             {% if resourceCollection.resource_item %}
  10.                 <table class="table table-striped table-sm w-100 filelist">
  11.                     <thead>
  12.                         <tr>
  13.                             <th scope="col" style="width:30%;word-wrap: break-word;">
  14.                                 Name
  15.                             </th>
  16.                             <th scope="col" style="width:30%;word-wrap: break-word;">
  17.                                 Description
  18.                             </th>
  19.                         <th scope="col" style="width:15%;word-wrap: break-word;">
  20.                                 Version
  21.                             </th>
  22.                             <th scope="col" style="width:15%;word-wrap: break-word;">
  23.                                 Download
  24.                             </th>
  25.                         </tr>
  26.                     </thead>
  27.                      <tbody>
  28.                     {% for item in resourceCollection.resource_item %}
  29.                         <tr>
  30.                             <td style="width:30%;word-wrap: break-word;">
  31.                                 {{ item.title }}<br>
  32.                               
  33.                             </td>
  34.                             <td style="width:40%;word-wrap: break-word;">
  35.                             <span style="font-weight: bold; font-size:10px">{{ item.key }}</span><br>
  36.                                 {{ item.description }}
  37.                             </td>
  38.                             <td style="width:15%;word-wrap: break-word;">
  39.                         {{ item.version }}
  40.                             </td>
  41.                             <td style="width:15%;word-wrap: break-word;">
  42.                                   {% if item.files %}
  43.                                     {% for file in item.files %}
  44.                                         <a href="{{ file.path }}{{ file.filename }}">.{{ file.filename|split('.')|last }} {% for md in file.metadata %}
  45.  {% if md.name == 'note' %}
  46.  ({{ md.data }})
  47.  {% endif %}
  48.     {% endfor %}</a><br>
  49.                                             {% if file.metadata is defined %}
  50.                                     
  51.                                             {% endif %}
  52.                                     {% endfor %}
  53.                                 {% endif %}
  54.                               
  55.                             </td>
  56.                         </tr>
  57.                     {% endfor %}
  58.                       </tbody>
  59.                 </table>
  60.             {% endif %}
  61.         {% endfor %}
  62.     {% endif %}
  63. {% endif %}