Sha256: 06dfdbfa4149d225bfed045ce7203348d2ac7eba1f537b88cd2ed66e7c0e42b4

Contents?: true

Size: 848 Bytes

Versions: 93

Compression:

Stored size: 848 Bytes

Contents

<%= content_for :toolbar do %>
  <%= toolbar_button(
    icon: 'angle-double-left',
    url: request.referer || alchemy.admin_dashboard_path,
    label: Alchemy.t(:back),
    title: Alchemy.t(:back),
    hotkey: 'alt+z',
    dialog: false,
    skip_permission_check: true
  ) %>
<% end %>

<% content_for(:alchemy_body_class) { 'error' } %>

<%= render_message(:error) do %>
  <h1><%= Alchemy.t('An error happened') %></h1>
  <h2>
    <%= @error.class %>
    <%= @notice %>
  </h2>
  <p class="hidden">
  <% @trace.each do |line| %>
    <%= line %><br>
  <% end %>
  </p>
  <a href="#" class="error_details--toggle">
    <%= Alchemy.t('Show error details') %>
  </a>
<% end %>

<script>
  $(function(){
    $('.error_details--toggle').click(function(){
      $('.error.message p').toggleClass('hidden');
      return false;
    });
  });
</script>

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
alchemy_cms-7.0.16 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.15 app/views/alchemy/base/500.html.erb
alchemy_cms-6.1.10 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.14 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.13 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.12 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.11 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.10 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.9 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.8 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.7 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.6 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.5 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.4 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.3 app/views/alchemy/base/500.html.erb
alchemy_cms-6.1.9 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.2 app/views/alchemy/base/500.html.erb
alchemy_cms-6.1.8 app/views/alchemy/base/500.html.erb
alchemy_cms-6.1.7 app/views/alchemy/base/500.html.erb
alchemy_cms-7.0.1 app/views/alchemy/base/500.html.erb