zammad/zammad

View on GitHub
public/401.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html class="dark">
<meta charset="utf-8">
<title>401: Unauthorized</title>
<link rel="stylesheet" href="/assets/error/style.css">
<body <% if @traceback %>class="error-message"<% end %>>
  <h1>401: Unauthorized</h1>
<% if @message.present? %>
  <div><%= @message %></div>
<% end %>
<% if !@traceback %>
  <div class="error-image" style="background-image: url(/assets/error/error-1.svg)"></div>
  <p>Sorry, but your authentication failed. Double check your credentials and try again.</p>
<% else %>
  <div><%= @exception.message %></div>
  <% if @exception.backtrace %>
    <pre><code>
<% @exception.backtrace.each {|row| %>
  <%= row %>
<% } %></code></pre>
  <% end %>
<% end %>
</body>
</html>