]> git.openstreetmap.org Git - rails.git/commitdiff
Fix send message links for friends and nearby mappers. Fixes #2065.
authorTom Hughes <tom@compton.nu>
Tue, 14 Jul 2009 19:48:21 +0000 (19:48 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 14 Jul 2009 19:48:21 +0000 (19:48 +0000)
app/views/user/view.html.erb

index e50610037e7bde0d4f9ab4b17deedba56c1484e9..ff349858c9229fd42916982fd0786c5fed3207f1 100644 (file)
@@ -81,7 +81,7 @@
           <% end %>
         <% end %>
       </td>
-      <td class="message">(<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => @friend.id %>)</td>
+      <td class="message">(<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => @friend.display_name %>)</td>
       </tr>
       <%end%>
       </table>
           <%= t 'user.view.km away', :count => distance.round %>
         <% end %>
       </td>
-      <td class="message">(<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => nearby.id %>)</td>
+      <td class="message">(<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => nearby.display_name %>)</td>
       </tr>
       <% end %>
       </table>