A calendar management project, for events and activities related to communities fighting for freedoms.
This can be related to software, art, data, hardware, content, commons, internet.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB

- if params[:year]
= link_to year: params[:year].to_i - 1 do
= params[:year]
= link_to year: params[:year].to_i + 1 do
prev: url_for(year: params[:year].to_i - 1),
next: url_for(year: params[:year].to_i + 1)
- (1..12).each do |i|
- params[:start_date] = "#{params[:year]}-#{i}-01"
= month_calendar do |date|
- capture_haml do
.day_number= date.day
%ul.events.fa-ul= render month_events(@events, date)
- else
-# One month calendar
params[:start_date] ||= Time.zone.today.beginning_of_month
prev: url_for(start_date: params[:start_date].to_date - 1.month),
next: url_for(start_date: params[:start_date].to_date + 1.month)
@events = @events.month params[:start_date]
= month_calendar events: @events do |date, events|
- capture_haml do
.day_number= date.day
%ul.events.fa-ul= render events
= raw t '.calendar_in',
rss: link_to('RSS', events_path(:rss,
tag: params[:tag], region: session[:region])),
webcal: link_to('webcal', events_path(tag: params[:tag],
protocol: 'webcal', format: :ics, region: session[:region])),
ical: link_to('iCal', events_path(:rss,
tag: params[:tag], format: :ics, region: session[:region]))
= image_tag 'priorite-logiciel-libre-je-soutiens-april_2_m.png',
width: '374', height: '48',
alt: 'Priorité au Logiciel Libre! Je soutiens l\'April.'
/ = image_tag 'lef.png', width: '486', height: '80', alt: 'Libre en Fete'
= render '/orgas/search'
- set_events_meta