Sha256: 0b4c1691abda26c8a6229f9ede12edb84f34c1e8c92d3cadf99bc644a8648dd9
Contents?: true
Size: 993 Bytes
Versions: 1
Compression:
Stored size: 993 Bytes
Contents
<p><%= link_to_admin_next_calendar_month(@calendar_date, :class => "btn") %></p> <p><%= link_to_admin_previous_calendar_month(@calendar_date, :class => "btn") %></p> <%= build_calendar_for @calendar_events, :year => @calendar_date.year, :month => @calendar_date.month do |t| %> <%= raw t.head('S', 'M', 'T', 'W', 'T', 'F', 'S') %> <%= t.day do |day, tasks| %> <div class="spud_events_admin_calendar_date_container"> <%= content_tag :span, day.day, :class => (tasks.count > 0 ? "spud_events_admin_calendar_date spud_events_admin_calendar_date_active" : "spud_events_admin_calendar_date") %> <% tasks.each do |task| %> <%= link_to task.title[0,25], edit_spud_admin_calendar_event_path(task.id), :class => "spud_events_admin_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spud_events-0.9.0 | app/views/spud/admin/calendar_events/_calendar.html.erb |