osem-fcy/app/views/layouts/application.html.haml
2014-06-26 20:39:46 +05:30

47 lines
1.7 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) : "OSEM"
%meta{:content => "", :name => "description"}
%meta{:content => "", :name => "author"}
= stylesheet_link_tag "application", :media => "all"
= javascript_include_tag "application"
= csrf_meta_tags
:javascript
$(function() {
$('.dropdown input, .dropdown label').click(function(e) {
e.stopPropagation();
});
});
= yield(:head)
%body{ data: (content_for?(:splash_nav) ? {spy: 'scroll', offset: 0, target: 'splash-nav'} : {} ) }
= render 'layouts/navigation'
-# Admin area
- if controller.class.name.split("::").first=="Admin"
= render 'layouts/admin'
-else
.container#messages
.row
.col-md-12
= render 'layouts/messages'
- if content_for :splash
#content
= yield :splash
-else
.container#content
= yield
#footer
.container
%p.muted.text-center
%small
©#{Date.today.year}
= link_to "Matt Barringer.", "http://incoherent.de"
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"