]> git.openstreetmap.org Git - rails.git/commitdiff
Link to username in "Send message to" message
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 14 Sep 2009 19:32:29 +0000 (19:32 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 14 Sep 2009 19:32:29 +0000 (19:32 +0000)
app/views/message/new.html.erb

index 9ae756f833d6daa5f22d5420112bd6e9cf47a5fe..151cd275936ab6fd25c4e7ae6de4bec6ac6ceb6b 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%= t'message.new.send_message_to', :name => h(@to_user.display_name) %></h2>
+<h2><%= t'message.new.send_message_to', :name => link_to(h(@to_user.display_name), {:controller => 'user', :action => 'view', :display_name => @to_user.display_name}) %></h2>
 
 <%= error_messages_for 'message' %>