]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/message/new.html.erb
Fix exception with GPX and RSS notes#index when no notes are found
[rails.git] / app / views / message / new.html.erb
index ed95e2252fc080e725f359bc476c3a2e85ee911a..96f6b080d945823db4f7c948b39599e06aea3f6d 100644 (file)
@@ -1,4 +1,6 @@
-<h2><%= raw(t'message.new.send_message_to', :name => link_to(h(@this_user.display_name), {:controller => 'user', :action => 'view', :display_name => @this_user.display_name})) %></h2>
+<% content_for :heading do %>
+  <h2><%= raw(t'message.new.send_message_to', :name => link_to(h(@this_user.display_name), {:controller => 'user', :action => 'view', :display_name => @this_user.display_name})) %></h2>
+<% end %>
 
 <%= error_messages_for 'message' %>
 
 
 <%= error_messages_for 'message' %>