Defect #41918 » 0005-Replace-warning-icon-in-issue_transitiont-with-SVG.patch
| app/views/issues/_attributes.html.erb | ||
|---|---|---|
|
:title => @issue.status.description %>
|
||
|
<%= 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? } %>
|
||
|
<% if @issue.transition_warning %>
|
||
|
<span class="icon-only icon-warning" title="<%= @issue.transition_warning %>"><%= @issue.transition_warning %></span>
|
||
|
<span class="icon-only icon-warning" title="<%= @issue.transition_warning %>"><%= sprite_icon('warning', l(:notice_issue_not_closable_by_open_tasks)) %></span>
|
||
|
<% end %>
|
||
|
</p>
|
||
|
<%= render partial: 'issues/issue_status_description', locals: { issue_statuses: @allowed_statuses } %>
|
||
| test/functional/issues_controller_test.rb | ||
|---|---|---|
|
assert_response :success
|
||
|
reason = l(:notice_issue_not_closable_by_blocking_issue)
|
||
|
assert_select 'span.icon-warning[title=?]', reason, :text => reason
|
||
|
assert_select 'span.icon-warning[title=?]', reason do
|
||
|
assert_select "svg.icon-svg use:match('href', ?)", /assets\/icons-\w+.svg#icon--warning/
|
||
|
assert_select 'span.icon-label', test: reason
|
||
|
end
|
||
|
end
|
||
|
def test_get_edit_should_display_visible_spent_time_custom_field
|
||
- « Previous
- 1
- …
- 13
- 14
- 15
- Next »