Revert "Changed the date format so that start date and end date of the sprint don't"

This reverts commit 22875a468d.
pull/6827/head
Nate Lowrie 15 years ago
parent 22875a468d
commit 95fbbab0d2
  1. 10
      app/helpers/backlogs_helper.rb

@ -2,22 +2,22 @@ module BacklogsHelper
def backlog_date(backlog, field_name) def backlog_date(backlog, field_name)
d = backlog.send(field_name) d = backlog.send(field_name)
d.nil? ? "(not set)" : d.strftime("%m-%d-%y") d.nil? ? "(not set)" : d.strftime("%Y-%m-%d")
end end
def mark_closed_if_so(item_or_task) def mark_closed_if_so(item_or_task)
return if item_or_task.nil? return if item_or_task.nil?
item_or_task.issue.status.is_closed? ? "closed" : "" item_or_task.issue.status.is_closed? ? "closed" : ""
end end
def link_to_main_backlog def link_to_main_backlog
link_to "All Backlog Items", :controller => 'items', :project_id => @project.id link_to "All Backlog Items", :controller => 'items', :project_id => @project.id
end end
def link_to_backlog(backlog) def link_to_backlog(backlog)
link_to backlog.version.name, backlog_url(backlog) link_to backlog.version.name, backlog_url(backlog)
end end
def say_version(issue) def say_version(issue)
issue.fixed_version.nil? ? "-" : issue.fixed_version.name issue.fixed_version.nil? ? "-" : issue.fixed_version.name
end end

Loading…
Cancel
Save