2014-07-31 07:26:38 +02:00
|
|
|
!!!5
|
|
|
|
%html.no-js(lang="en"){:class => data.page.head_classes}
|
|
|
|
%head
|
|
|
|
%meta(charset="utf-8")/
|
|
|
|
%meta(http-equiv="X-UA-Compatible" content="IE=edge")/
|
|
|
|
%title= page_title
|
|
|
|
= partial "layouts/head/meta"
|
|
|
|
= partial "layouts/head/link"
|
|
|
|
= partial "layouts/head/css"
|
|
|
|
= partial "layouts/head/js"
|
|
|
|
|
|
|
|
%body{class: page_classes}
|
|
|
|
.page
|
|
|
|
= partial "layouts/roles/alert"
|
|
|
|
.pop-stripe
|
|
|
|
= partial "layouts/regions/banner"
|
|
|
|
= partial "layouts/regions/page_header"
|
|
|
|
|
|
|
|
.body
|
|
|
|
.container
|
|
|
|
.content
|
|
|
|
- if content_for?(:introduction)
|
|
|
|
%p.introduction= yield_content :introduction
|
|
|
|
|
|
|
|
%main.main.content-primary(role="main")
|
|
|
|
= yield
|
|
|
|
- if current_page.data.previous_page_url or current_page.data.next_page_url
|
|
|
|
%footer
|
|
|
|
%ul.pager
|
|
|
|
- if current_page.data.previous_page_url
|
|
|
|
%li.previous
|
|
|
|
- if current_page.data.previous_page_url == "index"
|
|
|
|
- previous = ""
|
|
|
|
- else
|
|
|
|
- previous = current_page.data.previous_page_url
|
|
|
|
= link_to "/styleguide/" + previous do
|
|
|
|
←
|
|
|
|
= current_page.data.previous_page_name
|
|
|
|
- if current_page.data.next_page_url
|
|
|
|
%li.next
|
|
|
|
= link_to "/styleguide/" + current_page.data.next_page_url do
|
|
|
|
= current_page.data.next_page_name
|
|
|
|
→
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- content_for :complementary do
|
|
|
|
- root_url = data.sitemap.url
|
|
|
|
%h3= link_to "Style Guide", "/styleguide"
|
|
|
|
%ul
|
|
|
|
- sitemap.resources.each do |page|
|
|
|
|
- if page.url =~ /styleguide/
|
|
|
|
- unless page.url =~ /assets/
|
|
|
|
- unless page.data.title == "Style Guide"
|
|
|
|
- unless page.data.title == "Responsive Test"
|
2014-11-14 20:17:23 +01:00
|
|
|
%li= link_to "#{page.data.title}", "#{root_url}#{page.url.gsub!(/(\/)+$/,'')}"
|
2014-07-31 07:26:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
- if content_for?(:complementary)
|
|
|
|
.complementary.content-secondary(role="complementary")= yield_content :complementary
|
|
|
|
|
|
|
|
|
|
|
|
- if content_for?(:section_middle)
|
|
|
|
%section.section-middle
|
|
|
|
.container= yield_content :section_middle
|
|
|
|
|
2018-03-16 00:03:56 +01:00
|
|
|
= partial "layouts/regions/release"
|
2014-07-31 07:26:38 +02:00
|
|
|
|
|
|
|
- if content_for?(:section_bottom)
|
|
|
|
%section.section-bottom
|
|
|
|
.container= yield_content :section_bottom
|
|
|
|
|
|
|
|
= partial "layouts/regions/contentinfo"
|
|
|
|
= partial "layouts/foot/js"
|