Skip to content

Commit

Permalink
Rename friends as followings
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 17, 2025
1 parent 5eb4c7c commit 42d622b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/dashboards/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
<%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %>
<% end %>

<% friends = @user.followings %>
<% 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'>
Expand All @@ -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 %>

Expand Down

0 comments on commit 42d622b

Please sign in to comment.