X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b25a468e3c0aeb868f46ea758d4cf33ad7890bcb..13ef6a2df1b4d6a807beb6b107e07a62b78f906c:/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..6b4d9c177 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,8 +49,7 @@
<% 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' %>