add theme1 with subnavigation first setup kind of ugly layout

This commit is contained in:
2015-10-12 18:09:33 +02:00
parent ea287f2305
commit a3b3536adc
8 changed files with 103 additions and 4 deletions
@@ -0,0 +1,33 @@
doctype html
html lang=I18n.locale
head
title= site_page_title
= render 'meta'
= csrf_meta_tags
/! Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
= stylesheet_link_tag "theme1/application", :media => "all"
link href="/favicon.ico" rel="shortcut icon"
link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'
body
.header-nav-banner
= render 'theme1/header'
#content-header.show-for-large-up
.left
.right
.container
.top-ribbon
#main-wrap.with-subnavigation
.container
.row
.small-12.medium-4.large-3.columns
#page-subnavigation= render "theme1/sub_navigation"
.small-12.medium-8.large-9.columns.main-inner
= render 'theme1/alerts'
- if @page && @page.title.present?
h1.page-title= @page.title
= yield
= render 'theme1/footer'
= javascript_include_tag "theme1/application"
@@ -0,0 +1,6 @@
ul
- for ancestor in @page.ancestors
li.ancestor= link_to ancestor.menu_text.presence || ancestor.title, go_to_page_path(ancestor)
/li.current[class=(@sub_pages.present? ? :ancestor : nil)]= link_to @page.menu_text.presence || @page.title, go_to_page_path(@page)
- for sub_page in @sub_pages || []
li[ class=(sub_page == @page ? [:current, :subpage] : [:subpage])]= link_to sub_page.menu_text.presence || sub_page.title, go_to_page_path(sub_page)