X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7d45c2fd3c1a968de487de1afab947a06424d22b..800f014486588b01eaaeca69be327b7e2c40ed43:/app/views/diary_entry/view.html.erb diff --git a/app/views/diary_entry/view.html.erb b/app/views/diary_entry/view.html.erb index b8621130a..1bce441b4 100644 --- a/app/views/diary_entry/view.html.erb +++ b/app/views/diary_entry/view.html.erb @@ -13,8 +13,8 @@ <%= error_messages_for 'diary_comment' %> - <%= form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %> - <%= f.text_area :body, :cols => 80, :rows => 5 %> + <%= form_for :diary_comment, :url => { :action => 'comment' } do |f| %> + <%= richtext_area :diary_comment, :body, :cols => 80, :rows => 15 %>

<%= submit_tag t('diary_entry.view.save_button') %> @@ -22,5 +22,5 @@ <% end %> <%= if_not_logged_in(:div) do %> -

<%= t("diary_entry.view.login_to_leave_a_comment", :login_link => link_to(t("diary_entry.view.login"), :controller => 'user', :action => 'login', :referer => request.fullpath)) %>

+

<%= raw t("diary_entry.view.login_to_leave_a_comment", :login_link => link_to(t("diary_entry.view.login"), :controller => 'user', :action => 'login', :referer => request.fullpath)) %>

<% end %>