KITAITI Makoto
null+****@clear*****
Sun Feb 15 05:25:11 JST 2015
KITAITI Makoto 2015-02-15 05:25:11 +0900 (Sun, 15 Feb 2015) New Revision: f9c0c1d9a4a3b7671b60f291b6296fdbc2dbec60 https://github.com/ranguba/epub-searcher/commit/f9c0c1d9a4a3b7671b60f291b6296fdbc2dbec60 Message: Use Bower components instead of CDN for jQuery and Bootstrap Modified files: app/stylesheets/groonga.scss app/views/layouts/layout.haml lib/scss_init.rb Modified: app/stylesheets/groonga.scss (+2 -0) =================================================================== --- app/stylesheets/groonga.scss 2015-02-15 05:10:48 +0900 (da59428) +++ app/stylesheets/groonga.scss 2015-02-15 05:25:11 +0900 (b9eae0a) @@ -1,3 +1,5 @@ + �� import "bootstrap"; + form { margin-top: 1em; margin-bottom: 1em; Modified: app/views/layouts/layout.haml (+2 -3) =================================================================== --- app/views/layouts/layout.haml 2015-02-15 05:10:48 +0900 (f56d141) +++ app/views/layouts/layout.haml 2015-02-15 05:25:11 +0900 (dda66e5) @@ -8,7 +8,6 @@ - else EPUB Searcher %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1.0'} - %link{:href => '//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css', :rel => 'stylesheet', :media => 'screen'} = stylesheet_link_tag 'groonga' %body %header{:class => 'navbar navbar-default'} @@ -19,5 +18,5 @@ %li{:class => 'nav'} = link_to 'Books', url_for(:books), :class => '', :title => 'Registered books' = yield - %script{:src => '//code.jquery.com/jquery-2.1.3.min.js'} - %script{:src => '//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js'} + %script{:src => '/components/jquery/dist/jquery.min.js'} + %script{:src => '/components/bootstrap-sass/assets/javascripts/bootstrap.min.js'} Modified: lib/scss_init.rb (+1 -0) =================================================================== --- lib/scss_init.rb 2015-02-15 05:10:48 +0900 (2b9742f) +++ lib/scss_init.rb 2015-02-15 05:25:11 +0900 (6a3df53) @@ -7,6 +7,7 @@ module ScssInitializer Sass::Plugin.options[:syntax] = :scss Sass::Plugin.options[:template_location] = Padrino.root("app/stylesheets") Sass::Plugin.options[:css_location] = Padrino.root("public/stylesheets") + Sass::Plugin.options[:load_paths] = [Padrino.root("public/components/bootstrap-sass/assets/stylesheets")] app.use Sass::Plugin::Rack end end -------------- next part -------------- HTML����������������������������... Download