Skip to content
Snippets Groups Projects
Commit 4dc92b22 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

displaying highlights only if exists

parent e6bd9071
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<% @subjects.each do |subject| %> <% @subjects.each do |subject| %>
<div class="row mainpage-subject-element"> <div class="row mainpage-subject-element">
<h4><b><%= subject.name %></b></h4> <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"> <p class="more">
<a href="#">Ver Mais</a> <a href="#">Ver Mais</a>
</p> </p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment