Skip to content
Snippets Groups Projects
Commit f2126c9a authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

clean welcome index

parent 7a325a74
No related branches found
No related tags found
No related merge requests found
class WelcomeController < ApplicationController
def index
@carousel = []
@general = []
mainPage = main_page_repository.all.first
@carousel = carousel_repository.all
@general = mainPage["highlights"].take(3).collect do |id|
learning_object_repository.find(id)
end
@carousel = carousel_repository.all || []
@highlights = learning_object_repository.all_by_score_from_offset_to_limit 0, 6
end
......
......@@ -27,7 +27,6 @@
<div class="container">
<div class="carousel-caption">
<h1><%= link_to highlight.title, highlight.url, style: 'color: white;' %></h1>
</div>
</div>
</div>
......@@ -36,14 +35,6 @@
</div>
<% end %>
</div>
<div class="row mainpage-highlights">
<% if @general.present? %>
<ul class="list-unstyled">
<h2>Destaques</h2>
<%= render @general, orientation: 'horizontal' %>
<% end %>
</ul>
</div>
</div>
<% if !user_signed_in? %>
<div class="registration-banner col-md-3 col-md-offset-1 hidden-xs hidden-sm">
......
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