]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth_clients/edit.html.erb
Avoid unnecessary arrays
[rails.git] / app / views / oauth_clients / edit.html.erb
index 855fc03d85b6ae1e625426c22098f65cafb07f1f..d6211778babec739bca6d21d0a76beb90cdc3c7f 100644 (file)
@@ -1,6 +1,8 @@
-<h1><%= t'oauth.client_application.edit.title' %></h1>
-<% form_for :client_application, @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
-       <%= render :partial => "form", :locals => { :f => f } %>
-       <br/>
-       <%= submit_tag t'oauth.client_application.edit.submit' %>
+<% content_for :heading do %>
+  <h1><%= t ".title" %></h1>
+<% end %>
+
+<%= form_for @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
+  <%= render :partial => "form", :locals => { :f => f } %>
+  <%= submit_tag t ".submit" %>
 <% end %>