clone of github.com/decent-newsroom/newsroom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
744 B

{# Embedded event card component #}
<div class="embedded-event-card" data-nevent="{{ nevent }}">
<div class="event-header">
{% if author %}
<div class="author-info">
<strong>{{ author.name ?? 'Anonymous' }}</strong>
</div>
{% endif %}
<div class="event-meta">
<span class="event-date">{{ event.created_at|date('M j, Y H:i') }}</span>
</div>
</div>
<div class="event-content">
<twig:Atoms:Content :content="event.content" />
</div>
{% include 'partial/_gallery.html.twig' with {event: event, isEmbed: true} %}
<div class="event-footer">
<a href="/e/{{ nevent }}" class="view-full">View full event</a>
</div>
</div>