Merge pull request #4502 from tomhughes/oauth2-authorization-time
Show last authorization time for OAuth 2 applications
This commit is contained in:
commit
39b0d27bae
3 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,9 @@
|
||||||
<% end -%>
|
<% end -%>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="align-middle">
|
||||||
|
<%= friendly_date_ago(application.authorized_tokens.where(:resource_owner_id => current_user).maximum(:created_at)) %>
|
||||||
|
</td>
|
||||||
<td class="align-middle text-end">
|
<td class="align-middle text-end">
|
||||||
<%= link_to t(".revoke"), oauth_authorized_application_path(application), { :method => :delete, :class => "btn btn-outline-danger", :data => { :confirm => t(".confirm_revoke") } } %>
|
<%= link_to t(".revoke"), oauth_authorized_application_path(application), { :method => :delete, :class => "btn btn-outline-danger", :data => { :confirm => t(".confirm_revoke") } } %>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th><%= t ".application" %></th>
|
<th><%= t ".application" %></th>
|
||||||
<th><%= t ".permissions" %></th>
|
<th><%= t ".permissions" %></th>
|
||||||
|
<th><%= t ".last_authorized" %></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -2684,6 +2684,7 @@ en:
|
||||||
title: "My Authorized Applications"
|
title: "My Authorized Applications"
|
||||||
application: "Application"
|
application: "Application"
|
||||||
permissions: "Permissions"
|
permissions: "Permissions"
|
||||||
|
last_authorized: "Last Authorized"
|
||||||
no_applications_html: "You have not yet authorized any %{oauth2} applications."
|
no_applications_html: "You have not yet authorized any %{oauth2} applications."
|
||||||
oauth_2: "OAuth 2"
|
oauth_2: "OAuth 2"
|
||||||
application:
|
application:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue