]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth2_applications/index.html.erb
Merge remote-tracking branch 'upstream/pull/4842'
[rails.git] / app / views / oauth2_applications / index.html.erb
index a2d4cc0892a25a0a0c373b3d7842d538ea76c25f..4ed849f9816dfa71ed2a11edc458a4e4465913d8 100644 (file)
@@ -2,12 +2,26 @@
   <h1><%= t ".title" %></h1>
 <% end %>
 
+<%= render :partial => "settings_menu" %>
+
+<% if @applications.length > 0 %>
+  <table class="table table-borderless table-striped">
+    <thead>
+      <tr>
+        <th><%= t ".name" %></th>
+        <th><%= t ".permissions" %></th>
+        <th></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 %>
+
 <p>
   <%= link_to t(".new"), new_oauth_application_path, :class => "btn btn-outline-primary" %>
 </p>
-
-<table class="table table-borderless table-striped">
-  <tbody>
-    <%= render :partial => "application", :collection => @applications %>
-  </tbody>
-</table>