templates/Omelo/Blog/view.html.twig line 1

Open in your IDE?
  1. {% extends 'admin/base.html.twig' %}
  2. {% block CSS %}
  3.     <link href="{{asset('build/admin/user.css')}}" rel="stylesheet" type="text/css" />
  4.     {{block('CSS', 'frontend/homepage.html.twig')}}
  5.     <style>
  6.         #wrapper{
  7.             overflow-y:scroll!important;
  8.         }
  9.     </style>
  10. {% endblock %}
  11. {% block JS %}
  12.     <script src="{{ asset('build/admin/user.js') }}"></script>
  13.     {{block('JS', 'frontend/homepage.html.twig')}}
  14. {% endblock %}
  15. {% block title %}{% if post is defined %}{{post.metaTitle}}{%endif %}{% endblock %}
  16. {% block metaDescription %}{% if post is defined %}{{post.metaDescription}}{%endif %}{% endblock %}
  17. {% block content %}
  18.     <section style="width: 80%;margin-top: 0px; margin-left: auto; margin-right: auto;" class="section-blog">
  19.         <!-- Page-Title -->
  20.         <div class="row">
  21.             <div class="col-12">
  22.                 <h4 class="m-t-20 m-b-20"><a href="{{path('blog')}}">Blogue</a></h4>
  23.                 <div class="card m-b-20 text-xs-center">
  24.                     <div class="card-header">PubliĆ© depuis {{post.dateSince}}</div>
  25.                     <div class="card-body p-20">
  26.                         <h4 class="card-title">{{post.title}}</h4> 
  27.                         {# We take for granted the owner of the image is the owner of the post #}
  28.                         <h5 class="m-b-20">Par: {{post.author}}</h5> 
  29.                         <p class="card-text">
  30.                             <img src="{{path('getImageAsThumb', {'id': post.image.id, 'height': '350', 'width': '300'})}}" class="m-r-20 pull-left blog-image" style="padding-right: 20px; padding-bottom: 20px;">
  31.                             {{post.text | raw }}
  32.                         </p>
  33.                     </div>
  34.                     <div class="card-footer">
  35.                     </div>
  36.                 </div>
  37.             </div>
  38.         </div>
  39.         <!-- end row -->
  40.     </section>
  41. {% endblock %}