From 488f93d2ea57860bcb72f1cdf3ace3cc6aa7eb74 Mon Sep 17 00:00:00 2001 From: Mateus Rambo Strey <mars11@inf.ufpr.br> Date: Wed, 11 Nov 2015 00:44:36 -0200 Subject: [PATCH] hide when there is no collections --- app/views/collections/_group.html.erb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/views/collections/_group.html.erb b/app/views/collections/_group.html.erb index 4e3c131b6..e05576080 100644 --- a/app/views/collections/_group.html.erb +++ b/app/views/collections/_group.html.erb @@ -1,11 +1,13 @@ -<div class="row" style="margin-bottom: 40px;"> - <div class="col-md-12"> - <h3><%= title %></h3> +<% unless collections.blank? %> + <div class="row" style="margin-bottom: 40px;"> + <div class="col-md-12"> + <h3><%= title %></h3> - <div style="margin-top: 10px;"> - <% collections.each do |collection| %> - <%= render collection %> - <% end %> + <div style="margin-top: 10px;"> + <% collections.each do |collection| %> + <%= render collection %> + <% end %> + </div> </div> </div> -</div> +<% end %> -- GitLab