Sha256: da8af08a4ef46a6c2876810d5224d5c52eee7e4e0ff0c248b1a9142de8ad6cbc
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 KB
Contents
<div> <h2><%= date.strftime("%B %Y") %></h2> <% build_calendar_for @events, :year => date.year, :month => date.month do |t| %> <%= raw t.head('S', 'M', 'T', 'W', 'T', 'F', 'S') %> <% t.day do |day, tasks| %> <%= content_tag :span, day.day, :class => (tasks.count > 0 ? "spud_events_calendar_date spud_events_calendar_date_active" : "spud_events_calendar_date") %> <% end %> <% end %> </div> <nav id="spud_events_calendar_nav"> <%= link_to_previous_calendar_month(@calendar_date, {:controller => 'spud/events/calendars', :action => :show}) %> <%= link_to_next_calendar_month(@calendar_date, {:controller => 'spud/events/calendars', :action => :show}) %> </nav> <%= build_calendar_for @events, :year => date.year, :month => date.month do |t| %> <%= raw t.head('S', 'M', 'T', 'W', 'T', 'F', 'S') %> <%= t.day do |day, tasks| %> <div class="spud_events_calendar_date_container"> <%= content_tag :span, day.day, :class => (tasks.count > 0 ? "spud_events_calendar_date spud_events_calendar_date_active" : "spud_events_calendar_date") %> <% tasks.each do |task| %> <%= link_to task.title[0,25], "#", :class => "spud_events_calendar_event_marker spud_events_calendar_event_#{task.spud_calendar_id}", :style => "background-color: \##{task.spud_calendar.color}; color:\##{calendar_fore_color(task.spud_calendar.color)};" %> <% end %> </div> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 2 rubygems