maestrano/mno-enterprise

View on GitHub
api/app/views/mno_enterprise/application/error_page.html.haml

Summary

Maintainability
Test Coverage
.error-page
  .container
    .error-code
      = @status
    .error-title
      = t("mno_enterprise.errors.#{@status}.title")
    %hr
    .error-context
      %p
        = t("mno_enterprise.errors.#{@status}.description", support_email: MnoEnterprise.support_email)
    .error-button
      %button
        = link_to(mno_enterprise.root_path) do
          %i{class: "fa fa-home"}
          = t("mno_enterprise.errors.redirection")
    #error-loader

= hidden_field_tag :status_code, @status

= javascript_include_tag "mno_enterprise/error_page"