X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..e47187a8fb45c9372ad3a7422f96d357e087676d:/app/views/oauth2_authorized_applications/_application.html.erb?ds=sidebyside
diff --git a/app/views/oauth2_authorized_applications/_application.html.erb b/app/views/oauth2_authorized_applications/_application.html.erb
index 3781c1df3..4209b8ff9 100644
--- a/app/views/oauth2_authorized_applications/_application.html.erb
+++ b/app/views/oauth2_authorized_applications/_application.html.erb
@@ -1,15 +1,18 @@
- <%= link_to application.name, oauth_application_path(application) %>
+ <%= application.name %>
|
- <% application.scopes.each do |scope| -%>
- - <%= t "oauth.scopes.#{scope}" %>
+ <% application.authorized_scopes_for(current_user).each do |scope| -%>
+ - <%= authorization_scope(scope) %>
<% end -%>
|
-
+ |
+ <%= friendly_date_ago(application.authorized_tokens.where(:resource_owner_id => current_user).maximum(:created_at)) %>
+ |
+
<%= link_to t(".revoke"), oauth_authorized_application_path(application), { :method => :delete, :class => "btn btn-outline-danger", :data => { :confirm => t(".confirm_revoke") } } %>
|