YaleSTC/shifts

View on GitHub
app/views/layouts/access_denied.html.erb

Summary

Maintainability
Test Coverage
<div align="center">
  <h1>Access Denied</h1>

  <div>
    <% if @appconfig.login_options.include?('built-in') %>
      Maybe you want to <%= link_to "try", login_path %> to log in with built-in authentication?
    <% end %>
    <br>
    <% if current_user && current_user.departments %>
      Maybe you want to go <%= link_to "here", dashboard_path %>?<br>
      If you think you are redirected here wrongly, please contact the application administrator at <%= mail_to "#{AppConfig.first.admin_email}"%>.</br>
    <% end %>
    </br>
  </div>
</div>