houdini/app/views/events/_listing.html.erb

16 lines
649 B
Text
Raw Normal View History

2020-06-12 20:03:43 +00:00
<%- # 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>