[#263] Remove the tree of parent issues from the issue title

This commit is contained in:
Eric Davis 2011-08-05 09:01:03 -07:00
parent 156cdf316e
commit ffa2d5f319
2 changed files with 3 additions and 2 deletions

View File

@ -51,11 +51,12 @@ module IssuesHelper
"<strong>#{@cached_label_priority}</strong>: #{issue.priority.name}"
end
# TODO: deprecate and/or remove
def render_issue_subject_with_tree(issue)
s = ''
ancestors = issue.root? ? [] : issue.ancestors.all
ancestors.each do |ancestor|
s << '<div>' + content_tag('p', link_to_issue(ancestor))
s << '<div>' + content_tag('h2', link_to_issue(ancestor))
end
s << '<div class="subject">' + content_tag('h2', h(issue.subject))
s << '</div>' * (ancestors.size + 1)

View File

@ -1,5 +1,5 @@
<div class="title-bar" id="upper-title-bar">
<%= render_issue_subject_with_tree(@issue) %>
<div class="subject"><%= content_tag('h2', h(@issue.subject)) %></div>
<div class="title-bar-actions">
<%= render :partial => 'action_menu' %>