1 <% content_for :heading do %>
 
   2   <h1><%= t ".title" %></h1>
 
   5 <%= render :partial => "settings_menu" %>
 
   7 <% unless @tokens.empty? %>
 
   8 <h3><%= t ".my_tokens" %></h3>
 
   9 <p><%= t ".list_tokens" %></p>
 
  10 <table class="table table-sm">
 
  13       <th><%= t ".application" %></th>
 
  14       <th><%= t ".issued_at" %></th>
 
  18   <% @tokens.each do |token| %>
 
  20       <td><%= link_to token.client_application.name, token.client_application.url %></td>
 
  21       <td><%= token.authorized_at %></td>
 
  23         <%= form_tag({ :controller => "oauth", :action => "revoke" }) do %>
 
  24           <%= hidden_field_tag "token", token.token, :autocomplete => "off" %>
 
  25           <%= submit_tag t(".revoke"), :class => "btn btn-sm btn-primary" %>
 
  32 <h3><%= t ".my_apps" %></h3>
 
  33 <% if @client_applications.empty? %>
 
  34 <p><%= t(".no_apps_html", :oauth => link_to(t(".oauth"), "https://oauth.net")) %></p>
 
  36 <p><%= t ".registered_apps" %></p>
 
  37 <% @client_applications.each do |client| %>
 
  38   <div class="client_application">
 
  39     <%= link_to client.name, :action => :show, :id => client.id %>
 
  43 <h3><%= link_to t(".register_new"), :action => :new %></h3>