templates/client/career-paths/list.html.twig line 1

Open in your IDE?
  1. {% extends '/client/common/base.html.twig' %}
  2. {% block title %}Home{% endblock %}
  3. {% block body %}
  4. <div class="uk-container uk-container-large uk-margin-large uk-margin-large-top">
  5.     <h1>{{ title }}</h1>
  6.     <div uk-grid class="uk-child-width-1-2@s">
  7.         {% for entry in entries %}
  8.         <div>
  9.             <div class="uk-card uk-card-default">
  10.                 <div class="uk-card-media-top">
  11.                     {% if (entry.imageIntro.imageName) %}
  12.                     <picture>
  13.                         <source srcset="{{ vich_uploader_asset(entry.imageIntro, 'imageFile') | imagine_filter('careerpath_list_webp') }}" type="image/webp">
  14.                         <source srcset="{{ vich_uploader_asset(entry.imageIntro, 'imageFile') | imagine_filter('careerpath_list') }}" type="image/jpeg">
  15.                         <img src="{{ vich_uploader_asset(entry.imageIntro, 'imageFile') | imagine_filter('careerpath_list') }}" alt="{{ entry.title }}">
  16.                     </picture>
  17.                     {% endif %}
  18.                 </div>
  19.                 <div class="uk-card-body">
  20.                     <h3 class="uk-card-title">{{ entry.title }}</h3>
  21.                     <div class="uk-text-meta uk-margin-small">
  22.                         {{ 'Created at'|trans }}: {{ entry.createdAt|date("d/m/Y") }},
  23.                         {{ 'Posted at'|trans }}:
  24.                         {% for category in entry.categoryOrdering %}
  25.                             <a href="{{ path('client_career_path_category_list', {'slug': category.category.slug }) }}">{{ category.category.title }}</a>
  26.                             {% if not (loop.last) %}, {% endif %}
  27.                         {% endfor %}
  28.                     </div>
  29.                     <div>{{ entry.intro|raw }}</div>
  30.                     <div>
  31.                         <a class="uk-button uk-button-primary" href="{{ path('client_career_path_view', {'slug': entry.slug}) }}">{{ 'Read more...'|trans }}</a>
  32.                     </div>
  33.                 </div>
  34.             </div>
  35.         </div>
  36.         {% endfor %}
  37.     </div>
  38.     <hr />
  39.     {{ include('/client/common/parts/pagination.html.twig') }}
  40. </div>
  41. {% endblock %}