]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/dashboards/show.html.erb
Link to first and last versions from element pages
[rails.git] / app / views / dashboards / show.html.erb
index d0344ce79bd61a7c773994328dcc915bf3cc8656..744661dfdbeb7bbd53a5ff812bfcf2a81b209030 100644 (file)
@@ -5,7 +5,7 @@
 <div class="row">
   <% if current_user and @user.id == current_user.id %>
     <div class="col-md order-md-last">
-      <% if @user.home_lat.nil? or @user.home_lon.nil? %>
+      <% if !@user.home_location? %>
         <div id="map" class="content_map border border-grey">
           <p class="m-3"><%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %></p>
         </div>