osem-fcy/app/views/layouts/application.html.haml

51 lines
1.7 KiB
Text
Raw Normal View History

%html{xmlns: 'http://www.w3.org/1999/html'}
2013-01-07 09:04:09 +01:00
%head
%meta{charset: 'utf-8'}
%meta{name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1'}
2022-05-06 14:27:15 +02:00
%title= content_for?(:title) ? yield(:title) : ENV.fetch('OSEM_NAME', 'OSEM')
%meta{content: '', name: 'description'}
%meta{content: '', name: 'author'}
= stylesheet_link_tag "application", media: 'all'
2013-01-07 09:04:09 +01:00
= javascript_include_tag "application"
2013-01-07 09:04:09 +01:00
= csrf_meta_tags
= content_for(:script_head)
2022-05-06 14:27:15 +02:00
- if ENV.fetch('OSEM_TRANSIFEX_APIKEY', nil)
:javascript
window.liveSettings = {
api_key: "#{ENV['OSEM_TRANSIFEX_APIKEY']}",
picker: "bottom-right",
detectlang: true,
autocollect: true
};
= javascript_include_tag "//cdn.transifex.com/live.js"
2013-01-07 09:04:09 +01:00
= yield(:head)
%body{ class: ("conference-#{@conference.short_title}" if @conference) }
= render 'layouts/navigation', conference: @conference
2014-05-22 18:19:07 +02:00
-# Admin area
- if controller.class.name.split("::").first=="Admin"
= render 'layouts/admin'
-else
#messages
.container
= render 'layouts/messages'
#content
= yield
= yield :modals
#footer
.container
%p.muted.text-center
2014-04-23 15:45:55 +02:00
%small
This tool is
#{link_to "free software", "http://www.gnu.org/philosophy/free-sw.html"},
2014-04-23 15:45:55 +02:00
released under the
#{link_to "MIT license", "http://opensource.org/licenses/MIT"}.
2014-04-23 15:45:55 +02:00
You can run, copy, distribute, study, change and improve it.
The source code and the developers are on
#{link_to "GitHub", "https://github.com/openSUSE/osem"}.
2017-11-29 15:29:06 -08:00
= yield :script_body
= yield :charts_js