houdini/app/views/events/_listing.html.erb
2020-06-15 10:26:57 -05:00

15 lines
649 B
Text

<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<% css = 'fundraiser--active' if css.nil? %>
<section class='events <%= css %>'>
<div class='event-date'>
<p> <%= Format::Date.full_range(event.start_datetime, event.end_datetime, event.nonprofit.timezone) %> </p>
</div>
<a href='<%= event.url %>'>
<article class='event-text'>
<h4 class='event-title' if-branded='color, darker'><%= event.name %></h4>
<p class='event-tagl'><%= event.tagline %></p>
<p class='event-desc'><%= event.summary %></p>
</article>
</a>
</section>