class Pagy::Calendar::Quarter

Calendar quarter subclass
:nodoc:
:nodoc:

def label_for(page, opts = {})

The label for any page, with the substitution of the '%q' token
def label_for(page, opts = {})
  starting_time = starting_time_for(page.to_i)  # page could be a string
  opts[:format] = (opts[:format] || @vars[:format]).gsub('%q') { (starting_time.month / 4) + 1 }
  localize(starting_time, opts)
end