Sha256: df82aaa0df78eb0bdfe1c82831ccb521786a3a8c563d111c9d50e4142894041f
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
module Spud::Admin::CalendarsHelper def link_to_admin_previous_calendar_month(date, url_for_options) date = date.advance(:months => -1) calendar = params[:calendar] ? params[:calendar] : nil link_to('« Previous Month'.html_safe, spud_admin_list_spud_calendar_events_path(:month => date.month, :year => date.year, :calendar => calendar), :class => 'spud_events_calendar_link previous_calendar btn').html_safe end def link_to_admin_next_calendar_month(date, url_for_options) date = date.advance(:months => 1) calendar = params[:calendar] ? params[:calendar] : nil link_to('Next Month »'.html_safe, spud_admin_list_spud_calendar_events_path(:month => date.month, :year => date.year, :calendar => calendar), :class => 'spud_events_calendar_link next_calendar btn').html_safe end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spud_events-0.9.0 | app/helpers/spud/admin/calendars_helper.rb |