<% case @state %> <% when :approved %>

Device approved

<%= @application.name %> now has access to your account. You can return to your terminal — it will continue automatically. You may close this tab.

<% when :denied %>

Request denied

No access was granted. You can close this tab.

<% when :not_allowed %>

Access not allowed

Your account isn't a member of a group permitted to use <%= @application.name %>. Contact an administrator if you think this is a mistake.

<% else %> <%= render "terminal_state", state: @state %> <% end %>