diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index cbec573f..63959d01 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -51,11 +51,12 @@ module IssuesHelper "#{@cached_label_priority}: #{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 << '
' + content_tag('p', link_to_issue(ancestor)) + s << '
' + content_tag('h2', link_to_issue(ancestor)) end s << '
' + content_tag('h2', h(issue.subject)) s << '
' * (ancestors.size + 1) diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 9c583b29..abfb2814 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -1,5 +1,5 @@
- <%= render_issue_subject_with_tree(@issue) %> +
<%= content_tag('h2', h(@issue.subject)) %>
<%= render :partial => 'action_menu' %>