X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2cbcabb3f6992904903a72dfbcef624bd391a314..8dbaf76e7cbdaa3aa0c6a9ac8d1fb886c1fe9fcd:/app/views/diary_entry/new.rhtml
diff --git a/app/views/diary_entry/new.rhtml b/app/views/diary_entry/new.rhtml
index d93e3e023..0a5203a66 100644
--- a/app/views/diary_entry/new.rhtml
+++ b/app/views/diary_entry/new.rhtml
@@ -11,10 +11,13 @@
<%= f.text_area :body, :cols => 80 %> |
- Location |
-
- Latitude: <%= f.text_field :latitude, :size => 20, :id => "latitude" %> Longitude: <%= f.text_field :longitude, :size => 20, :id => "longitude" %> use map |
-
+ Location |
+
+
+ Latitude: <%= f.text_field :latitude, :size => 20, :id => "latitude" %> Longitude: <%= f.text_field :longitude, :size => 20, :id => "longitude" %>
+ use map
+ |
+
|
<%= submit_tag 'Save' %> |
@@ -23,29 +26,30 @@
<% end %>
<% if @user.home_lat.nil? or @user.home_lon.nil? %>
- <% lon = h(params['lon']) || '-0.1' %>
- <% lat = h(params['lat']) || '51.5' %>
- <% zoom = h(params['zoom']) || '4' %>
+ <% lon = h(params['lon'] || '-0.1') %>
+ <% lat = h(params['lat'] || '51.5') %>
+ <% zoom = h(params['zoom'] || '4') %>
<% else %>
<% lon = @user.home_lon %>
<% lat = @user.home_lat %>
<% zoom = '12' %>
<% end %>
-
+<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
+<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>