]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/show.html.erb
Refactoring
[rails.git] / app / views / users / show.html.erb
index 28dc07e0d2f4366bb50a648a173963ea7c8d0254..5090cbee07a2e90284e033221c94a594f8ba3d4a 100644 (file)
       <% content_for :head do %>
         <%= javascript_include_tag "user" %>
       <% end %>
-      <%
-        user_data = {
-          :lon => current_user.home_lon,
-          :lat => current_user.home_lat,
-          :icon => image_path("marker-red.png"),
-          :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
-        }
-      %>
+      <% user_data = {
+           :lon => current_user.home_lon,
+           :lat => current_user.home_lat,
+           :icon => image_path("marker-red.png"),
+           :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
+         } %>
       <%= content_tag "div", "", :id => "map", :class => "content_map", :data => { :user => user_data } %>
     <% end %>