ensl.org/app/views/widgets/_calendar.html.erb
Luke Barratt 1e6d3efc14 Added ability to login with a username that is case insensitive
Added some missing translations
Small CSS tweaks
2014-04-04 20:38:44 +01:00

15 lines
580 B
Text

<div class="header"><%= t('widget.schedule') %></div>
<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="content">
<p><%= event.formatted_summary %></p>
<p><%= event.start.strftime("%H:%M %Z") %></p>
</div>
<% end %>
<% end %>
<% end %>
</div>