]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth2_authorized_applications/index.html.erb
336de14060d7f9a106b213f6926a061019812dc0
[rails.git] / app / views / oauth2_authorized_applications / index.html.erb
1 <% content_for :heading do %>
2   <h1><%= t ".title" %></h1>
3 <% end %>
4
5 <% if @applications.length > 0 %>
6   <table class="table table-borderless table-striped">
7     <thead>
8       <th><%= t ".application" %></th>
9       <th><%= t ".permissions" %></th>
10       <th></th>
11     </thead>
12     <tbody>
13       <%= render :partial => "application", :collection => @applications %>
14     </tbody>
15   </table>
16 <% else %>
17   <p><%= t ".no_applications_html", :oauth2 => link_to(t(".oauth_2"), "https://oauth.net/2/") %></p>
18 <% end %>