Unverified Commit 4766b717 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3270574 by catch, andregp, mherchel: Olivero comment template breaks 'new' indicator/anchor

(cherry picked from commit c668e0b9)
parent 163afde5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@
{%
  set classes = [
    'comment',
    'js-comment',
    not parent_comment ? 'comment--level-1',
    status != 'published' ? 'comment--' ~ status,
    comment.owner.anonymous ? 'by-anonymous',
@@ -75,6 +76,13 @@
%}
{{ attach_library('olivero/comments') }}
<article {{ attributes.addClass(classes).setAttribute('role', 'article').setAttribute('data-drupal-selector', 'comment') }}>
  {#
    Hide the "new" indicator by default, let a piece of JavaScript ask the
    server which comments are new for the user. Rendering the final "new"
    indicator here would break the render cache.
  #}
  <span class="hidden" data-comment-timestamp="{{ new_indicator_timestamp }}"></span>

  <div class="comment__picture-wrapper">
    <div class="comment__picture">
      {{ user_picture }}