diff --git a/app/views/layouts/_sidenav.html.erb b/app/views/layouts/_sidenav.html.erb index 11a94471..5a6d6bb2 100644 --- a/app/views/layouts/_sidenav.html.erb +++ b/app/views/layouts/_sidenav.html.erb @@ -84,12 +84,11 @@ if content_type != Universe && @universe_scope @universe_scope.send(pluralized_name).count else - # ( - # current_user.send(pluralized_name) + - # current_user.send("contributable_#{pluralized_name}") + - # (content_type == Universe ? [] : content_type.where(universe_id: current_user.universes.pluck(:id))) - # ).uniq.count - current_user.send(pluralized_name).count + ( + current_user.send(pluralized_name) + + current_user.send("contributable_#{pluralized_name}") + + (content_type == Universe ? [] : content_type.where(universe_id: current_user.universes.pluck(:id))) + ).uniq.count end %>