From df5d6a81e7a251aa8b32a7e35c8070f43119a2c5 Mon Sep 17 00:00:00 2001 From: Victoria Wang Date: Mon, 27 Oct 2014 16:17:21 -0700 Subject: [PATCH] Only show All Activity/My Activity links if there is activity and user is following at least one person --- views/home.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/home.erb b/views/home.erb index 83946202..37c1f22c 100644 --- a/views/home.erb +++ b/views/home.erb @@ -3,7 +3,7 @@

Your Feed

- <% if !@events.empty? || params[:activity] == 'mine' %> + <% if !@events.empty? && (site.followings_dataset.count > 0) %> class="selected"<% end %>>All Activity    class="selected"<% end %>>