openstreetmap-website/app/views/oauth2_authorized_applications/index.html.erb
2024-01-29 22:30:12 +00:00

23 lines
629 B
Text

<% content_for :heading do %>
<h1><%= t ".title" %></h1>
<% end %>
<%= render :partial => "settings_menu" %>
<% if @applications.length > 0 %>
<table class="table table-borderless table-striped">
<thead>
<tr>
<th><%= t ".application" %></th>
<th><%= t ".permissions" %></th>
<th><%= t ".last_authorized" %></th>
<th></th>
</tr>
</thead>
<tbody>
<%= render :partial => "application", :collection => @applications %>
</tbody>
</table>
<% else %>
<p><%= t ".no_applications_html", :oauth2 => link_to(t(".oauth_2"), "https://oauth.net/2/") %></p>
<% end %>