Sha256: ee0f174e27fab7fd3a3bd56fb20338cc5db0043fa50f7d45a63496bb24ff7e48

Contents?: true

Size: 854 Bytes

Versions: 45

Compression:

Stored size: 854 Bytes

Contents

<%= toolbar(
  buttons: [
    {
      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
    }
  ], search: false
) %>

<% 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

45 entries across 45 versions & 1 rubygems

Version Path
alchemy_cms-5.0.10 app/views/alchemy/base/500.html.erb
alchemy_cms-4.6.7 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.9 app/views/alchemy/base/500.html.erb
alchemy_cms-4.6.6 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.8 app/views/alchemy/base/500.html.erb
alchemy_cms-4.6.5 app/views/alchemy/base/500.html.erb
alchemy_cms-4.5.1 app/views/alchemy/base/500.html.erb
alchemy_cms-4.4.5 app/views/alchemy/base/500.html.erb
alchemy_cms-4.6.4 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.7 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.6 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.5 app/views/alchemy/base/500.html.erb
alchemy_cms-4.6.3 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.4 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.3 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.2 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.1 app/views/alchemy/base/500.html.erb
alchemy_cms-4.6.2 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.0 app/views/alchemy/base/500.html.erb
alchemy_cms-5.0.0.rc2 app/views/alchemy/base/500.html.erb