mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Add bootstrap
This commit is contained in:
parent
5130a431da
commit
1f6e74785e
2
Gemfile
2
Gemfile
@ -23,6 +23,8 @@ gem 'jbuilder', '~> 2.0'
|
||||
# bundle exec rake doc:rails generates the API under doc/api.
|
||||
gem 'sdoc', '~> 0.4.0', group: :doc
|
||||
|
||||
gem 'twitter-bootstrap-rails'
|
||||
|
||||
# Use ActiveModel has_secure_password
|
||||
# gem 'bcrypt', '~> 3.1.7'
|
||||
|
||||
|
||||
@ -97,6 +97,11 @@ GEM
|
||||
tilt (1.4.1)
|
||||
turbolinks (2.5.2)
|
||||
coffee-rails
|
||||
twitter-bootstrap-rails (3.2.0)
|
||||
actionpack (~> 4.1)
|
||||
execjs (~> 2.2)
|
||||
rails (~> 4.1)
|
||||
railties (~> 4.1)
|
||||
tzinfo (1.2.2)
|
||||
thread_safe (~> 0.1)
|
||||
tzinfo-data (1.2014.10)
|
||||
@ -117,5 +122,6 @@ DEPENDENCIES
|
||||
sdoc (~> 0.4.0)
|
||||
sqlite3
|
||||
turbolinks
|
||||
twitter-bootstrap-rails
|
||||
tzinfo-data
|
||||
uglifier (>= 1.3.0)
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
//
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require twitter/bootstrap
|
||||
//= require turbolinks
|
||||
//= require_tree .
|
||||
|
||||
3
app/assets/javascripts/bootstrap.js.coffee
Normal file
3
app/assets/javascripts/bootstrap.js.coffee
Normal file
@ -0,0 +1,3 @@
|
||||
jQuery ->
|
||||
$("a[rel~=popover], .has-popover").popover()
|
||||
$("a[rel~=tooltip], .has-tooltip").tooltip()
|
||||
7
app/assets/stylesheets/bootstrap_and_overrides.css
vendored
Normal file
7
app/assets/stylesheets/bootstrap_and_overrides.css
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
=require twitter-bootstrap-static/bootstrap
|
||||
|
||||
Use Font Awesome icons (default)
|
||||
To use Glyphicons sprites instead of Font Awesome, replace with "require twitter-bootstrap-static/sprites"
|
||||
=require twitter-bootstrap-static/fontawesome
|
||||
*/
|
||||
23
config/locales/en.bootstrap.yml
Normal file
23
config/locales/en.bootstrap.yml
Normal file
@ -0,0 +1,23 @@
|
||||
# Sample localization file for English. Add more files in this directory for other locales.
|
||||
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
||||
|
||||
en:
|
||||
breadcrumbs:
|
||||
application:
|
||||
root: "Index"
|
||||
pages:
|
||||
pages: "Pages"
|
||||
helpers:
|
||||
actions: "Actions"
|
||||
links:
|
||||
back: "Back"
|
||||
cancel: "Cancel"
|
||||
confirm: "Are you sure?"
|
||||
destroy: "Delete"
|
||||
new: "New"
|
||||
edit: "Edit"
|
||||
titles:
|
||||
edit: "Edit %{model}"
|
||||
save: "Save %{model}"
|
||||
new: "New %{model}"
|
||||
delete: "Delete %{model}"
|
||||
Loading…
Reference in New Issue
Block a user