]> git.openstreetmap.org Git - rails.git/commitdiff
Fix an accidental CSS match that broke user popups on maps
authorTom Hughes <tom@compton.nu>
Sun, 31 Jul 2011 15:21:35 +0000 (16:21 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 31 Jul 2011 15:21:35 +0000 (16:21 +0100)
app/views/user/view.html.erb
public/stylesheets/common.css

index 5de2beff7c30a1c0fb92a36aa349922a13cb655c..834e8571b6cc358da50b4f7a58869db5181130bb 100644 (file)
@@ -92,7 +92,7 @@
 <% if @user and @this_user.id == @user.id %>
   <div id="map" class="user_map">
     <% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>
 <% if @user and @this_user.id == @user.id %>
   <div id="map" class="user_map">
     <% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>
-      <p><%= t 'user.view.if set location', :settings_link => (link_to t('user.view.settings_link_text'), :controller => 'user', :action => 'account', :display_name => @user.display_name) %></p>
+      <p id="no_home_location"><%= t 'user.view.if set location', :settings_link => (link_to t('user.view.settings_link_text'), :controller => 'user', :action => 'account', :display_name => @user.display_name) %></p>
     <% else %>
       <%= render :partial => 'map', :locals => { :setting_location => false, :show_other_users => true } %>
     <% end %>
     <% else %>
       <%= render :partial => 'map', :locals => { :setting_location => false, :show_other_users => true } %>
     <% end %>
index fd4dfac6a54c4cdce341da03fc478804c1d58a1b..2a06085b33d7e747e9874838ff789a1070062c91 100644 (file)
@@ -857,7 +857,7 @@ p#contributorGuidance {
   height: 400px; 
 }
 
   height: 400px; 
 }
 
-.user_view .user_map p {
+.user_view .user_map p#no_home_location {
   position: absolute;
   top: 0px;
   bottom: 0px;
   position: absolute;
   top: 0px;
   bottom: 0px;