]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth2_applications/index.html.erb
Merge remote-tracking branch 'upstream/pull/3758'
[rails.git] / app / views / oauth2_applications / index.html.erb
1 <% content_for :heading do %>
2   <h1><%= t ".title" %></h1>
3 <% end %>
4
5 <%= render :partial => "settings_menu" %>
6
7 <% if @applications.length > 0 %>
8   <table class="table table-borderless table-striped">
9     <thead>
10       <tr>
11         <th><%= t ".name" %></th>
12         <th><%= t ".permissions" %></th>
13         <th></th>
14         <th></th>
15       </tr>
16     </thead>
17     <tbody>
18       <%= render :partial => "application", :collection => @applications %>
19     </tbody>
20   </table>
21 <% else %>
22   <p><%= t ".no_applications_html", :oauth2 => link_to(t(".oauth_2"), "https://oauth.net/2/") %></p>
23 <% end %>
24
25 <p>
26   <%= link_to t(".new"), new_oauth_application_path, :class => "btn btn-outline-primary" %>
27 </p>