X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/64fb530581ffd21e2522e70e8a2d4c46d666f760..63c82ed72f133d9f670c0b1bb03ffd44095f6867:/app/views/oauth_clients/show.html.erb?ds=sidebyside
diff --git a/app/views/oauth_clients/show.html.erb b/app/views/oauth_clients/show.html.erb
index 5ec45aef5..e6aa85e3e 100644
--- a/app/views/oauth_clients/show.html.erb
+++ b/app/views/oauth_clients/show.html.erb
@@ -1,20 +1,31 @@
-
OAuth details for <%=@client_application.name %>
-
- Consumer Key: <%=@client_application.key %>
-
-
- Consumer Secret: <%=@client_application.secret %>
-
-
- Request Token URL http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
-
-
- Access Token URL http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
-
-
- Authorize URL http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
-
+<% content_for :heading do %>
+ <%= t(".title", :app_name => @client_application.name) %>
+<% end %>
-
- We support hmac-sha1 (recommended) as well as plain text in ssl mode.
-
\ No newline at end of file
+
+ - <%= t ".key" %>
+ - <%= @client_application.key %>
+
- <%= t ".secret" %>
+ - <%= @client_application.secret %>
+ - <%= t ".url" %>
+ - http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.request_token_path %>
+ - <%= t ".access_url" %>
+ - http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.access_token_path %>
+ - <%= t ".authorize_url" %>
+ - http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.authorize_path %>
+
+
+
+
<%= t ".requests" %>
+
+ <% @client_application.permissions.each do |perm| %>
+ - <%= t("activerecord.attributes.client_application.#{perm}") %>
+ <% end %>
+
+
<%= t ".support_notice" %>
+
+
+
+ <%= link_to t(".edit"), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class => "btn btn-outline-primary" %>
+ <%= link_to t(".delete"), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t(".confirm") }, :class => "btn btn-outline-danger" %>
+