templates/forum/forum_post/recent.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Recent topic | Avopy{% endblock %}
  3. {% block stylesheets %}
  4.     <style>
  5.         .intro-banner {
  6.             padding: 33px 0;
  7.         }
  8.         .dashboard-box {
  9.             margin-top: inherit !important;
  10.         }
  11.         #breadcrumbs ul {
  12.             margin: 0;
  13.             padding: 12px 10px;
  14.             line-height: 23px;
  15.         }
  16.         #titlebar {
  17.             padding: 20px 0;
  18.             margin-bottom: 0;
  19.         }
  20.     </style>
  21. {% endblock %}
  22. {% block body %}
  23.     <div id="main-forum">
  24.         {% include('forum/layout/search.html.twig') %}
  25.         <div class="col-12">
  26.             <!-- Breadcrumbs -->
  27.             <nav id="breadcrumbs" class="dark">
  28.                 <ul>
  29.                     <li><a href="{{ path('forum_public_country', {'country' : "uae"}) }}">Forum</a></li>
  30.                     <li>
  31.                         Recent topics
  32.                     </li>
  33.                 </ul>
  34.             </nav>
  35.         </div>
  36.         <div class="row">
  37.             <div class="col-sm-12 col-md-2"></div>
  38.             <div class="col-sm-12 col-md-8">
  39.                 <div id="titlebar" class="white ">
  40.                     <div class="container">
  41.                         <div class="row">
  42.                             <div class="col-md-12">
  43.                                 <h1 class="padding-left-20 padding-right-20">Recent topics</h1>
  44.                             </div>
  45.                         </div>
  46.                     </div>
  47.                 </div>
  48.                 <!-- Features Cities -->
  49.                 <div class="section margin-bottom-65 margin-top-20 padding-left-20 padding-right-20">
  50.                     <div class="container-fluid ">
  51.                         <div class="row">
  52.                             <div class="col-lg-12 col-md-12 col-sm-12">
  53.                                 <div class="listings-container margin-top-5">
  54.                                     {% for post in posts %}
  55.                                         <div class="job-listing">
  56.                                             {% if currentForumUser %}
  57.                                                 <span
  58.                                                     class="add-post-favorite bookmark-icon {{ post.favorite(currentForumUser) ? "bookmarked" : "" }}"
  59.                                                     data-post-id="{{ post.id }}"
  60.                                                 ></span>
  61.                                             {% endif %}
  62.                                             <div class="job-listing-details">
  63.                                                 <div class="job-listing-description">
  64.                                                     <div class="row">
  65.                                                         <div class="col-md-12 col-lg-12">
  66.                                                             <a href="{{ path('app_forum_forum_post_show',{
  67.                                                                 'country' : post.topic.countryMin,
  68.                                                                 'topicslug' : post.topic.slug,
  69.                                                                 'slug' : post.slug
  70.                                                             }) }}">
  71.                                                                 <h3 class="job-listing-title text-black">{{ post.title }}</h3>
  72.                                                             </a>
  73.                                                         </div>
  74.                                                     </div>
  75.                                                     <div class="row">
  76.                                                         <div class="col-md-5 col-lg-5">
  77.                                                             <a href="{{ path('app_forum_forum_post_show',{
  78.                                                                 'country' : post.topic.countryMin,
  79.                                                                 'topicslug' : post.topic.slug,
  80.                                                                 'slug' : post.slug
  81.                                                             }) }}">
  82.                                                                 <h5 class="job-listing-company text-black margin-top-10 margin-bottom-10"
  83.                                                                     style="display: flex; align-content: center">
  84.                                                                     <span class="forum_avatar ripple-effect-dark"
  85.                                                                           title="{{ post.forumUser.alias }}"
  86.                                                                     >
  87.                                                                         {{ post.forumUser.avatarSpanName }}
  88.                                                                     </span>
  89.                                                                     &nbsp;- {{ post.timeCreateString }}
  90.                                                                 </h5>
  91.                                                                 <h5 class="job-listing-company text-black">
  92.                                                                     <a href="{{ path('app_forum_forum_topic_show', {
  93.                                                                         'countryMin' : post.topic.countryMin,
  94.                                                                         'slug' : post.topic.slug
  95.                                                                     }) }}">
  96.                                                                         <mark class="color">
  97.                                                                             <i class="icon-material-outline-bookmark-border"></i>
  98.                                                                             {{ post.topic.name }}
  99.                                                                         </mark>
  100.                                                                     </a>
  101.                                                                 </h5>
  102.                                                             </a>
  103.                                                         </div>
  104.                                                         <div class="col-md-1 col-lg-1 d-flex">
  105.                                                             <div class="category-box" title="Comments">
  106.                                                                 <div class="category-box-icon">
  107.                                                                     <i class="icon-line-awesome-comments-o text-black"></i>
  108.                                                                 </div>
  109.                                                                 <div class="category-box-counter">
  110.                                                                     <h4>{{ post.comments|length }}</h4>
  111.                                                                 </div>
  112.                                                             </div>
  113.                                                         </div>
  114.                                                         <div class="col-md-1 col-lg-1"></div>
  115.                                                         <div class="col-md-5 col-lg-5 align-self-center">
  116.                                                             {% set lastComment = post.lastComment %}
  117.                                                             {% if lastComment %}
  118.                                                                 <p class="" style="display: flex;align-content: center">
  119.                                                                 <span class="forum_avatar ripple-effect-dark"
  120.                                                                       title="{{ lastComment.forumUser.alias }}"
  121.                                                                 >
  122.                                                                     {{ lastComment.forumUser.avatarSpanName }}
  123.                                                                 </span>
  124.                                                                     &nbsp;{{ lastComment.timeCreateString }}
  125.                                                                 </p>
  126.                                                             {% endif %}
  127.                                                         </div>
  128.                                                     </div>
  129.                                                 </div>
  130.                                             </div>
  131.                                         </div>
  132.                                     {% endfor %}
  133.                                 </div>
  134.                                 <div class="navigation">
  135.                                     {{ knp_pagination_render(posts) }}
  136.                                 </div>
  137.                             </div>
  138.                         </div>
  139.                     </div>
  140.                 </div>
  141.                 <!-- Features Cities / End -->
  142.             </div>
  143.         </div>
  144.     </div>
  145. {% endblock %}
  146. {% block javascripts %}
  147.     {% include('forum/forum_post/_script.html.twig') %}
  148. {% endblock %}