X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e222329d043592af299eed12cf6ad16969c1b46f..8f529a337ffdb0b35f87169ad50e3ce36ea70c60:/app/views/oauth2_applications/index.html.erb?ds=sidebyside diff --git a/app/views/oauth2_applications/index.html.erb b/app/views/oauth2_applications/index.html.erb index a2d4cc089..240b34d31 100644 --- a/app/views/oauth2_applications/index.html.erb +++ b/app/views/oauth2_applications/index.html.erb @@ -2,12 +2,22 @@

<%= t ".title" %>

<% end %> +<% if @applications.length > 0 %> + + + + + + + + + <%= render :partial => "application", :collection => @applications %> + +
<%= t ".name" %><%= t ".permissions" %>
+<% else %> +

<%= t ".no_applications_html", :oauth2 => link_to(t(".oauth_2"), "https://oauth.net/2/") %>

+<% end %> +

<%= link_to t(".new"), new_oauth_application_path, :class => "btn btn-outline-primary" %>

- - - - <%= render :partial => "application", :collection => @applications %> - -