osem-fcy/app/views/layouts/application.html.haml
Stephanie Wilkinson 1537d5f290 add styling
2017-09-29 14:03:21 -07:00

40 lines
1.3 KiB
Text

%html{xmlns: 'http://www.w3.org/1999/html'}
%head
%meta{charset: 'utf-8'}
%meta{name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1'}
%title= content_for?(:title) ? yield(:title) : (ENV['OSEM_NAME'] || 'OSEM')
= javascript_include_tag '//use.typekit.net/uzo8iqp.js'
%script{ type: 'text/javascript', src: '//use.typekit.net/uzo8iqp.js' }
%script{ type: 'text/javascript' } try{Typekit.load();}catch(e){}
%meta{content: '', name: 'description'}
%meta{content: '', name: 'author'}
= javascript_include_tag "application"
= stylesheet_link_tag "application", media: 'all'
= csrf_meta_tags
:javascript
window.liveSettings = {
api_key: "#{ENV['OSEM_TRANSIFEX_APIKEY']}",
picker: "bottom-right",
detectlang: true,
autocollect: true
};
= content_for(:script_head)
= javascript_include_tag "//cdn.transifex.com/live.js"
= yield(:head)
%body
= render 'layouts/navigation', conference: @conference
-# Admin area
- if controller.class.name.split("::").first=="Admin"
= render 'layouts/admin'
-else
#messages
.container
= render 'layouts/messages'
#content
= yield
#footer
.container
= content_for(:script_body)
= piwik_tracking_tag