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

63 lines
2 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"}
%title= content_for?(:title) ? yield(:title) : "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"
= csrf_meta_tags
:javascript
window.liveSettings = {
api_key: "<%= CONFIG['transifex_live_api_key'] %>",
picker: "bottom-right",
detectlang: true,
autocollect: true
};
2014-12-13 21:13:19 +02:00
$(document).ready(function() {
$("[class='switch-checkbox']").bootstrapSwitch();
});
$(document).ready(function() {
$('input[class="switch-checkbox"]').on('switchChange.bootstrapSwitch', function(event, state) {
url = "/admin/conference/" + this.name + "/events/" + this.value
$.ajax({
url: url,
type: 'PATCH',
data: { event: { is_highlight: state } },
dataType: "script"
});
});
});
= content_for(:script_head)
=# javascript_include_tag "//cdn.transifex.com/live.js"
2013-01-07 09:04:09 +01:00
= yield(:head)
%body
= render 'layouts/navigation'
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
#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"
released under the
=link_to "MIT license.", "http://opensource.org/licenses/MIT"
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"
= content_for(:script_body)
2014-11-12 10:45:44 +01:00
= piwik_tracking_tag