Skip to content

Instantly share code, notes, and snippets.

@calas
Created July 20, 2009 12:49
Show Gist options
  • Save calas/150318 to your computer and use it in GitHub Desktop.
Save calas/150318 to your computer and use it in GitHub Desktop.
- calendar(:events => @calendar.events, :field => :dtstart) do |date, events|
- if events
%ul.events
- events.each do |event|
%li.event
= render event
- sidebox do
= render @calendar
- sidebox(t(:'events.new_title')) do
- @event = @calendar.events.build
= render 'events/form'
- actions_box do
%li= link_to t(:'calendars.edit_title'), edit_calendar_path(@calendar)
%li= link_to t(:'events.index_title'), calendar_events_path(@calendar)
%li= link_to t(:'events.new_title'), new_calendar_event_path(@calendar)
%li= link_to t(:back), calendars_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment