Sha256: d615493070af8d7c86ed96e1dcdb7c995fb7233360a1d1ac2126e69921b3f551

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

<div class="row">

  <div class="col-md-6">
    <h1 class="display-4 mb-3"><%= t('txt.common.ops') %></h1>

    <h2 class="mt-3 mb-3"><%= t('txt.views.errors.server_error.message') %></h2>
    <h5 class="mb-3"><%= t('txt.views.errors.common.error_code') %> 500</h5>

    <p><%= t('txt.views.errors.common.helpful_links') %></p>
    <ul>
      <li><%= link_to t('txt.views.navigation.home'), root_path %></li>
      <% if can? :use, :dashboard %>
      <li><%= link_to t('txt.views.navigation.dashboard'), dashboard_path %></li>
      <% end %>
      <li><%= link_to t('txt.views.navigation.search'), search_path %></li>
    </ul>
  </div>

</div>

<% if can?(:see, :exception) || Rails.env.development? %>
<div class="card">
  <h5 class="card-header">
    <%= t("txt.views.errors.common.error_message") %>
  </h5>
  <div class="card-body">
    <h5 class="card-title">
      <%= @exception.message %>
    </h5>

    <h6><%= @exception.class.name %></h6>
    <pre>
    <%= highlight @exception.backtrace.join("\n"), /#{Regexp.escape(Rails.root.to_s.force_encoding('utf-8'))}.*/ %>
    </pre>
  </div>
</div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iqvoc-4.14.5 app/views/errors/server_error.html.erb
iqvoc-4.14.4 app/views/errors/server_error.html.erb
iqvoc-4.13.2 app/views/errors/server_error.html.erb