templates/client/career-paths/category.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.         {% set entry = entry.careerPath %}
  9.         <div>
  10.             <div class="uk-card uk-card-default">
  11.                 <div class="uk-card-media-top">
  12.                     {% if (entry.imageIntro.imageName) %}
  13.                     <picture>
  14.                         <source srcset="{{ vich_uploader_asset(entry.imageIntro, 'imageFile') | imagine_filter('careerpath_list_webp') }}" type="image/webp">
  15.                         <source srcset="{{ vich_uploader_asset(entry.imageIntro, 'imageFile') | imagine_filter('careerpath_list') }}" type="image/jpeg">
  16.                         <img src="{{ vich_uploader_asset(entry.imageIntro, 'imageFile') | imagine_filter('careerpath_list') }}" alt="{{ entry.title }}">
  17.                     </picture>
  18.                     {% endif %}
  19.                 </div>
  20.                 <div class="uk-card-body">
  21.                     <h3 class="uk-card-title">{{ entry.title }}</h3>
  22.                     <div class="uk-text-meta uk-margin-small">
  23.                         {{ 'Created at'|trans }}: {{ entry.createdAt|date("d/m/Y") }},
  24.                         {{ 'Posted at'|trans }}:
  25.                         {% for category in entry.categoryOrdering %}
  26.                             <a href="{{ path('client_career_path_category_list', {'slug': category.category.slug }) }}">{{ category.category.title }}</a>
  27.                             {% if not (loop.last) %}, {% endif %}
  28.                         {% endfor %}
  29.                     </div>
  30.                     <div>{{ entry.intro|raw }}</div>
  31.                     <div>
  32.                         <a class="uk-button uk-button-primary" href="{{ path('client_career_path_view', {'slug': entry.slug}) }}">{{ 'Read more...'|trans }}</a>
  33.                     </div>
  34.                 </div>
  35.             </div>
  36.         </div>
  37.         {% endfor %}
  38.     </div>
  39.     <hr />
  40.     {{ include('/client/common/parts/pagination.html.twig') }}
  41. </div>
  42. {% endblock %}