- provide(:title, @page.title) - provide(:meta_tags, @page.meta_tags) - provide(:meta_description, @page.meta_description) - if current_user_is_admin? %div.float-bottom = link_to 'Edit this page', edit_admin_page_path(@page) - if @sliders && @sliders.count == 1 %div.container-contain.main-background = image_tag @sliders.first.image.file.url if @sliders.first.image %div.header-text.slider-caption{style: 'padding:1em'} %h1{ style: 'margin-top:0'} = @sliders.first.header %p = @sliders.first.subheading - elsif @sliders = render 'slider', slider_elements: @sliders %h1 = @page.title %div.container-fluid.main-padding - if @sidebar %div.row %div.col-md-9.col-sm-9 = render partial: 'pages_cms/pages/main', locals: { page: @page } %div.col-md-3.col-sm-3.hidden-xs.back = raw @sidebar.content %hr - if @sidebar.all_posts %h5 Blog Posts - @page.account.articles.all.each do |article| = link_to article.title, article_path(article), class: 'btn btn-xs btn-default' %hr - if @sidebar.all_tags %h5 Tagged - @page.account.articles.pluck(:tags).flatten.uniq.each do |tag| = link_to tag, blog_path(current_site, tag), class: 'btn btn-xs btn-default' %hr - if @sidebar.all_pages %h5 Pages %ul.nav.nav-pills.nav-stacked - @page.account.pages.where(sidebar_show: true).each do |link| %li = link_to link.title, slugged_path(link) - @sidebar.links.each_line do |line| %li - splitted = line.split(',') = link_to splitted[0], splitted[1] - else = render partial: 'pages_cms/pages/main', locals: { page: @page }