@@ -55,6 +55,10 module IssuesHelper | |||
|
55 | 55 | "<strong>#{@cached_label_priority}</strong>: #{issue.priority.name}" |
|
56 | 56 | end |
|
57 | 57 |
|
|
58 | def issue_heading(issue) | |
|
59 | h("#{issue.tracker} ##{issue.id}") | |
|
60 | end | |
|
61 | ||
|
58 | 62 | def render_issue_subject_with_tree(issue) |
|
59 | 63 | s = '' |
|
60 | 64 | ancestors = issue.root? ? [] : issue.ancestors.all |
@@ -1,6 +1,6 | |||
|
1 | 1 | <%= render :partial => 'action_menu' %> |
|
2 | 2 | |
|
3 | <h2><%= @issue.tracker.name %> #<%= @issue.id %></h2> | |
|
3 | <h2><%= issue_heading(@issue) %></h2> | |
|
4 | 4 | |
|
5 | 5 | <div class="<%= @issue.css_classes %> details"> |
|
6 | 6 | <%= avatar(@issue.author, :size => "50") %> |
@@ -1,5 +1,5 | |||
|
1 | 1 | # Redmine - project management software |
|
2 |
# Copyright (C) 2006-201 |
|
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
|
3 | 3 | # |
|
4 | 4 | # This program is free software; you can redistribute it and/or |
|
5 | 5 | # modify it under the terms of the GNU General Public License |
@@ -44,6 +44,10 class IssuesHelperTest < HelperTestCase | |||
|
44 | 44 | @request ||= ActionController::TestRequest.new |
|
45 | 45 | end |
|
46 | 46 | |
|
47 | def test_issue_heading | |
|
48 | assert_equal "Bug #1", issue_heading(Issue.find(1)) | |
|
49 | end | |
|
50 | ||
|
47 | 51 | context "IssuesHelper#show_detail" do |
|
48 | 52 | context "with no_html" do |
|
49 | 53 | should 'show a changing attribute' do |
General Comments 0
You need to be logged in to leave comments.
Login now