templates/document/areabricks/timelineposts/view.html.twig line 1

Open in your IDE?
  1. <div class="container">
  2.   <div id="{{ 'areabrick_timelinepost_list' ~ brickId }}">
  3.     {% for post in posts %}
  4.       {# <turbo-frame id="frame-timeline-post-{{ post.id }}"
  5.         src="{{ path('timeline_card_reduced', { _locale: app.request.locale, postId: post.id }) }}">
  6.         {% include 'network/profile/timeline/card_skeleton.html.twig' %}
  7.       </turbo-frame> #}
  8.       <div {{
  9.         react_component(
  10.           'LazyCard',
  11.           {
  12.             postId: post.id,
  13.             locale: app.request.locale,
  14.             embedded: true,
  15.             user: app.user and not editmode
  16.               ? {
  17.                 id: app.user.id,
  18.                 name: app.user.name,
  19.                 avatar: app.user.avatar ? app.user.avatar.frontendFullPath
  20.               }
  21.           }
  22.         )
  23.         }}></div>
  24.     {% else %}
  25.       {% include 'network/profile/timeline/no_activity.html.twig' with { showButton: false } %}
  26.     {% endfor %}
  27.   </div>
  28.   {% if form.offset.vars.value < totalCount %}
  29.     <div class="flex justify-center w-full" id="{{ 'areabrick_load_button' ~ brickId }}">
  30.       {{ form_start(form) }}
  31.       {{ form_widget(form.offset, { value: form.offset.vars.value }) }}
  32.       {# {{ button.submit('show-more'|trans, 'neutral', { size: 'sm' }) }} #}
  33.       {{ form_widget(form.submit, { attr: { class: 'btn btn-sm btn-neutral my-4 mx-auto' } }) }}
  34.       {{ form_end(form) }}
  35.     </div>
  36.   {% endif %}
  37. </div>