]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth2_authorized_applications/_application.html.erb
Merge remote-tracking branch 'upstream/pull/5246'
[rails.git] / app / views / oauth2_authorized_applications / _application.html.erb
1 <tr>
2   <td class="align-middle">
3     <%= application.name %>
4   </td>
5   <td class="align-middle">
6     <ul class="list-unstyled mb-0">
7       <% application.authorized_scopes_for(current_user).each do |scope| -%>
8         <li><%= authorization_scope(scope) %></li>
9       <% end -%>
10     </ul>
11   </td>
12   <td class="align-middle">
13     <%= friendly_date_ago(application.authorized_tokens.where(:resource_owner_id => current_user).maximum(:created_at)) %>
14   </td>
15   <td class="align-middle text-end">
16     <%= link_to t(".revoke"), oauth_authorized_application_path(application), { :method => :delete, :class => "btn btn-outline-danger", :data => { :confirm => t(".confirm_revoke") } } %>
17   </td>
18 </tr>