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
-2
View File
@@ -1,5 +1,3 @@
<%= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" %>
<h2>Forgot your password?</h2>
<br>
<br>
@@ -1,5 +1,3 @@
<%= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" %>
<h2>Edit <%= resource_name.to_s.humanize %></h2>
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
@@ -1,4 +1,3 @@
= stylesheet_link_tag "bootstrap_and_overrides", :media => "all"
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
= devise_error_messages!
.controls
-2
View File
@@ -1,5 +1,3 @@
<%= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" %>
<h2>Velocipede</h2>
<a href="http://madewithloveinbaltimore.org">Made with &hearts; in Baltimore</a>
<br>
+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 &copy; BikeShed #{Time.now.year}
= javascript_include_tag "application"
= javascript_include_tag 'application'
= javascript_include_tag params[:controller]
-1
View File
@@ -1,4 +1,3 @@
= stylesheet_link_tag "bootstrap_and_overrides", :media => "all"
%h2 Dashboard
%p