src/Ox/HoardBundle/Resources/views/contentPage/news_list.html.twig line 1

Open in your IDE?
  1. {% extends '@OxHoardBundle//layout.html.twig' %}
  2. {% block title %}News{% endblock %}
  3. {% block body %}
  4.     <div class="marginTop clearfix"></div>
  5.     <div id="content" class="container">
  6.         <div class="row marginTop">
  7.             <div class="hoardlistview-6col col-md-12">
  8.                 {% if is_authorised_to_edit %}
  9.                 <div class="edit-btn"><a href="{{ path('content_new') }}"><h2>Add new content<span class="fa fa-plus"></span></h2></a></div>
  10.                 {% endif %}
  11.                 <h1>News</h1>
  12.                 <div class="news-item-list">
  13.                 {% for entity in entities %}
  14.                     <div class="news-item col-xs-10">
  15.                         <h2>
  16.                             <a href="{{ path('content_show_path', { 'path': entity.path }) }}">{{ entity.title }}</a>
  17.                         </h2>
  18.                          <div class="teasertext">{{ entity.teaser | markdown}}<a href=""><span> <a href="{{ path('content_show_path', { 'path': entity.path }) }}">more&hellip;</a></span></a></div>
  19.                     </div>
  20.                     {% if is_authorised_to_edit %}
  21.                     <a class="btn btn-default list-edit-button col-xs-2" href="{{ path('content_edit', { 'id':entity.id }) }}">Edit</a>
  22.                     {% endif %}
  23.                 {% endfor %}
  24.                 
  25.                 </div>
  26.             </div>
  27.         </div>
  28.     </div>
  29.     {% endblock %}