X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b25a468e3c0aeb868f46ea758d4cf33ad7890bcb..c2333c603e1ad3352109a05150f2c47ad468f7ef:/app/views/diary_entry/edit.html.erb
diff --git a/app/views/diary_entry/edit.html.erb b/app/views/diary_entry/edit.html.erb
index 8728427be..54ed0cc70 100644
--- a/app/views/diary_entry/edit.html.erb
+++ b/app/views/diary_entry/edit.html.erb
@@ -10,11 +10,11 @@
<%= t 'diary_entry.edit.body' -%> |
- <%= f.text_area :body, :cols => 80 %> |
+ <%= richtext_area :diary_entry, :body, :cols => 80, :format => @diary_entry.body_format %> |
<%= t 'diary_entry.edit.language' -%> |
- <%= f.collection_select :language_code, Language.find(:all, :order => :english_name), :code, :name %> |
+ <%= f.collection_select :language_code, Language.order(:english_name), :code, :name %> |
<%= t 'diary_entry.edit.location' -%> |
@@ -49,23 +49,20 @@
<% zoom = '12' %>
<% end %>
-<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
-<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
+<%= javascript_include_tag 'openlayers.js' %>
<%= javascript_include_tag 'map.js' %>