Sha256: 97cb6e3a49837975e83935f345840521cd3dde07ad207d894a746718bb840331

Contents?: true

Size: 347 Bytes

Versions: 17

Compression:

Stored size: 347 Bytes

Contents

module SprintHelper

  def format_sprint_time_frame(sprint)
    if sprint.start_date.month == sprint.end_date.month
      "#{sprint.start_date.strftime("%b %-d")}–#{sprint.end_date.strftime("%-d")}".html_safe
    else
      "#{sprint.start_date.strftime("%b %-d")} – #{sprint.end_date.strftime("%b %-d")}".html_safe
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre app/helpers/sprint_helper.rb
houston-core-0.7.0 app/helpers/sprint_helper.rb
houston-core-0.7.0.beta4 app/helpers/sprint_helper.rb
houston-core-0.7.0.beta3 app/helpers/sprint_helper.rb
houston-core-0.7.0.beta2 app/helpers/sprint_helper.rb
houston-core-0.7.0.beta app/helpers/sprint_helper.rb
houston-core-0.6.3 app/helpers/sprint_helper.rb
houston-core-0.6.2 app/helpers/sprint_helper.rb
houston-core-0.6.1 app/helpers/sprint_helper.rb
houston-core-0.6.0 app/helpers/sprint_helper.rb
houston-core-0.5.6 app/helpers/sprint_helper.rb
houston-core-0.5.5 app/helpers/sprint_helper.rb
houston-core-0.5.4 app/helpers/sprint_helper.rb
houston-core-0.5.3 app/helpers/sprint_helper.rb
houston-core-0.5.2 app/helpers/sprint_helper.rb
houston-core-0.5.1 app/helpers/sprint_helper.rb
houston-core-0.5.0 app/helpers/sprint_helper.rb