[#263] Remove the tree of parent issues from the issue title
This commit is contained in:
parent
156cdf316e
commit
ffa2d5f319
@ -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)
|
||||
|
@ -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' %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user