Sha256: 94ee246fefb0b37c9df7b1cc89d2e8dfdead0238c9bdc1ad5f15b7e6e7ab88f7

Contents?: true

Size: 854 Bytes

Versions: 16

Compression:

Stored size: 854 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').on("click", function(){
      $('.error.message p').toggleClass('hidden');
      return false;
    });
  });
</script>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-7.1.12 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.11 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.10 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.9 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.8 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.7 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.6 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.5 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.4 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.3 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.2 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.1 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.0 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.0.pre.rc1 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.0.pre.b2 app/views/alchemy/base/500.html.erb
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/base/500.html.erb