ensl.org/app/views/widgets/_calendar.html.erb
Luke Barratt 2021af051c Added timezone based google calendar widget
Updated unicorn and capistrano deployment configuration for the staging environment
HTML formatting
Fixes errors when posting new issues
Added Google Calendar client code
CSS tweaks to layout
Added new .env vars
Layout tweaks
Updated contributors
2014-04-04 17:55:49 +01:00

16 lines
No EOL
569 B
Text

<div class="header">Match 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>