mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Only show All Activity/My Activity links if there is activity and user is following at least one person
This commit is contained in:
parent
87e97b9cef
commit
df5d6a81e7
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
<div class="col col-66">
|
||||
<h3>Your Feed</h3>
|
||||
<div class="feed-filter">
|
||||
<% if !@events.empty? || params[:activity] == 'mine' %>
|
||||
<% if !@events.empty? && (site.followings_dataset.count > 0) %>
|
||||
<a href="/" <% if params[:activity] != 'mine' %>class="selected"<% end %>>All Activity</a>
|
||||
|
||||
<a href="/?activity=mine" <% if params[:activity] == 'mine' %>class="selected"<% end %>>
|
||||
|
|
Loading…
Add table
Reference in a new issue