Sha256: 7b617634bdf6ca8c334475d8105109f9e0ec319949bbd1c400564786e26c3420

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 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

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 app/helpers/sprint_helper.rb