leather 0.2.22 → 0.2.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -0
- data/app/assets/javascripts/leather.js +13 -0
- data/app/assets/javascripts/{leather.js.coffee → off_canvas.js.coffee} +0 -0
- data/app/assets/stylesheets/{leather/_devise.css.scss → _devise.css.scss} +0 -1
- data/app/assets/stylesheets/{leather/_off_canvas.css.scss → _off_canvas.css.scss} +0 -0
- data/app/assets/stylesheets/{leather/_variables.css.scss → _variables.css.scss} +0 -0
- data/app/assets/stylesheets/leather.css.scss +3 -3
- data/app/controllers/leather/application_controller.rb +9 -0
- data/app/helpers/leather/application_helper.rb +28 -0
- data/app/views/leather/application/_table.html.haml +23 -0
- data/{templates/views/pages → app/views/leather/application}/ui_kit.html.haml +18 -15
- data/app/views/leather/{_dropdown_nav_item.html.haml → bootstrap_components/_dropdown_nav_item.html.haml} +0 -0
- data/app/views/leather/{_modal.html.haml → bootstrap_components/_modal.html.haml} +0 -0
- data/app/views/leather/{_modal_body.html.haml → bootstrap_components/_modal_body.html.haml} +0 -0
- data/app/views/leather/{_modal_footer.html.haml → bootstrap_components/_modal_footer.html.haml} +0 -0
- data/app/views/leather/{_modal_header.html.haml → bootstrap_components/_modal_header.html.haml} +0 -0
- data/app/views/leather/{_nav_item.html.haml → bootstrap_components/_nav_item.html.haml} +0 -0
- data/app/views/leather/{_nav_list.html.haml → bootstrap_components/_nav_list.html.haml} +0 -0
- data/app/views/leather/{_navbar.html.haml → bootstrap_components/_navbar.html.haml} +0 -0
- data/config/routes.rb +3 -0
- data/lib/generators/leather/install/install_generator.rb +7 -3
- data/lib/leather.rb +2 -11
- data/lib/leather/{action_controller.rb → action_controller_extension.rb} +1 -1
- data/lib/leather/engine.rb +9 -0
- data/lib/leather/leather_helpers.rb +16 -8
- data/lib/leather/railtie.rb +1 -1
- data/lib/leather/version.rb +1 -1
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +16 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +3 -0
- data/{templates → test/dummy/app/assets/stylesheets}/bootstrap_variables.css.scss +0 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +6 -0
- data/test/dummy/app/views/application/_navigation.html.haml +10 -0
- data/{templates → test/dummy/app}/views/devise/passwords/edit.html.erb +0 -0
- data/{templates → test/dummy/app}/views/devise/passwords/new.html.erb +0 -0
- data/{templates → test/dummy/app}/views/devise/registrations/new.html.erb +0 -0
- data/{templates → test/dummy/app}/views/devise/sessions/new.html.erb +0 -0
- data/{templates → test/dummy/app}/views/devise/shared/_links.html.erb +0 -0
- data/{templates → test/dummy/app}/views/devise/shared/_welcome.html.erb +1 -1
- data/test/dummy/app/views/layouts/application.html.erb +15 -0
- data/test/dummy/app/views/pages/home.html.haml +2 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +82 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/devise.rb +259 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/{templates → test/dummy/config/initializers}/high_voltage.rb +0 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +60 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140814162425_devise_create_users.rb +42 -0
- data/test/dummy/db/schema.rb +34 -0
- data/test/dummy/log/development.log +11369 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/users.yml +11 -0
- data/test/dummy/test/models/user_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/development/sass/1641d3150ac5429005b865a93b3a8f1f2fd752bc/application.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fe1d31e5c11da98ccb41fd2426b10e396cae9ef/application.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fe1d31e5c11da98ccb41fd2426b10e396cae9ef/bootstrap_variables.css.scssc +1701 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_alerts.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_badges.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_breadcrumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_button-groups.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_carousel.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_close.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_code.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_component-animations.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_dropdowns.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_glyphicons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_input-groups.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_jumbotron.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_labels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_list-group.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_media.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_modals.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_navbar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_navs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_normalize.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_pager.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_panels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_popovers.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_print.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_progress-bars.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_responsive-embed.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_responsive-utilities.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_thumbnails.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_tooltip.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_type.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_utilities.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_wells.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c6c02afe3e484db0157d0b969d3fd5d5c62e4d94/bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_alerts.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_background-variant.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_border-radius.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_center-block.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_clearfix.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_gradients.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_grid-framework.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_hide-text.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_image.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_labels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_list-group.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_nav-divider.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_nav-vertical-align.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_opacity.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_panels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_progress-bar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_reset-filter.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_resize.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_responsive-visibility.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_size.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_tab-focus.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_table-row.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_text-emphasis.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_text-overflow.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_vendor-prefixes.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/f79010467975f9f0c74079973e2e6ac43e352b55/_devise.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/f79010467975f9f0c74079973e2e6ac43e352b55/_off_canvas.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/f79010467975f9f0c74079973e2e6ac43e352b55/_variables.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/f79010467975f9f0c74079973e2e6ac43e352b55/leather.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/046291387bc2d2809757a336ec0fe4dd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1aa37d6306939c6bd4d2d3dbd1a972b4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1c74f524ef1c9664c5e027ecfb2f534e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1ecf6ce46912d5c0e24343940a72fce7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/274c66f2ef77dedcb7dc72e5c80b654c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2b143e009dd8e8cf9dce01e50a29ecc0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/47420553469a85f5ed442ccb08588099 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/48cea382a3ed21081e139131c519e3e9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/52e5cce67e5ce8d22cd7cf062f1396bf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/563354ac2bc7c194f7b61e1db43bb636 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7379a30babe5f5562913dd7aaf455d0d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7f63bbb4eb4a18d7b34c5a4d00574deb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8ab512c9b33ac90e699b73469d71f061 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/93e73cad26dda36a65545f659023ed43 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/94e8a6b05d99d35f7b50a0670a388a3f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a43f717bccf7814b0f5dd8b1e65f8bcf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a4c1a1b7f7b3ef8eef5e91d15021acfc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aa8b8b91fdc14339221eb215870567a4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ab4135af88f861c1cbff29b547bf4ea6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/af8d23558ed6bffb1663e09f8173783c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bcca522c6302f184f12fe0e8a7d7e71a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c13fc73ceafa45876a901b3e775b83ae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c8698346bbe3b8299a17e9922ef54b8d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ce2bf14384e46d791ba077ef9af694bb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d23d368477e7164786f1c4ea07ba217c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d99551528f517a3d6c158eedd1afd880 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4169f8ade49b1355c22470d8c27338e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ee270497fcf07e6ea24dde5f1de5bb3f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f8cbf91fc43cafc23d7976c4634215d4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fb2054989d359cd4c8dc2d2c59e98333 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fc0d528a667b47ff79c6a1159488c7f6 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/leather_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +387 -64
- data/app/helpers/navigation_helper.rb +0 -9
- data/templates/views/pages/_table.html.erb +0 -30
- data/templates/views/pages/home.html.haml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f18cf91495cad3cc992f66a760b95775051ffeb1
|
4
|
+
data.tar.gz: 119962da6f96d96986785c1fd2502e89f307bb37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcad54ce669f7fa878af10424ed23cb1fd67efa917c98b13a4ff78c6fb83bba0623f9768dfa15adfdb5c6cb0dc91de31d06aa0565b322b53fff03e68795153ab
|
7
|
+
data.tar.gz: bb0c57da6f9e9cf4f1bd28905b9fde129943f03e1441a44849aaaa2a25bdfb010e904de8ddabc9e002cba6e8e3cbf60f3857721d7091befecc23ead1bbb13cec
|
data/Rakefile
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_directory .
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,3 +1,3 @@
|
|
1
|
-
@import "
|
2
|
-
@import "
|
3
|
-
@import "
|
1
|
+
@import "variables.css.scss";
|
2
|
+
@import "devise";
|
3
|
+
@import "off_canvas";
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Leather
|
2
|
+
module ApplicationHelper
|
3
|
+
def method_missing method, *args, &block
|
4
|
+
puts "LOOKING FOR ROUTES #{method}"
|
5
|
+
if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
|
6
|
+
if main_app.respond_to?(method)
|
7
|
+
main_app.send(method, *args)
|
8
|
+
else
|
9
|
+
super
|
10
|
+
end
|
11
|
+
else
|
12
|
+
super
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def respond_to?(method)
|
17
|
+
if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
|
18
|
+
if main_app.respond_to?(method)
|
19
|
+
true
|
20
|
+
else
|
21
|
+
super
|
22
|
+
end
|
23
|
+
else
|
24
|
+
super
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
%table{class: "table #{table_class}"}
|
2
|
+
%thead
|
3
|
+
%tr
|
4
|
+
%th #
|
5
|
+
%th First Name
|
6
|
+
%th Last Name
|
7
|
+
%th Username
|
8
|
+
%tbody
|
9
|
+
%tr
|
10
|
+
%td 1
|
11
|
+
%td Mark
|
12
|
+
%td Otto
|
13
|
+
%td @mdo
|
14
|
+
%tr
|
15
|
+
%td 2
|
16
|
+
%td Jacob
|
17
|
+
%td Thornton
|
18
|
+
%td @fat
|
19
|
+
%tr
|
20
|
+
%td 3
|
21
|
+
%td Larry
|
22
|
+
%td the Bird
|
23
|
+
%td @twitter
|
@@ -1,4 +1,11 @@
|
|
1
|
-
|
1
|
+
.jumbotron
|
2
|
+
.container
|
3
|
+
%h1 Hello, world!
|
4
|
+
%p This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
|
5
|
+
%p
|
6
|
+
%a.btn.btn-primary.btn-lg{role: "button"} Learn more
|
7
|
+
|
8
|
+
= navbar "Brand", "#", container_mode: :with, class: "navbar-default navbar-static-top" do
|
2
9
|
= nav_list do
|
3
10
|
= nav_item 'Link', '#'
|
4
11
|
= nav_item 'Link', '#'
|
@@ -21,7 +28,7 @@
|
|
21
28
|
%li.divider
|
22
29
|
= nav_item 'Separated link', '#'
|
23
30
|
|
24
|
-
= navbar "Brand",
|
31
|
+
= navbar "Brand", "#", container_mode: :with, class: "navbar-inverse navbar-static-top" do
|
25
32
|
= nav_list do
|
26
33
|
= nav_item 'Link', '#'
|
27
34
|
= nav_item 'Link', '#'
|
@@ -44,23 +51,19 @@
|
|
44
51
|
%li.divider
|
45
52
|
= nav_item 'Separated link', '#'
|
46
53
|
|
47
|
-
.jumbotron
|
48
|
-
.container
|
49
|
-
%h1 Hello, world!
|
50
|
-
%p This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
|
51
|
-
%p
|
52
|
-
%a.btn.btn-primary.btn-lg{role: "button"} Learn more
|
53
54
|
.container
|
55
|
+
%h1.page-header Breadcrumbs
|
54
56
|
%ol.breadcrumb
|
55
57
|
%li
|
56
58
|
%a{href: "#"} Home
|
57
59
|
%li
|
58
60
|
%a{href: "#"} Library
|
59
61
|
%li.active Data
|
62
|
+
|
60
63
|
.container
|
61
64
|
%h1.page-header Off-Canvas Menus
|
62
|
-
= link_to "Left", "#", data: { toggle: "off-canvas", side: "left"}, class: "btn btn-primary"
|
63
|
-
= link_to "Right", "#", data: { toggle: "off-canvas", side: "right"}, class: "btn btn-primary"
|
65
|
+
= link_to "Left", "#", data: { toggle: "off-canvas", side: "left"}, class: "btn btn-primary", style: "z-index: 9005;"
|
66
|
+
= link_to "Right", "#", data: { toggle: "off-canvas", side: "right"}, class: "btn btn-primary", style: "z-index: 9005;"
|
64
67
|
|
65
68
|
.off-canvas.off-canvas-left
|
66
69
|
TEST
|
@@ -135,15 +138,15 @@
|
|
135
138
|
%button.btn.btn-link{type: "button"} Link
|
136
139
|
%h1.page-header Tables
|
137
140
|
%h3 Basic Table
|
138
|
-
= render '
|
141
|
+
= render 'table', table_class: ""
|
139
142
|
%h3 Striped Table
|
140
|
-
= render '
|
143
|
+
= render 'table', table_class: "table-striped"
|
141
144
|
%h3 Bordered Table
|
142
|
-
= render '
|
145
|
+
= render 'table', table_class: "table-bordered"
|
143
146
|
%h3 Hover Rows
|
144
|
-
= render '
|
147
|
+
= render 'table', table_class: "table-hover"
|
145
148
|
%h3 Condensed Table
|
146
|
-
= render '
|
149
|
+
= render 'table', table_class: "table-condensed"
|
147
150
|
%h1.page-header Forms
|
148
151
|
%form{role: "form"}
|
149
152
|
.form-group
|
File without changes
|
File without changes
|
File without changes
|
data/app/views/leather/{_modal_footer.html.haml → bootstrap_components/_modal_footer.html.haml}
RENAMED
File without changes
|
data/app/views/leather/{_modal_header.html.haml → bootstrap_components/_modal_header.html.haml}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/config/routes.rb
ADDED
@@ -2,15 +2,19 @@ module Leather
|
|
2
2
|
class InstallGenerator < Rails::Generators::Base
|
3
3
|
source_root File.expand_path('../../../../../templates/', __FILE__)
|
4
4
|
|
5
|
-
def
|
5
|
+
def mount
|
6
|
+
route "mount Leather::Engine => '/'"
|
7
|
+
end
|
8
|
+
|
9
|
+
def copy_devise_views
|
6
10
|
directory("views/devise", Rails.root.join("app", "views", "devise"))
|
7
11
|
end
|
8
12
|
|
9
|
-
def
|
13
|
+
def copy_pages
|
10
14
|
directory("views/pages", Rails.root.join("app", "views", "pages"))
|
11
15
|
end
|
12
16
|
|
13
|
-
def
|
17
|
+
def copy_bootstrap_variables
|
14
18
|
copy_file("bootstrap_variables.css.scss", Rails.root.join("app", "assets", "stylesheets", "bootstrap_variables.css.scss"))
|
15
19
|
end
|
16
20
|
|
data/lib/leather.rb
CHANGED
@@ -1,16 +1,7 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
3
|
-
require 'high_voltage'
|
4
|
-
require 'haml-rails'
|
5
|
-
require 'leather/action_controller'
|
1
|
+
require 'leather/engine'
|
2
|
+
require 'leather/action_controller_extension'
|
6
3
|
require 'leather/railtie'
|
7
4
|
|
8
5
|
module Leather
|
9
6
|
autoload :LeatherHelpers, "leather/leather_helpers"
|
10
|
-
|
11
|
-
class Engine < ::Rails::Engine
|
12
|
-
initializer "leather.helpers" do
|
13
|
-
ActionView::Base.send :include, Leather::LeatherHelpers
|
14
|
-
end
|
15
|
-
end
|
16
7
|
end
|
@@ -1,28 +1,36 @@
|
|
1
1
|
module Leather
|
2
2
|
module LeatherHelpers
|
3
|
+
def active_class(href, options)
|
4
|
+
if (options[:nav_id].present? && current_tab?(options[:nav_id][0], options[:nav_id][1])) || current_page?(href)
|
5
|
+
'active'
|
6
|
+
else
|
7
|
+
''
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
3
11
|
def modal_toggle(text, id = 'modal', html_options = {})
|
4
12
|
link_to text, "##{id}", data: { toggle: "modal" }, class: html_options[:class]
|
5
13
|
end
|
6
14
|
|
7
15
|
def modal(id = 'modal', html_options = {}, &block)
|
8
|
-
render partial: 'leather/modal', locals: { id: id, block: capture(&block), html_options: html_options }
|
16
|
+
render partial: 'leather/bootstrap_components/modal', locals: { id: id, block: capture(&block), html_options: html_options }
|
9
17
|
end
|
10
18
|
|
11
19
|
def modal_header(title = '', &block)
|
12
|
-
render partial: 'leather/modal_header', locals: { title: title }
|
20
|
+
render partial: 'leather/bootstrap_components/modal_header', locals: { title: title }
|
13
21
|
end
|
14
22
|
|
15
23
|
def modal_body(&block)
|
16
|
-
render partial: 'leather/modal_body', locals: { block: capture(&block) }
|
24
|
+
render partial: 'leather/bootstrap_components/modal_body', locals: { block: capture(&block) }
|
17
25
|
end
|
18
26
|
|
19
27
|
def modal_footer(&block)
|
20
|
-
render partial: 'leather/modal_footer', locals: { block: capture(&block) }
|
28
|
+
render partial: 'leather/bootstrap_components/modal_footer', locals: { block: capture(&block) }
|
21
29
|
end
|
22
30
|
|
23
31
|
def navbar(title, brand_link, html_options = {}, &block)
|
24
32
|
html_options = { class: "navbar-default" }.merge(html_options)
|
25
|
-
render partial: 'leather/navbar', locals: { title: title, brand_link: brand_link, block: capture(&block), html_options: html_options }
|
33
|
+
render partial: 'leather/bootstrap_components/navbar', locals: { title: title, brand_link: brand_link, block: capture(&block), html_options: html_options }
|
26
34
|
end
|
27
35
|
|
28
36
|
def navbar_with_container(html_options = {}, &block)
|
@@ -36,15 +44,15 @@ module Leather
|
|
36
44
|
end
|
37
45
|
|
38
46
|
def nav_list(html_options = {}, &block)
|
39
|
-
render partial: 'leather/nav_list', locals: { block: capture(&block), html_options: html_options }
|
47
|
+
render partial: 'leather/bootstrap_components/nav_list', locals: { block: capture(&block), html_options: html_options }
|
40
48
|
end
|
41
49
|
|
42
50
|
def nav_item(text, href, options = {})
|
43
|
-
render partial: 'leather/nav_item', locals: { text: text, href: href, options: options }
|
51
|
+
render partial: 'leather/bootstrap_components/nav_item', locals: { text: text, href: href, options: options }
|
44
52
|
end
|
45
53
|
|
46
54
|
def dropdown_nav_item(text, href, options = {}, &block)
|
47
|
-
render partial: 'leather/dropdown_nav_item', locals: { block: capture(&block), text: text, href: href, options: options }
|
55
|
+
render partial: 'leather/bootstrap_components/dropdown_nav_item', locals: { block: capture(&block), text: text, href: href, options: options }
|
48
56
|
end
|
49
57
|
end
|
50
58
|
end
|
data/lib/leather/railtie.rb
CHANGED
data/lib/leather/version.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
== README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require 'jquery'
|
14
|
+
//= require 'jquery_ujs'
|
15
|
+
//= require 'leather'
|
16
|
+
//= require_tree .
|
File without changes
|
@@ -0,0 +1,10 @@
|
|
1
|
+
= navbar "Main App", page_path("home"), container_mode: :with, class: "navbar-default navbar-static-top" do
|
2
|
+
= nav_list do
|
3
|
+
= nav_item 'Home', page_path("home")
|
4
|
+
= nav_item 'UI Kit', leather.ui_kit_path
|
5
|
+
= nav_list class: 'navbar-right' do
|
6
|
+
- if user_signed_in?
|
7
|
+
= nav_item 'Sign Out', destroy_user_session_path, method: :delete
|
8
|
+
- else
|
9
|
+
= nav_item 'Sign In', new_user_session_path
|
10
|
+
= nav_item 'Sign Up', new_user_registration_path
|