]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/logout.html.erb
Throw an exception instead of logging to the console
[rails.git] / app / views / user / logout.html.erb
index e6d0dec597ba1ff9eff6595ac98e1db9684921ce..bb67d15819fd7bb45a98097d8c219ae85e0f6edb 100644 (file)
@@ -1,5 +1,8 @@
-<h1><%= t 'user.logout.heading' %></h1>
-<% form_tag :action => "logout" do %>
+<% content_for :heading do %>
+  <h1><%= t 'user.logout.heading' %></h1>
+<% end %>
+
+<%= form_tag :action => "logout" do %>
   <%= hidden_field_tag("referer", h(params[:referer])) %>
   <%= hidden_field_tag("session", request.session_options[:id]) %>
   <%= submit_tag t('user.logout.logout_button') %>