templates/forum/layout/recent_reply.html.twig line 1

Open in your IDE?
  1. <div class="dashboard-box margin-top-0">
  2.     <div class="headline">
  3.         <h3>
  4.             <i class="icon-feather-list"></i>
  5.             Recent reply <span class="forum-none">on the forum</span>
  6.         </h3>
  7.     </div>
  8.     <div class="content" style="padding-top: 20px;padding-bottom: 1px;">
  9.         <ul style="list-style-type:none;padding-left: 20px;">
  10.             {% set _total_recentPostReplys = _recentPostReplys|length %}
  11.             {% for _recentPostReply in _recentPostReplys  %}
  12.                 <li class="actu text-black "
  13.                     style="display: flex;align-items: center;" >
  14.                     <span class="forum_avatar ripple-effect-dark"
  15.                           title="{{ _recentPostReply.forumUser.alias }}"
  16.                     >
  17.                         {{ _recentPostReply.forumUser.avatarSpanName }}
  18.                     </span>
  19.                     {% set lastComment = _recentPostReply.lastComment %}
  20.                     {% if lastComment %}
  21.                         &nbsp; {{ lastComment.createdAt|date('d/m') }}
  22.                     {% else %}
  23.                         &nbsp; {{ _recentPostReply.createdAt|date('d/m') }}
  24.                     {% endif %}
  25.                     -
  26.                     <a class="news-link text-black" href="{{ path('app_forum_forum_post_show',{
  27.                         'country' : _recentPostReply.topic.countryMin,
  28.                         'topicslug' : _recentPostReply.topic.slug,
  29.                         'slug' : _recentPostReply.slug
  30.                     }) }}">
  31.                         <b>{{ _recentPostReply.title|u.truncate(20, '...') }}</b>
  32.                     </a>
  33.                 </li>
  34.                 {% if loop.index != _total_recentPostReplys %}
  35.                     <div class="margin-top-5 margin-bottom-5" style="border-bottom: 0.1rem solid #e4e4e4; width: 60%"></div>
  36.                 {% endif %}
  37.             {% endfor %}
  38.         </ul>
  39.     </div>
  40. </div>