From 22875a468d2effb6cb5617db64d42b5daab7973a Mon Sep 17 00:00:00 2001 From: Nate Lowrie Date: Thu, 24 Dec 2009 11:36:34 -0500 Subject: [PATCH] Changed the date format so that start date and end date of the sprint don't wrap. --- app/helpers/backlogs_helper.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/helpers/backlogs_helper.rb b/app/helpers/backlogs_helper.rb index 6624529c3d..ab5b55b46d 100644 --- a/app/helpers/backlogs_helper.rb +++ b/app/helpers/backlogs_helper.rb @@ -2,22 +2,22 @@ module BacklogsHelper def backlog_date(backlog, field_name) d = backlog.send(field_name) - d.nil? ? "(not set)" : d.strftime("%Y-%m-%d") + d.nil? ? "(not set)" : d.strftime("%m-%d-%y") end - + def mark_closed_if_so(item_or_task) return if item_or_task.nil? item_or_task.issue.status.is_closed? ? "closed" : "" end - + def link_to_main_backlog link_to "All Backlog Items", :controller => 'items', :project_id => @project.id end - + def link_to_backlog(backlog) link_to backlog.version.name, backlog_url(backlog) end - + def say_version(issue) issue.fixed_version.nil? ? "-" : issue.fixed_version.name end