ensl.org/app/views/widgets/_calendar.html.erb
Luke Barratt 12ed7c90ae Start to cleanup old assets
Added new ISO country code flag icons to asset pipeline
Lots and lots of new style changes
Began converting to JS to coffeescript
2014-04-09 00:28:53 +01:00

17 lines
No EOL
625 B
Text

<div class="widget calendar">
<h4><%= t('widget.schedule') %></h4>
<div class="widget-content-wrapper">
<% upcoming_matches.group_by{ |e| e.start.month }.each do |month, events| %>
<% events.group_by { |e| e.start.day }.each do |day, day_events| %>
<div class="separator"><%= day_events.first.start.strftime("%A, %e %B") %></div>
<% day_events.each do |event| %>
<div class="entry">
<p><%= event.formatted_summary %></p>
<p><%= event.start.strftime("%H:%M %Z") %></p>
</div>
<% end %>
<% end %>
<% end %>
</div>
</div>