summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/issues_helper.rb4
-rw-r--r--app/views/issues/show.rhtml2
2 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index e4d35c217..d47b6e7fe 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -54,6 +54,10 @@ module IssuesHelper
"<strong>#{@cached_label_assigned_to}</strong>: #{issue.assigned_to}<br />" +
"<strong>#{@cached_label_priority}</strong>: #{issue.priority.name}"
end
+
+ def issue_heading(issue)
+ h("#{issue.tracker} ##{issue.id}")
+ end
def render_issue_subject_with_tree(issue)
s = ''
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml
index 166c85e0d..9cdf3f64f 100644
--- a/app/views/issues/show.rhtml
+++ b/app/views/issues/show.rhtml
@@ -1,6 +1,6 @@
<%= render :partial => 'action_menu' %>
-<h2><%= @issue.tracker.name %> #<%= @issue.id %></h2>
+<h2><%= issue_heading(@issue) %></h2>
<div class="<%= @issue.css_classes %> details">
<%= avatar(@issue.author, :size => "50") %>