]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/message/new.html.erb
Remove hard coded assumption that layer zero is mapnik
[rails.git] / app / views / message / new.html.erb
index f771f619bb2c19edb418f57cb11035c07b68fc81..ed95e2252fc080e725f359bc476c3a2e85ee911a 100644 (file)
@@ -1,19 +1,19 @@
-<h2><%= t'message.new.send_message_to', :name => h(@to_user.display_name) %></h2>
+<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>
 
 <%= error_messages_for 'message' %>
 
-<% form_for :message, :url => { :action => "new", :display_name => @to_user.display_name } do |f| %>
+<%= form_for :message, :url => { :action => "new", :display_name => @this_user.display_name } do |f| %>
   <table>
     <tr valign="top">
-      <th><%= t'message.new.subject' %></th>
-      <td><%= f.text_field :title, :size => 60, :value => @title %></td>
+      <td class="fieldName"><%= t'message.new.subject' %></td>
+      <td><%= f.text_field :title, :size => 60, :value => @subject %></td>
     </tr>
     <tr valign="top">
-      <th><%= t'message.new.body' %></th>
-      <td><%= f.text_area :body, :cols => 80, :value => @body %></td>
+      <td class="fieldName"><%= t'message.new.body' %></td>
+      <td><%= richtext_area :message, :body, :cols => 80, :value => @body %></td>
     </tr>
     <tr>
-      <th></th>
+      <td></td>
       <td><%= submit_tag t('message.new.send_button') %></td>
     </tr>
   </table>