Skip to content

Instantly share code, notes, and snippets.

@mcrider
Created October 7, 2013 20:39
Show Gist options
  • Save mcrider/6874576 to your computer and use it in GitHub Desktop.
Save mcrider/6874576 to your computer and use it in GitHub Desktop.
application.html.slim
doctype html
/[if IE 8]
| <html class="no-js lt-ie9">
/[if IE 9]
| <html class="ie9">
html.no-js
/! <![endif]
head
meta charset="utf-8"
meta name="viewport" content="width=device-width"
title
| Hale Makua Health Services
- if @page
= " | " + @page.title
- if @meta_description.present?
meta name="description" content="#{@meta_description}"
= stylesheet_link_tag "application", media: "all"
= javascript_include_tag "custom.modernizr.js"
= csrf_meta_tags
script type="text/javascript" src="//use.typekit.net/vmq3ssh.js"
script type="text/javascript" try{Typekit.load();}catch(e){}
body
.container
== render partial: 'shared/header'
= yield
== render partial: 'shared/footer'
@mcrider
Copy link
Author

mcrider commented Oct 7, 2013

And the new _header shared partial:

#search-bar
  .row
    .large-12.columns
      ul.hide-for-small.hide-for-medium
        li = link_to("Careers", page_path('careers'))
        li = link_to("Resources for Physicians", page_path('resources-for-physicians'))
        li = link_to("Contact", page_path('contact'))
        li
          form action="/search" method="GET"
            input type="search" name="q"

#branding
  .row
    .large-8.columns
      a.svg href="/"
        object data="assets/logo.svg" type="image/svg+xml"
          = image_tag("logo.png")
      a href="/"
        = image_tag("branding-type.png")
    .large-4.columns.eden
      a href="/our-philosophy#edenalternative" = image_tag("eden.png")
      p Hale Makua is an
      a href="/our-philosophy#edenalternative": span Eden Alternative Registered Home

.row
  .columns.contain-to-grid
      nav.top-bar
          ul.title-area
              li.name
              li.toggle-topbar.menu-icon MENU
          section.top-bar-section
              ul.left
                  == render partial: 'rcms/positions/position', collection: Rcms::Position.roots.order('position DESC'), locals: { nested: true }
              ul.right
                li#donate
                  a href="https://halemakua.thankyou4caring.org/sslpage.aspx?pid=298"
                   = image_tag("icons/heart.png")
                   |  Donate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment