Sha256: e1fe0a0742f0f3bc4e496ed70f50fc1c59208569b3dd554ece1e7e802702d0dc

Contents?: true

Size: 323 Bytes

Versions: 59

Compression:

Stored size: 323 Bytes

Contents

module Gumdrop::ViewHelpers
  
  # Calculate the years for a copyright
  def copyright_years(start_year, divider="–")
    end_year = Date.today.year
    if start_year == end_year
      "#{start_year}"
    else
      "#{start_year}#{divider}#{end_year}"
    end
  end
  
  #
  # Your custom helpers go here!
  #
  
end

Version data entries

59 entries across 24 versions & 1 rubygems

Version Path
gumdrop-0.4.0 examples/simple/lib/view_helpers.rb
gumdrop-0.4.0 lib/gumdrop/template/default/lib/view_helpers.rb
gumdrop-0.4.0 lib/gumdrop/template/backbone/lib/view_helpers.rb
gumdrop-0.3.10 lib/gumdrop/template/default/lib/view_helpers.rb
gumdrop-0.3.10 examples/simple/lib/view_helpers.rb
gumdrop-0.3.10 lib/gumdrop/template/backbone/lib/view_helpers.rb
gumdrop-0.3.9 examples/simple/lib/view_helpers.rb
gumdrop-0.3.9 lib/gumdrop/template/backbone/lib/view_helpers.rb
gumdrop-0.3.9 lib/gumdrop/template/default/lib/view_helpers.rb
gumdrop-0.3.8 examples/simple/lib/view_helpers.rb
gumdrop-0.3.8 lib/gumdrop/template/backbone/lib/view_helpers.rb
gumdrop-0.3.8 lib/gumdrop/template/default/lib/view_helpers.rb
gumdrop-0.3.7 lib/gumdrop/template/default/lib/view_helpers.rb
gumdrop-0.3.7 examples/simple/lib/view_helpers.rb
gumdrop-0.3.7 lib/gumdrop/template/backbone/lib/view_helpers.rb
gumdrop-0.3.6 lib/gumdrop/template/backbone/lib/view_helpers.rb
gumdrop-0.3.6 lib/gumdrop/template/default/lib/view_helpers.rb
gumdrop-0.3.6 examples/simple/lib/view_helpers.rb
gumdrop-0.3.5 examples/simple/lib/view_helpers.rb
gumdrop-0.3.5 lib/gumdrop/template/backbone/lib/view_helpers.rb