Revision 9139fb31
Added by Tom Caspy over 8 years ago
app/views/common/403.html.erb | ||
---|---|---|
_("Please request one of the required permissions listed below from a Foreman administrator:") +
|
||
content_tag(:ul, permissions.join.html_safe),
|
||
:actions => link_to(_('Back'), main_app.root_path, :class => 'btn btn-default'),
|
||
:class => 'alert-danger' %>
|
||
:class => 'alert-danger',
|
||
:close => false %>
|
||
</div>
|
app/views/common/404.html.erb | ||
---|---|---|
<%= alert :header => (_(controller_name.camelize.singularize) rescue nil) + ' ' + _('not found'),
|
||
:text => _('Please try to update your request'),
|
||
:actions => link_to(_('Back'), main_app.root_path, :class => 'btn btn-default'),
|
||
:class => 'alert-warning' %>
|
||
:class => 'alert-warning',
|
||
:close => false %>
|
||
</div>
|
app/views/common/500.html.erb | ||
---|---|---|
<%= alert :header => _("Oops, we're sorry but something went wrong"), :class => 'alert-danger',
|
||
:actions => link_to(_('Back'), main_app.root_path, :class => 'btn btn-default'),
|
||
:text => h(exception.message) %>
|
||
:text => h(exception.message),
|
||
:close => false %>
|
||
|
||
<div class="pull-right">
|
||
<%= documentation_button("7.3GettingHelp")%>
|
Also available in: Unified diff
fixes #13083 - error pages alert box is no longer dismissable