]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/logout.html.erb
Refactor the third-party login form to use bootstrap
[rails.git] / app / views / users / logout.html.erb
index 5d8e2de492420246e5c5b086937897a846db86c5..3ae4d14f6f84d87c18cc1ecbe43df0c6152c91c4 100644 (file)
@@ -2,7 +2,7 @@
   <h1><%= t ".heading" %></h1>
 <% end %>
 
-<%= form_tag :action => "logout" do %>
-  <%= hidden_field_tag("referer", h(params[:referer])) %>
-  <%= submit_tag t(".logout_button") %>
+<%= bootstrap_form_tag do |f| %>
+  <%= f.hidden_field :referer, :value => params[:referer] %>
+  <%= f.primary t(".logout_button") %>
 <% end %>