]> 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 1a991f0c6de004cc780a209bd8fe9be999ebc01e..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">
@@ -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>