Commit 290170e2 authored by maeda's avatar maeda

Add assignee's icon to tooltips in gantt and calendar (#29306).

Patch by Mizuki ISHIKAWA.


git-svn-id: https://svn.redmine.org/redmine/trunk@17493 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ebc0be2e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment