Defect #41918 » 0005-Replace-warning-icon-in-issue_transitiont-with-SVG.patch
app/views/issues/_attributes.html.erb | ||
---|---|---|
9 | 9 |
:title => @issue.status.description %> |
10 | 10 |
<%= content_tag 'a', sprite_icon('help', l(:label_open_issue_statuses_description)), :class => 'icon-only icon-help', :title => l(:label_open_issue_statuses_description), :onclick => "showModal('issue_statuses_description', '500px'); return false;", :href => '#' if @allowed_statuses.any? {|s| s.description.present? } %> |
11 | 11 |
<% if @issue.transition_warning %> |
12 |
<span class="icon-only icon-warning" title="<%= @issue.transition_warning %>"><%= @issue.transition_warning %></span>
|
|
12 |
<span class="icon-only icon-warning" title="<%= @issue.transition_warning %>"><%= sprite_icon('warning', l(:notice_issue_not_closable_by_open_tasks)) %></span>
|
|
13 | 13 |
<% end %> |
14 | 14 |
</p> |
15 | 15 |
<%= render partial: 'issues/issue_status_description', locals: { issue_statuses: @allowed_statuses } %> |
test/functional/issues_controller_test.rb | ||
---|---|---|
5993 | 5993 | |
5994 | 5994 |
assert_response :success |
5995 | 5995 |
reason = l(:notice_issue_not_closable_by_blocking_issue) |
5996 |
assert_select 'span.icon-warning[title=?]', reason, :text => reason |
|
5996 |
assert_select 'span.icon-warning[title=?]', reason do |
|
5997 |
assert_select "svg.icon-svg use:match('href', ?)", /assets\/icons-\w+.svg#icon--warning/ |
|
5998 |
assert_select 'span.icon-label', test: reason |
|
5999 |
end |
|
5997 | 6000 |
end |
5998 | 6001 | |
5999 | 6002 |
def test_get_edit_should_display_visible_spent_time_custom_field |
- « Previous
- 1
- …
- 13
- 14
- 15
- Next »