mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
Add assignee's icon to tooltips in gantt and calendar (#29306).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17493 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -65,7 +65,7 @@ module IssuesHelper
|
||||
"<strong>#{@cached_label_status}</strong>: #{h(issue.status.name)}<br />".html_safe +
|
||||
"<strong>#{@cached_label_start_date}</strong>: #{format_date(issue.start_date)}<br />".html_safe +
|
||||
"<strong>#{@cached_label_due_date}</strong>: #{format_date(issue.due_date)}<br />".html_safe +
|
||||
"<strong>#{@cached_label_assigned_to}</strong>: #{h(issue.assigned_to)}<br />".html_safe +
|
||||
"<strong>#{@cached_label_assigned_to}</strong>: #{avatar(issue.assigned_to, :size => "13", :title => l(:field_assigned_to)) if issue.assigned_to} #{h(issue.assigned_to)}<br />".html_safe +
|
||||
"<strong>#{@cached_label_priority}</strong>: #{h(issue.priority.name)}".html_safe
|
||||
end
|
||||
|
||||
|
||||
@@ -33,9 +33,11 @@ class CalendarsControllerTest < Redmine::ControllerTest
|
||||
:queries
|
||||
|
||||
def test_show
|
||||
get :show, :params => {
|
||||
:project_id => 1
|
||||
}
|
||||
with_settings :gravatar_enabled => '1' do
|
||||
get :show, :params => {
|
||||
:project_id => 1
|
||||
}
|
||||
end
|
||||
assert_response :success
|
||||
|
||||
# query form
|
||||
@@ -51,8 +53,9 @@ class CalendarsControllerTest < Redmine::ControllerTest
|
||||
|
||||
# Assert context menu on issues
|
||||
assert_select 'form[data-cm-url=?]', '/issues/context_menu'
|
||||
assert_select 'div.issue.hascontextmenu' do
|
||||
assert_select 'div.issue.hascontextmenu.tooltip' do
|
||||
assert_select 'input[name=?][type=?]', 'ids[]', 'checkbox'
|
||||
assert_select 'img[class="gravatar"]'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -30,9 +30,11 @@ class GanttsControllerTest < Redmine::ControllerTest
|
||||
def test_gantt_should_work
|
||||
i2 = Issue.find(2)
|
||||
i2.update_attribute(:due_date, 1.month.from_now)
|
||||
get :show, :params => {
|
||||
:project_id => 1
|
||||
}
|
||||
with_settings :gravatar_enabled => '1' do
|
||||
get :show, :params => {
|
||||
:project_id => 1
|
||||
}
|
||||
end
|
||||
assert_response :success
|
||||
|
||||
# query form
|
||||
@@ -49,7 +51,9 @@ class GanttsControllerTest < Redmine::ControllerTest
|
||||
|
||||
# Assert context menu on issues subject and gantt bar
|
||||
assert_select 'div[class=?]', 'issue-subject hascontextmenu'
|
||||
assert_select 'div[class=?]', 'tooltip hascontextmenu'
|
||||
assert_select 'div.tooltip.hascontextmenu' do
|
||||
assert_select 'img[class="gravatar"]'
|
||||
end
|
||||
assert_select "form[data-cm-url=?]", '/issues/context_menu'
|
||||
|
||||
# Issue with start and due dates
|
||||
|
||||
Reference in New Issue
Block a user