"<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 = ''
<%= 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") %>
# Redmine - project management software
-# Copyright (C) 2006-2010 Jean-Philippe Lang
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
def request
@request ||= ActionController::TestRequest.new
end
+
+ def test_issue_heading
+ assert_equal "Bug #1", issue_heading(Issue.find(1))
+ end
context "IssuesHelper#show_detail" do
context "with no_html" do