From 4dc92b227f3a6b33e9c60ae142aeed0350559674 Mon Sep 17 00:00:00 2001 From: Mauricio Giacomini Girardello <mauriciogiacomini4@gmail.com> Date: Mon, 19 Oct 2015 10:12:39 -0200 Subject: [PATCH] displaying highlights only if exists --- app/views/welcome/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index b1ab075a2..04d983fa9 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -79,7 +79,7 @@ <% @subjects.each do |subject| %> <div class="row mainpage-subject-element"> <h4><b><%= subject.name %></b></h4> - <%= render subject.highlights.first, orientation: 'vertical' %> + <%= render subject.highlights.first, orientation: 'vertical' unless subject.highlights.first.nil? %> <p class="more"> <a href="#">Ver Mais</a> </p> -- GitLab