]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth2_applications/index.html.erb
Rework some of the OAuth2 views, adding links and messages when there are no applicat...
[rails.git] / app / views / oauth2_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 ".name" %></th>
9       <th><%= t ".permissions" %></th>
10       <th></th>
11       <th></th>
12     </thead>
13     <tbody>
14       <%= render :partial => "application", :collection => @applications %>
15     </tbody>
16   </table>
17 <% else %>
18   <p><%= t ".no_applications_html", :oauth2 => link_to(t(".oauth_2"), "https://oauth.net/2/") %></p>
19 <% end %>
20
21 <p>
22   <%= link_to t(".new"), new_oauth_application_path, :class => "btn btn-outline-primary" %>
23 </p>