Sha256: 73a5ada36ad6677cfa3dfefe989d4eda1bab21a6736d21b873efe7d41359d794

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

<div class="events">
  <% @calendar.events.each do |event| %>
    <div class="event">
      <div class="date">
        <div class="month"><%= event.start_date.strftime('%a') %></div>
        <div class="day"><%= event.start_date.strftime('%d') %></div>
      </div>
      <div class="details">
        <h3 class="title"><%= event.title %></h3>

        <% if event.description %>
          <div class="description">
            <%= event.description %>
          </div>
        <% end %>

         <dl>
           <% if event.location %>
            <dt>Where</dt>
            <dd><%= event.location %></dd>
          <% end %>

          <dt>When</dt>
          <dd><%= event.start_date.strftime('%l:%M%P, %-d %b %Y') %></dd>
        </dl>
      </div>
    </div>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
almanack-0.0.1.alpha3 lib/almanack/themes/legacy/views/events.erb