]> 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 6b988a8ec22500dfabd476f81d2c57a0e97b60c1..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 ".my friends" %></h2>
+      <h2><%= t ".followings" %></h2>
 
-      <% if friends.empty? %>
-        <%= t ".no friends" %>
+      <% if followings.empty? %>
+        <%= t ".no followings" %>
       <% else %>
         <nav class='secondary-actions mb-3'>
           <ul class='clearfix'>
-            <li><%= link_to t(".friends_changesets"), friend_changesets_path %></li>
-            <li><%= link_to t(".friends_diaries"), friends_diary_entries_path %></li>
+            <li><%= link_to t(".followed_changesets"), friend_changesets_path %></li>
+            <li><%= link_to t(".followed_diaries"), friends_diary_entries_path %></li>
           </ul>
         </nav>
-        <div id="friends-container">
-          <%= render :partial => "contact", :collection => friends, :locals => { :type => "friend" } %>
+        <div>
+          <%= render :partial => "contact", :collection => followings, :locals => { :type => "following" } %>
         </div>
       <% end %>