1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Adds tracker name to Redmine issue link titles (#13946).

git-svn-id: http://svn.redmine.org/redmine/trunk@14620 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-09-21 20:42:06 +00:00
parent 64a80066bd
commit a7b6ad9bb5
3 changed files with 8 additions and 8 deletions

View File

@ -781,7 +781,7 @@ module ApplicationHelper
link = link_to("##{oid}#{comment_suffix}", link = link_to("##{oid}#{comment_suffix}",
issue_url(issue, :only_path => only_path, :anchor => anchor), issue_url(issue, :only_path => only_path, :anchor => anchor),
:class => issue.css_classes, :class => issue.css_classes,
:title => "#{issue.subject.truncate(100)} (#{issue.status.name})") :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})")
end end
when 'document' when 'document'
if document = Document.visible.find_by_id(oid) if document = Document.visible.find_by_id(oid)

View File

@ -276,11 +276,11 @@ RAW
def test_redmine_links def test_redmine_links
issue_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3}, issue_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3},
:class => Issue.find(3).css_classes, :title => 'Error 281 when updating a recipe (New)') :class => Issue.find(3).css_classes, :title => 'Bug: Error 281 when updating a recipe (New)')
note_link = link_to('#3-14', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'}, note_link = link_to('#3-14', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'},
:class => Issue.find(3).css_classes, :title => 'Error 281 when updating a recipe (New)') :class => Issue.find(3).css_classes, :title => 'Bug: Error 281 when updating a recipe (New)')
note_link2 = link_to('#3#note-14', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'}, note_link2 = link_to('#3#note-14', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'},
:class => Issue.find(3).css_classes, :title => 'Error 281 when updating a recipe (New)') :class => Issue.find(3).css_classes, :title => 'Bug: Error 281 when updating a recipe (New)')
revision_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1}, revision_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1},
:class => 'changeset', :title => 'My very first commit do not escaping #<>&') :class => 'changeset', :title => 'My very first commit do not escaping #<>&')
@ -964,7 +964,7 @@ RAW
result2 = link_to('#1', result2 = link_to('#1',
"/issues/1", "/issues/1",
:class => Issue.find(1).css_classes, :class => Issue.find(1).css_classes,
:title => "Cannot print recipes (New)") :title => "Bug: Cannot print recipes (New)")
expected = <<-EXPECTED expected = <<-EXPECTED
<p>#{result1}</p> <p>#{result1}</p>

View File

@ -56,7 +56,7 @@ class MailerTest < ActiveSupport::TestCase
# link to a referenced ticket # link to a referenced ticket
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
'https://mydomain.foo/issues/1', 'https://mydomain.foo/issues/1',
"Cannot print recipes (New)", "Bug: Cannot print recipes (New)",
:text => '#1' :text => '#1'
# link to a changeset # link to a changeset
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
@ -97,7 +97,7 @@ class MailerTest < ActiveSupport::TestCase
# link to a referenced ticket # link to a referenced ticket
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
'http://mydomain.foo/rdm/issues/1', 'http://mydomain.foo/rdm/issues/1',
"Cannot print recipes (New)", "Bug: Cannot print recipes (New)",
:text => '#1' :text => '#1'
# link to a changeset # link to a changeset
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
@ -167,7 +167,7 @@ class MailerTest < ActiveSupport::TestCase
# link to a referenced ticket # link to a referenced ticket
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',
'http://mydomain.foo/rdm/issues/1', 'http://mydomain.foo/rdm/issues/1',
"Cannot print recipes (New)", "Bug: Cannot print recipes (New)",
:text => '#1' :text => '#1'
# link to a changeset # link to a changeset
assert_select 'a[href=?][title=?]', assert_select 'a[href=?][title=?]',