move check if user is logged in out of template

This commit is contained in:
pixeldesu 2015-08-28 16:36:49 +02:00
parent 8c5badf0b8
commit a9ad31b285
3 changed files with 17 additions and 17 deletions

View File

@ -6,6 +6,8 @@ class StaticController < ApplicationController
format.html format.html
format.js format.js
end end
else
return render 'static/front'
end end
end end

View File

@ -1,3 +1,4 @@
- provide(:title, "#{APP_CONFIG['site_name']}")
.jumbotron.j2-jumbo.text-center.particle-jumbotron .jumbotron.j2-jumbo.text-center.particle-jumbotron
#particles #particles
.particle-content .particle-content

View File

@ -1,7 +1,6 @@
- provide(:title, "#{APP_CONFIG['site_name']}") - provide(:title, "#{APP_CONFIG['site_name']}")
- if user_signed_in? = render 'static/mobile_nav'
= render 'static/mobile_nav' .container.j2-page
.container.j2-page
.col-md-3.col-sm-4 .col-md-3.col-sm-4
= render 'shared/sidebar' = render 'shared/sidebar'
.col-md-9.col-xs-12.col-sm-8.j2-col-reset .col-md-9.col-xs-12.col-sm-8.j2-col-reset
@ -16,5 +15,3 @@
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @timeline.current_page }} %button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @timeline.current_page }}
Load more Load more
.visible-xs= render 'shared/links' .visible-xs= render 'shared/links'
- else
= render 'static/front'