Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

add close handler on rails based errors

ulferts31c14c81773e
diff --git a/app/views/common/_error_base.html.erb b/app/views/common/_error_base.html.erb
index 5298d7f9b17..3939863de62 100644
--- a/app/views/common/_error_base.html.erb
+++ b/app/views/common/_error_base.html.erb
@@ -32,15 +32,19 @@ See docs/COPYRIGHT.rdoc for more details.
tabindex="0"
role="alert">
<div class="notification-box--content">
- <% if content_for?(:error_details) %>
- <p>
- <strong><%= error_message %></strong>
- </p>
- <p>
- <%= content_for :error_details %>
- </p>
- <% else %>
- <%= error_message %>
- <% end %>
+ <% if content_for?(:error_details) %>
+ <p>
+ <strong><%= error_message %></strong>
+ </p>
+ <p>
+ <%= content_for :error_details %>
+ </p>
+ <% else %>
+ <%= error_message %>
+ <% end %>
</div>
+
+ <span class="close-handler" role="button" tabindex="0" aria-label="{{ ::I18n.t('js.close_popup_title') }}">
+ <%= op_icon('icon-close') %>
+ </span>
</div>