Feature #29306 » add-assignee-icon-on-tooltip-v3.patch
| app/helpers/issues_helper.rb | ||
|---|---|---|
|
"<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
|
||
| test/functional/calendars_controller_test.rb | ||
|---|---|---|
|
: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
|
||
| ... | ... | |
|
# 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
|
||
| test/functional/gantts_controller_test.rb | ||
|---|---|---|
|
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
|
||
| ... | ... | |
|
# 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
|
||