Module: BootstrapCalendarHelper
- Defined in:
- app/helpers/bootstrap_calendar_helper.rb
Defined Under Namespace
Classes: BootstrapCalendar
Instance Method Summary
collapse
Instance Method Details
#bootstrap_calendar(date = Date.today, &block) ⇒ Object
2
3
4
|
# File 'app/helpers/bootstrap_calendar_helper.rb', line 2
def bootstrap_calendar(date = Date.today, &block)
BootstrapCalendar.new(self, date, block).calendar_div
end
|
#event_link_style(event) ⇒ Object
57
58
59
60
61
62
63
|
# File 'app/helpers/bootstrap_calendar_helper.rb', line 57
def event_link_style(event)
if %w(white silver yellow lime aqua teal fuchsia).include?(event.color)
"color: black;"
else
"color: white;"
end
end
|
#event_style(event) ⇒ Object
53
54
55
|
# File 'app/helpers/bootstrap_calendar_helper.rb', line 53
def event_style(event)
"background-color: #{event.color};"
end
|