]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/dashboards/show.html.erb
Rename friends as followings
[rails.git] / app / views / dashboards / show.html.erb
index b1ca90e85425de3fa6ff844aa695e00752f59e9d..70dae774e86eef0a3e5e9567b2f75d46d9791755 100644 (file)
         <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %>
       <% end %>
 
-      <% friends = @user.friends %>
-      <% nearby = @user.nearby - friends %>
+      <% followings = @user.followings %>
+      <% nearby = @user.nearby - followings %>
     </div>
 
     <div class="col-md">
       <h2><%= t ".followings" %></h2>
 
-      <% if friends.empty? %>
+      <% if followings.empty? %>
         <%= t ".no followings" %>
       <% else %>
         <nav class='secondary-actions mb-3'>
@@ -39,7 +39,7 @@
           </ul>
         </nav>
         <div>
-          <%= render :partial => "contact", :collection => friends, :locals => { :type => "following" } %>
+          <%= render :partial => "contact", :collection => followings, :locals => { :type => "following" } %>
         </div>
       <% end %>