Bootstrap 3 setup.

This commit is contained in:
Ilya Konanykhin
2016-12-20 17:09:56 +06:00
parent 40a22e8b78
commit 508a1d8d06
13 changed files with 29 additions and 99 deletions
+9 -16
View File
@@ -1,29 +1,22 @@
!!! 5
%html{:lang => "en"}
%html{lang: 'en'}
%head
%meta{:charset => "utf-8"}/
%meta{ name: "viewport", content: "width=device-width", "initial-scale" => "1.0"}
%title= content_for?(:title) ? yield(:title) : "Velocipede"
%meta{charset: 'utf-8'}/
%meta{name: 'viewport', content: 'width=device-width', "initial-scale": '1.0'}
%title= content_for?(:title) ? yield(:title) : 'Velocipede'
= csrf_meta_tags
= stylesheet_link_tag "bootstrap_and_overrides", "datepicker", "bootstrap-timepicker", :media => "all"
= stylesheet_link_tag 'application', media: 'all'
/[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
:css
body {
padding-top: 5px;
}
.x-boundlist-item {
white-space: nowrap;
}
= javascript_include_tag 'http://html5shim.googlecode.com/svn/trunk/html5.js'
%body
.container
.content
- if flash[:notice]
%p{:class => 'notice'}= flash[:notice]
%p{class: 'notice'}= flash[:notice]
- if flash[:alert]
%p{:class => 'alert'}= flash[:alert]
%p{class: 'alert'}= flash[:alert]
.row
.span12
= yield
@@ -31,5 +24,5 @@
%footer
%p © BikeShed #{Time.now.year}
= javascript_include_tag "application"
= javascript_include_tag 'application'
= javascript_include_tag params[:controller]