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