]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth2_authorized_applications/index.html.erb
Re-introduce additional round trip for verifying auth_provider
[rails.git] / app / views / oauth2_authorized_applications / index.html.erb
index dca65e9f9648e2d530ef82508edc43e15e4cd7c3..59d692393257b4617f7fbcc2f40b500fe743edd5 100644 (file)
@@ -2,13 +2,22 @@
   <h1><%= t ".title" %></h1>
 <% end %>
 
   <h1><%= t ".title" %></h1>
 <% end %>
 
-<table class="table table-borderless table-striped">
-  <thead>
-    <th><%= t ".application" %></th>
-    <th><%= t ".permissions" %></th>
-    <th></th>
-  </thead>
-  <tbody>
-    <%= render :partial => "application", :collection => @applications %>
-  </tbody>
-</table>
+<%= render :partial => "settings_menu" %>
+
+<% if @applications.length > 0 %>
+  <table class="table table-borderless table-striped">
+    <thead>
+      <tr>
+        <th><%= t ".application" %></th>
+        <th><%= t ".permissions" %></th>
+        <th><%= t ".last_authorized" %></th>
+        <th></th>
+      </tr>
+    </thead>
+    <tbody>
+      <%= render :partial => "application", :collection => @applications %>
+    </tbody>
+  </table>
+<% else %>
+  <p><%= t ".no_applications_html", :oauth2 => link_to(t(".oauth_2"), "https://oauth.net/2/") %></p>
+<% end %>