simple_calendar icon indicating copy to clipboard operation
simple_calendar copied to clipboard

Feature Request: Add a "Today" button between "Previous" and "Next"

Open EmCousin opened this issue 2 years ago • 2 comments

The title explains it all. The implementation would be as simple as this in lib/simple_calendar/simple_calendar.rb:

def url_for_today_view
  view_context.url_for(@params.merge(start_date_param => Date.current.iso8601))
end

Happy to push a Pull Request if needed

EmCousin avatar Jan 25 '22 21:01 EmCousin

That would be a nice addition. 👍 PR is welcome!

excid3 avatar Jan 26 '22 19:01 excid3

@excid3 PR is here: https://github.com/excid3/simple_calendar/pull/273

EmCousin avatar Jan 26 '22 20:01 EmCousin