mirror of https://github.com/fspc/BikeShed-1.git
Jason Denney
8 years ago
committed by
GitHub
14 changed files with 269 additions and 259 deletions
@ -1 +1 @@ |
|||
ruby-1.9.3-p374 |
|||
2.1.1 |
|||
|
@ -1,51 +1,50 @@ |
|||
source 'https://rubygems.org' |
|||
|
|||
gem 'rails', '3.2.13' |
|||
gem 'rails', '3.2.19' |
|||
|
|||
gem 'netzke-cancan' |
|||
gem 'netzke-core', '~>0.8.0' |
|||
gem 'netzke-basepack', '~>0.8.0' |
|||
gem 'netzke-core' |
|||
gem 'netzke-basepack' |
|||
|
|||
|
|||
gem 'acts_as_loggable', :git => 'https://github.com/spacemunkay/acts_as_loggable.git' |
|||
gem 'bootstrap-will_paginate', '~> 0.0.6' |
|||
gem 'bootstrap-will_paginate' |
|||
gem 'cancan' |
|||
gem 'decent_exposure', '~> 1.0.1' |
|||
gem 'devise', '~> 2.0.4' |
|||
gem 'haml-rails', '~> 0.3.4' |
|||
gem 'jquery-rails', '~> 2.0' |
|||
gem 'haml-rails' |
|||
gem 'jquery-rails' |
|||
gem 'pg', '~> 0.17.1' |
|||
gem 'will_paginate', '~> 3.0.3' |
|||
gem 'jbuilder', '~> 2.0.3' |
|||
gem 'will_paginate' |
|||
gem 'jbuilder' |
|||
|
|||
# Gems used only for assets and not required |
|||
# in production environments by default. |
|||
group :assets do |
|||
gem 'coffee-rails', '~> 3.2.1' |
|||
gem "twitter-bootstrap-rails", "~> 2.0.3" |
|||
|
|||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes |
|||
# gem 'therubyracer' |
|||
|
|||
gem 'uglifier', '>= 1.0.3' |
|||
gem 'coffee-rails' |
|||
# Use SCSS for stylesheets |
|||
gem 'sass-rails' |
|||
# Use bootstrap-sass for stylesheets |
|||
gem 'bootstrap-sass' |
|||
gem 'uglifier' |
|||
end |
|||
|
|||
group :development, :test do |
|||
gem 'rspec-rails', '~> 2.14.0' |
|||
gem 'factory_girl_rails', '~> 1.2' |
|||
gem 'pry', '~> 0.9.8' |
|||
gem 'faker', '~> 1.2.0' |
|||
gem 'rspec-rails' |
|||
gem 'factory_girl_rails' |
|||
gem 'pry' |
|||
gem 'faker' |
|||
end |
|||
|
|||
group :test do |
|||
gem 'shoulda-matchers', '~> 1.0.0' |
|||
# gem 'shoulda-matchers', '~> 1.0.0' |
|||
gem 'capybara', '~> 2.2.1' |
|||
gem 'poltergeist', '~> 1.5.0' |
|||
gem 'database_cleaner', '~> 1.2.0' |
|||
gem 'launchy', '~> 2.4.2' |
|||
gem 'spork', '~> 0.9.2' |
|||
gem 'spork' |
|||
#guard dependency for Mac OS 10 |
|||
gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i |
|||
gem 'guard-spork', '~> 1.5.1' |
|||
gem 'guard-rspec', '~> 4.2.6' |
|||
gem 'guard-spork' |
|||
gem 'guard-rspec' |
|||
end |
|||
|
After Width: | Height: | Size: 6.7 KiB |
@ -1,47 +0,0 @@ |
|||
@import "twitter/bootstrap/bootstrap"; |
|||
body { |
|||
padding-top: 60px; |
|||
padding-left: 20px; |
|||
} |
|||
|
|||
@import "twitter/bootstrap/responsive"; |
|||
|
|||
// Set the correct sprite paths |
|||
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png'); |
|||
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png'); |
|||
|
|||
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines) |
|||
// Note: If you use asset_path() here, your compiled boostrap_and_overrides.css will not |
|||
// have the proper paths. So for now we use the absolute path. |
|||
@fontAwesomeEotPath: '/assets/fontawesome-webfont.eot'; |
|||
@fontAwesomeWoffPath: '/assets/fontawesome-webfont.woff'; |
|||
@fontAwesomeTtfPath: '/assets/fontawesome-webfont.ttf'; |
|||
@fontAwesomeSvgPath: '/assets/fontawesome-webfont.svg'; |
|||
|
|||
// Font Awesome |
|||
@import "fontawesome"; |
|||
|
|||
// Your custom LESS stylesheets goes here |
|||
// |
|||
// Since bootstrap was imported above you have access to its mixins which |
|||
// you may use and inherit here |
|||
// |
|||
// If you'd like to override bootstrap's own variables, you can do so here as well |
|||
// See http://twitter.github.com/bootstrap/less.html for their names and documentation |
|||
// |
|||
// Example: |
|||
// @linkColor: #ff0000; |
|||
|
|||
[data-toggle="buttons-radio"] > .btn > input[type="radio"], |
|||
[data-toggle="buttons"] > .btn > input[type="checkbox"] { |
|||
display: none; |
|||
} |
|||
|
|||
.inline-block { |
|||
display: inline-block; |
|||
} |
|||
|
|||
.control-group.error .btn-group > .btn { |
|||
color: #b94a48; |
|||
border-color: #b94a48; |
|||
} |
@ -0,0 +1,31 @@ |
|||
body { |
|||
padding-top: 60px; |
|||
padding-left: 20px; |
|||
} |
|||
|
|||
|
|||
// Set the correct sprite paths |
|||
$iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png'); |
|||
$iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png'); |
|||
|
|||
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines) |
|||
// Note: If you use asset_path() here, your compiled boostrap_and_overrides.css will not |
|||
// have the proper paths. So for now we use the absolute path. |
|||
$fontAwesomeEotPath: '/assets/fontawesome-webfont.eot'; |
|||
$fontAwesomeWoffPath: '/assets/fontawesome-webfont.woff'; |
|||
$fontAwesomeTtfPath: '/assets/fontawesome-webfont.ttf'; |
|||
$fontAwesomeSvgPath: '/assets/fontawesome-webfont.svg'; |
|||
|
|||
[data-toggle="buttons-radio"] > .btn > input[type="radio"], |
|||
[data-toggle="buttons"] > .btn > input[type="checkbox"] { |
|||
display: none; |
|||
} |
|||
|
|||
.inline-block { |
|||
display: inline-block; |
|||
} |
|||
|
|||
.control-group.error .btn-group > .btn { |
|||
color: #b94a48; |
|||
border-color: #b94a48; |
|||
} |
@ -1,48 +1,52 @@ |
|||
<%= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" %> |
|||
<%= stylesheet_link_tag "bootstrap", :media => "all" %> |
|||
<%= stylesheet_link_tag "application", :media => "all" %> |
|||
<div class="container"> |
|||
<%= image_tag 'velo_logo.png' %> |
|||
<p><a href="http://madewithloveinbaltimore.org" class="made">Made with ♥ in Baltimore</a></p> |
|||
<br> |
|||
<br> |
|||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
|||
<div class="row"> |
|||
<div class="col-xs-12 col-sm-12 col-md-12"> |
|||
<div class="form-group"> |
|||
<%= f.text_field :username, placeholder: "Username", class: "form-control input-lg", autofocus: true %> |
|||
</div> |
|||
|
|||
<h2>Velocipede</h2> |
|||
<a href="http://madewithloveinbaltimore.org">Made with ♥ in Baltimore</a> |
|||
<br> |
|||
<br> |
|||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
|||
<div class="form-group"> |
|||
<%= f.text_field :username, placeholder: "Username", class: "form-control input-lg"%> |
|||
</div> |
|||
<div class="form-group"> |
|||
<%= f.password_field :password, placeholder: "Password", class: "form-control input-lg" %> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<%= f.password_field :password, placeholder: "Password", class: "form-control input-lg" %> |
|||
</div> |
|||
<div class="form-group remember"> |
|||
<% if devise_mapping.rememberable? -%> |
|||
<label> |
|||
<%= f.check_box :remember_me, class: 'check_box' %> Remember Me |
|||
</label> |
|||
<% end -%> |
|||
</div> |
|||
</div> <!-- end column --> |
|||
</div> <!-- end row --> |
|||
<div class="row"> |
|||
<div class="col-xs-12 col-sm-12 col-md-12"> |
|||
<div class="form-group"> |
|||
<p> |
|||
<%= f.submit "Sign in", class:"btn btn-lg btn-primary col-xs-12 col-sm-12 col-md-12" %> |
|||
</p> |
|||
</div> |
|||
</div> <!-- end column --> |
|||
</div> <!-- end row --> |
|||
<% end %> |
|||
|
|||
<div class="form-group"> |
|||
<% if devise_mapping.rememberable? -%> |
|||
<label> |
|||
<%= f.check_box :remember_me %> Remember Me |
|||
</label> |
|||
<% end -%> |
|||
</div> |
|||
<%= render "links" %> |
|||
|
|||
<div class="form-group"> |
|||
<% if Rails.env.development? %> |
|||
<p> |
|||
<%= f.submit "Sign in", class:"btn btn-lg btn-primary" %> |
|||
</p> |
|||
<p> Or quickly... </p> |
|||
<div class="btn-group"> |
|||
<input id="checkin" name="checkin" type="button" value="CHECK IN" class="btn btn-lg btn-success"> |
|||
<input id="checkout" name="checkout" type="button" value="CHECK OUT" class="btn btn-lg btn-danger"> |
|||
</div> |
|||
</div> |
|||
<% end %> |
|||
|
|||
<%= render "links" %> |
|||
|
|||
<% if Rails.env.development? %> |
|||
<p> |
|||
<% User.all.each do |user| %> |
|||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
|||
<%= f.hidden_field :username, :value => user.username%> |
|||
<%= f.hidden_field :password, :value => 'password' %> |
|||
<%= f.submit "Sign in as #{user.username}", class:"btn btn-info" %> |
|||
<% User.all.each do |user| %> |
|||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> |
|||
<%= f.hidden_field :username, :value => user.username%> |
|||
<%= f.hidden_field :password, :value => 'password' %> |
|||
<%= f.submit "Sign in as #{user.username}", class:"btn btn-info" %> |
|||
<% end %> |
|||
<% end %> |
|||
</p> |
|||
<% end %> |
|||
</p> |
|||
<% end %> |
|||
</div> |
Loading…
Reference in new issue