]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth2_applications/show.html.erb
Merge pull request #3642 from Firefishy/forum-to-community
[rails.git] / app / views / oauth2_applications / show.html.erb
index e6fe3d3e8d4dd8e1da80ce97d1c77df9cb7f18fd..8d9c8516dfd297ad5494e946a082d464bd16631b 100644 (file)
@@ -2,6 +2,8 @@
   <h1><%= @application.name %></h1>
 <% end %>
 
+<%= render :partial => "settings_menu" %>
+
 <% secret = flash[:application_secret].presence || @application.plaintext_secret %>
 
 <table class="table table-borderless">
@@ -26,7 +28,7 @@
     <td>
       <ul class="list-unstyled mb-0">
         <% @application.scopes.each do |scope| -%>
-          <li><%= t "oauth.scopes.#{scope}" %></li>
+          <li><%= t "oauth.scopes.#{scope}" %> <code class="text-muted">(<%= scope %>)</code></li>
         <% end -%>
       </ul>
     </td>
@@ -42,3 +44,8 @@
     </td>
   </tr>
 </table>
+
+<div>
+  <%= link_to t(".edit"), edit_oauth_application_path(@application), :class => "btn btn-outline-primary" %>
+  <%= link_to t(".delete"), oauth_application_path(@application), { :method => :delete, :class => "btn btn-outline-danger", :data => { :confirm => t(".confirm_delete") } } %>
+</div>