Sha256: 832cb04e0cc3b74946ca7a286d073b44cb1cd67340bfe073ba19a318275eb90f
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 Bytes
Contents
module Admin::CalendarsHelper def link_to_previous_admin_calendar_month(date, _url_for_options = {}) date = date.advance(months: -1) calendar = params[:calendar] ? params[:calendar] : nil link_to('« Previous Month'.html_safe, admin_list_spud_calendar_events_path(month: date.month, year: date.year, calendar: calendar), class: 'spud_events_calendar_link previous_calendar btn btn-sm btn-default').html_safe end def link_to_next_admin_calendar_month(date, _url_for_options = {}) date = date.advance(months: 1) calendar = params[:calendar] ? params[:calendar] : nil link_to('Next Month »'.html_safe, admin_list_spud_calendar_events_path(month: date.month, year: date.year, calendar: calendar), class: 'spud_events_calendar_link next_calendar btn btn-sm btn-default pull-right').html_safe end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tb_events-1.3.1 | app/helpers/admin/calendars_helper.rb |
tb_events-1.3.0 | app/helpers/admin/calendars_helper.rb |