2019-12-19 02:00:32 -08:00
|
|
|
%html{lang: 'en'}
|
2013-01-07 09:04:09 +01:00
|
|
|
%head
|
2017-03-11 13:25:39 +05:30
|
|
|
%meta{charset: 'utf-8'}
|
2019-12-19 02:00:32 -08:00
|
|
|
%meta{name: 'viewport', content: 'width=device-width, initial-scale=1'}
|
2019-12-19 02:36:42 -08:00
|
|
|
%title= content_for?(:title) ? strip_tags( yield(:title) ) : (ENV['OSEM_NAME'] || 'OSEM')
|
2019-12-19 02:00:32 -08:00
|
|
|
%meta{content: 'Snap!Con -- A conference all about Snap!, a programing language from UC Berkeley.', name: 'description'}
|
|
|
|
|
%meta{content: 'Michael Ball, Brian Harvey, Jens Moenig, Bernat Romagosa, Dan Garcia, Lauren Mock', name: 'author'}
|
2017-03-11 13:25:39 +05:30
|
|
|
= stylesheet_link_tag "application", media: 'all'
|
2013-01-07 09:04:09 +01:00
|
|
|
= javascript_include_tag "application"
|
2015-01-21 20:12:57 +02:00
|
|
|
|
2013-01-07 09:04:09 +01:00
|
|
|
= csrf_meta_tags
|
2014-11-18 00:58:43 +01:00
|
|
|
= content_for(:script_head)
|
2017-11-12 20:43:02 -08:00
|
|
|
- if ENV['OSEM_TRANSIFEX_APIKEY']
|
|
|
|
|
:javascript
|
|
|
|
|
window.liveSettings = {
|
|
|
|
|
api_key: "#{ENV['OSEM_TRANSIFEX_APIKEY']}",
|
|
|
|
|
picker: "bottom-right",
|
|
|
|
|
detectlang: true,
|
|
|
|
|
autocollect: true
|
|
|
|
|
};
|
|
|
|
|
= javascript_include_tag "//cdn.transifex.com/live.js"
|
2014-11-18 00:58:43 +01:00
|
|
|
|
2013-01-07 09:04:09 +01:00
|
|
|
= yield(:head)
|
2020-07-14 18:15:01 -07:00
|
|
|
- if @conference && @conference.custom_css
|
2020-07-14 17:43:48 -07:00
|
|
|
%style{type: 'text/css'}
|
|
|
|
|
= @conference.custom_css
|
|
|
|
|
|
2018-10-23 19:14:31 -07:00
|
|
|
%body{ class: ("conference-#{@conference.short_title}" if @conference) }
|
2017-07-25 08:16:44 +05:30
|
|
|
= 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'
|
2019-12-19 02:36:42 -08:00
|
|
|
- else
|
2014-11-14 11:58:36 +01:00
|
|
|
#messages
|
2014-11-18 00:58:43 +01:00
|
|
|
.container
|
|
|
|
|
= render 'layouts/messages'
|
2020-07-11 01:50:17 -07:00
|
|
|
= yield :additional_messages
|
2014-11-14 11:58:36 +01:00
|
|
|
#content
|
|
|
|
|
= yield
|
2018-03-16 16:21:59 -07:00
|
|
|
|
|
|
|
|
= yield :modals
|
|
|
|
|
|
2013-06-26 15:59:56 +02:00
|
|
|
#footer
|
|
|
|
|
.container
|
2014-03-17 16:36:32 +01:00
|
|
|
%p.muted.text-center
|
2014-04-23 15:45:55 +02:00
|
|
|
%small
|
|
|
|
|
This tool is
|
2018-02-08 22:29:58 -08:00
|
|
|
#{link_to "free software", "http://www.gnu.org/philosophy/free-sw.html"},
|
2014-04-23 15:45:55 +02:00
|
|
|
released under the
|
2018-02-08 22:29:58 -08:00
|
|
|
#{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
|
2019-12-19 02:00:32 -08:00
|
|
|
#{link_to "GitHub", "https://github.com/snap-cloud/snapcon"}. This site is a modification of #{link_to "OSEM", "https://github.com/openSUSE/osem"}.
|
2018-02-08 22:29:58 -08:00
|
|
|
- if ENV["SKYLIGHT_PUBLIC_DASHBOARD_URL"].present?
|
|
|
|
|
Performance data is available on
|
|
|
|
|
#{link_to "Skylight", ENV["SKYLIGHT_PUBLIC_DASHBOARD_URL"]}.
|
2017-11-29 15:29:06 -08:00
|
|
|
= yield :script_body
|
2018-12-19 12:59:52 -08:00
|
|
|
= yield :charts_js
|
2014-11-12 10:45:44 +01:00
|
|
|
= piwik_tracking_tag
|