bs-helper 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +46 -0
- data/Rakefile +14 -0
- data/app/assets/javascripts/bs-modal/bootstrap-modal.js +379 -0
- data/app/assets/javascripts/bs-modal/bootstrap-modalmanager.js +422 -0
- data/app/assets/javascripts/init-bootbox.js +254 -0
- data/app/assets/javascripts/init-bshelper.js +11 -0
- data/app/assets/stylesheets/bs-modal/bootstrap-modal-bs3patch.css +35 -0
- data/app/assets/stylesheets/bs-modal/bootstrap-modal.css +214 -0
- data/app/helpers/bootstrap_base_helper.rb +145 -0
- data/app/helpers/bootstrap_button_helper.rb +135 -0
- data/app/helpers/bootstrap_component_helper.rb +358 -0
- data/app/helpers/bootstrap_helper.rb +24 -0
- data/app/helpers/bootstrap_notify_helper.rb +49 -0
- data/app/helpers/bootstrap_post_paginate_helper.rb +62 -0
- data/app/helpers/bootstrap_tab_helper.rb +124 -0
- data/app/helpers/bootstrap_table_helper.rb +341 -0
- data/lib/bs-helper.rb +8 -0
- data/lib/bs-helper/engine.rb +21 -0
- data/lib/bs-helper/version.rb +5 -0
- data/lib/generators/bshelper/install/install_generator.rb +46 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/images/favicon.ico +0 -0
- data/test/dummy/app/assets/images/rar_gold.png +0 -0
- data/test/dummy/app/assets/images/text_page.png +0 -0
- data/test/dummy/app/assets/javascripts/application.js +22 -0
- data/test/dummy/app/assets/javascripts/components.js +2 -0
- data/test/dummy/app/assets/javascripts/paginations.js +2 -0
- data/test/dummy/app/assets/javascripts/prettify.js +376 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +163 -0
- data/test/dummy/app/assets/stylesheets/components.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/paginations.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/prettify.css +55 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/components_controller.rb +9 -0
- data/test/dummy/app/controllers/home_controller.rb +4 -0
- data/test/dummy/app/controllers/paginations_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/components_helper.rb +2 -0
- data/test/dummy/app/helpers/paginations_helper.rb +2 -0
- data/test/dummy/app/models/order.rb +2 -0
- data/test/dummy/app/views/components/_bootbox.html.erb +30 -0
- data/test/dummy/app/views/components/_button.html.erb +145 -0
- data/test/dummy/app/views/components/_flash.html.erb +44 -0
- data/test/dummy/app/views/components/_image.html.erb +66 -0
- data/test/dummy/app/views/components/_list.html.erb +162 -0
- data/test/dummy/app/views/components/_modal.html.erb +263 -0
- data/test/dummy/app/views/components/_navbar.html.erb +36 -0
- data/test/dummy/app/views/components/_notify.html.erb +30 -0
- data/test/dummy/app/views/components/_progressbar.html.erb +42 -0
- data/test/dummy/app/views/components/_tab.html.erb +134 -0
- data/test/dummy/app/views/components/_table.html.erb +244 -0
- data/test/dummy/app/views/components/_thumbnails.html.erb +71 -0
- data/test/dummy/app/views/components/_typographic.html.erb +133 -0
- data/test/dummy/app/views/components/index.html.erb +128 -0
- data/test/dummy/app/views/components/update.html.erb +2 -0
- data/test/dummy/app/views/home/index.html.erb +12 -0
- data/test/dummy/app/views/layouts/application.html.erb +79 -0
- data/test/dummy/app/views/paginations/index.html.erb +45 -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 +17 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +27 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +28 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.bootstrap.yml +18 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +8 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20131006012048_create_orders.rb +12 -0
- data/test/dummy/db/schema.rb +25 -0
- data/test/dummy/db/seeds.rb +3 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +6445 -0
- data/test/dummy/log/test.log +3020 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/BB7/B00/sprockets%2F255015c35d7237c7582051420593d535 +0 -0
- data/test/dummy/tmp/cache/assets/BFE/E90/sprockets%2F46051149c05424080ec21b4b160b2156 +0 -0
- data/test/dummy/tmp/cache/assets/C00/C70/sprockets%2F2042815e30a1a59041392a5ca5440290 +0 -0
- data/test/dummy/tmp/cache/assets/C14/150/sprockets%2Fb119a0eb512432ef7314727958150651 +0 -0
- data/test/dummy/tmp/cache/assets/C1B/A20/sprockets%2F418d652b582b3203c7654d337047c338 +0 -0
- data/test/dummy/tmp/cache/assets/C29/8A0/sprockets%2Fa899e19256a0845205636938010c6fe5 +0 -0
- data/test/dummy/tmp/cache/assets/C2A/C00/sprockets%2F3506a8282568971d3248601e5e5425ff +0 -0
- data/test/dummy/tmp/cache/assets/C4B/EF0/sprockets%2F131d29c56765d2433266063045fba4f8 +0 -0
- data/test/dummy/tmp/cache/assets/C52/380/sprockets%2Fc39dc5164502475828be3d207521847e +0 -0
- data/test/dummy/tmp/cache/assets/C5D/BA0/sprockets%2F3012b77e6950a5219d79e44061789fc7 +0 -0
- data/test/dummy/tmp/cache/assets/C66/980/sprockets%2F08834498e0872d20578ff783e2f406b7 +0 -0
- data/test/dummy/tmp/cache/assets/C6F/FE0/sprockets%2F5cce6081788d09120c598c7279f82888 +0 -0
- data/test/dummy/tmp/cache/assets/C70/2B0/sprockets%2F5463710e10c56c02c6b5755029280bfc +0 -0
- data/test/dummy/tmp/cache/assets/C73/E40/sprockets%2F5b82d31405900db244371901fc76e0f6 +0 -0
- data/test/dummy/tmp/cache/assets/C75/980/sprockets%2F2404708d3ebd336e5416726433b29c3a +0 -0
- data/test/dummy/tmp/cache/assets/C7A/A60/sprockets%2F8ed6a1437c208c22d819801375df2270 +0 -0
- data/test/dummy/tmp/cache/assets/C7F/250/sprockets%2F0d48d83101ec82689352144842cde29a +0 -0
- data/test/dummy/tmp/cache/assets/C80/840/sprockets%2F562c2d168da585f80579347d10790a0a +0 -0
- data/test/dummy/tmp/cache/assets/CA4/D30/sprockets%2F755264e416b5a070875ee90af0242cc0 +0 -0
- data/test/dummy/tmp/cache/assets/CA5/8D0/sprockets%2F2555a348ba314a08c0f6d85b066129a9 +0 -0
- data/test/dummy/tmp/cache/assets/CA8/330/sprockets%2F46c9ed7b190224e086e20ca6382465a1 +0 -0
- data/test/dummy/tmp/cache/assets/CAA/430/sprockets%2F54687e09b19575b8930eb3887e698ee8 +0 -0
- data/test/dummy/tmp/cache/assets/CAF/640/sprockets%2F2803327062d607ade5813f79bb61df74 +0 -0
- data/test/dummy/tmp/cache/assets/CB4/8E0/sprockets%2F00d59d696cc7efe4234258e306b83333 +0 -0
- data/test/dummy/tmp/cache/assets/CBF/370/sprockets%2F49ceca075582477f96382fa1c26b4846 +0 -0
- data/test/dummy/tmp/cache/assets/CC5/160/sprockets%2F74b7c3a59a0e88f9502866d0f9b49059 +0 -0
- data/test/dummy/tmp/cache/assets/CCF/730/sprockets%2F884d37d65980884f89898cbb009ba60d +0 -0
- data/test/dummy/tmp/cache/assets/CD2/320/sprockets%2F06f36e5565a415bc3f15b9a0438b204e +0 -0
- data/test/dummy/tmp/cache/assets/CD5/2C0/sprockets%2F166c056119ebdfb8b7104c97b424b423 +0 -0
- data/test/dummy/tmp/cache/assets/CD5/740/sprockets%2Fbb5277f1364450372ea69e473b0cb0e3 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/810/sprockets%2Ffd61035950d2b33670fb8d3f4271fc15 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/D90/sprockets%2Fc1f515271621dfef6c3941c1e210e587 +0 -0
- data/test/dummy/tmp/cache/assets/CDA/BD0/sprockets%2F549431bf0eb194b790b4060759fb1b8a +0 -0
- data/test/dummy/tmp/cache/assets/CDB/1D0/sprockets%2Fe0be664785a1118d4bf4b7110f6f0846 +0 -0
- data/test/dummy/tmp/cache/assets/CDB/970/sprockets%2F08f5b4a540db21d6b735be28047e3569 +0 -0
- data/test/dummy/tmp/cache/assets/CE1/310/sprockets%2F5a5d222a2e5345211e7969d3e860cd9e +0 -0
- data/test/dummy/tmp/cache/assets/CE1/3C0/sprockets%2Fcdd01087f3928656a4dd8c33d82641c3 +0 -0
- data/test/dummy/tmp/cache/assets/CE1/B90/sprockets%2F72230396f68b08a199d9a24ba9d2c9a0 +0 -0
- data/test/dummy/tmp/cache/assets/CE3/820/sprockets%2Fb760f2c7efb9312b9571a9a576854a30 +0 -0
- data/test/dummy/tmp/cache/assets/CE3/CC0/sprockets%2Ff9608666245b5b6f3de33b212d4e509d +0 -0
- data/test/dummy/tmp/cache/assets/CE7/310/sprockets%2F8b0357db2336e0598cb9e5810e199a7b +0 -0
- data/test/dummy/tmp/cache/assets/CE7/FD0/sprockets%2Fbb3a33894c855494dfe294248325a0ef +0 -0
- data/test/dummy/tmp/cache/assets/CE8/5F0/sprockets%2Fe313d803410c99bf15d6344fb77f578d +0 -0
- data/test/dummy/tmp/cache/assets/CEF/DA0/sprockets%2F5a60769c6b6e9d2926c7c558d98001bd +0 -0
- data/test/dummy/tmp/cache/assets/CF2/0A0/sprockets%2F2f5152f528c4f0586e490cbe978e26c8 +0 -0
- data/test/dummy/tmp/cache/assets/CF2/CB0/sprockets%2F47142f1e39d3ed8004649bc2968eee79 +0 -0
- data/test/dummy/tmp/cache/assets/CF3/640/sprockets%2F48de748d4590940ac2981d18ff216cf9 +0 -0
- data/test/dummy/tmp/cache/assets/CF4/1C0/sprockets%2Ff708449e989289d9d02b35ada290e18d +0 -0
- data/test/dummy/tmp/cache/assets/CF6/100/sprockets%2F53efd93222c0011cae70c56d34251df1 +0 -0
- data/test/dummy/tmp/cache/assets/CF6/BA0/sprockets%2F2999139a7870f72c257f820bc9f62cee +0 -0
- data/test/dummy/tmp/cache/assets/CF7/670/sprockets%2F86bb8f349783ee1007567e607c89dbc6 +0 -0
- data/test/dummy/tmp/cache/assets/CFB/C30/sprockets%2F0d44a6a2a55f865ac64b1ce4620b5036 +0 -0
- data/test/dummy/tmp/cache/assets/CFC/FD0/sprockets%2F5ea4bbab196a7829893dd7769374894c +0 -0
- data/test/dummy/tmp/cache/assets/CFD/010/sprockets%2Fd12aa1062f6c713a9efe86ab12263291 +0 -0
- data/test/dummy/tmp/cache/assets/D05/5F0/sprockets%2Fb44400c4299cbe671ffc09b1f1570d24 +0 -0
- data/test/dummy/tmp/cache/assets/D0B/760/sprockets%2F9e9498b160e9fb55d0ee0202a06d74a1 +0 -0
- data/test/dummy/tmp/cache/assets/D0C/DB0/sprockets%2Fcf235e0d96662a1376d2dda257d6f422 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/F80/sprockets%2F8c2b061e379a23e7c4d207adcf992462 +0 -0
- data/test/dummy/tmp/cache/assets/D0F/220/sprockets%2F763a8623c9f9ca1da82ce1d3065195b4 +0 -0
- data/test/dummy/tmp/cache/assets/D10/220/sprockets%2F726f6657c33b6aa3c0d94af63411cc98 +0 -0
- data/test/dummy/tmp/cache/assets/D10/5A0/sprockets%2Fd2231fd71dfa3e6303aefa6662449597 +0 -0
- data/test/dummy/tmp/cache/assets/D10/BD0/sprockets%2F651f97e9f10e46d0b60870a29da1dd45 +0 -0
- data/test/dummy/tmp/cache/assets/D11/790/sprockets%2Fe9dd4830f03e40a2d643677026c7f8bd +0 -0
- data/test/dummy/tmp/cache/assets/D12/920/sprockets%2Ffcb404030b30e1a73c604ef0a41a721a +0 -0
- data/test/dummy/tmp/cache/assets/D17/4C0/sprockets%2F700827acd727b6fc8361f454c68a5cd7 +0 -0
- data/test/dummy/tmp/cache/assets/D17/AA0/sprockets%2Fb207b91eda797ba69e6e407427c9810d +0 -0
- data/test/dummy/tmp/cache/assets/D1A/C80/sprockets%2Fd05d17ace6d56d848f78eab067509821 +0 -0
- data/test/dummy/tmp/cache/assets/D1C/9D0/sprockets%2F73ff5a1b61c01067bb59f6fd89b54894 +0 -0
- data/test/dummy/tmp/cache/assets/D1D/A80/sprockets%2F587d710a85a815aa3d67a7496f59dcb6 +0 -0
- data/test/dummy/tmp/cache/assets/D1D/B00/sprockets%2Fc658105ac7b6fe7b9cc4656176259a9b +0 -0
- data/test/dummy/tmp/cache/assets/D23/CA0/sprockets%2F10af5eba24474e2fa3c15510681a60eb +0 -0
- data/test/dummy/tmp/cache/assets/D28/7A0/sprockets%2Fc0016b98f89c7f17cdd78b81fc194893 +0 -0
- data/test/dummy/tmp/cache/assets/D29/700/sprockets%2Fe6f667affe510637b6289bf664d73c94 +0 -0
- data/test/dummy/tmp/cache/assets/D29/7F0/sprockets%2F1814abebb27ea13dd682b39514d4221c +0 -0
- data/test/dummy/tmp/cache/assets/D2A/4D0/sprockets%2F93b2a67747d68990b77f7e2f4bb186ed +0 -0
- data/test/dummy/tmp/cache/assets/D2A/5F0/sprockets%2F444f8aab7211e90259e2a1e21afd050f +0 -0
- data/test/dummy/tmp/cache/assets/D2A/6D0/sprockets%2F56b0fec7ef32b116b33f6279131ac0c0 +0 -0
- data/test/dummy/tmp/cache/assets/D2B/0A0/sprockets%2Fcf0f777766ec93937f4950fb7eb450c7 +0 -0
- data/test/dummy/tmp/cache/assets/D2D/D50/sprockets%2Fd585a06e2ee6203ccb04c8b84150d14d +0 -0
- data/test/dummy/tmp/cache/assets/D30/050/sprockets%2F010cfbc0fe93ced742452b382b2f6137 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D34/AF0/sprockets%2Ff9c3010efc1c070a7b965d5cf2e28440 +0 -0
- data/test/dummy/tmp/cache/assets/D37/910/sprockets%2F6d03353931352e58ead27bafa2b7e18d +0 -0
- data/test/dummy/tmp/cache/assets/D38/1F0/sprockets%2F3e51a308496425c44eddbd4831bd4a6e +0 -0
- data/test/dummy/tmp/cache/assets/D39/AC0/sprockets%2F374af92b8212b4bcb11df742483af93f +0 -0
- data/test/dummy/tmp/cache/assets/D3A/8F0/sprockets%2F286081105fc0bce1bb5e58d9437df6d1 +0 -0
- data/test/dummy/tmp/cache/assets/D3B/BA0/sprockets%2Fe6806877af3cba66407e110c72b4ddf2 +0 -0
- data/test/dummy/tmp/cache/assets/D3C/9A0/sprockets%2F0bfd8955817f68630d3c10eb1ca26d7b +0 -0
- data/test/dummy/tmp/cache/assets/D3D/210/sprockets%2F89af64f22b01d10b7759a29d4303ffcf +0 -0
- data/test/dummy/tmp/cache/assets/D3E/3F0/sprockets%2Fca760aeeff18c1f769100174c5f337d5 +0 -0
- data/test/dummy/tmp/cache/assets/D40/C40/sprockets%2Fe1e3f7030b8f90aa626ec8e640717d6e +0 -0
- data/test/dummy/tmp/cache/assets/D41/2F0/sprockets%2F95dccfb2296b7ba175585f06ea212e29 +0 -0
- data/test/dummy/tmp/cache/assets/D43/200/sprockets%2Faffca5ff9de508520551e380a948d136 +0 -0
- data/test/dummy/tmp/cache/assets/D46/1E0/sprockets%2F578ca1351d466b2a7f7681b90cfa9ee4 +0 -0
- data/test/dummy/tmp/cache/assets/D47/840/sprockets%2F619da8dda7f51281494c293bdd19e44d +0 -0
- data/test/dummy/tmp/cache/assets/D4B/110/sprockets%2Fbff37793c148d27d084ccc25c7e6d095 +0 -0
- data/test/dummy/tmp/cache/assets/D4B/120/sprockets%2F9851478267eda328424a664becdeaec8 +0 -0
- data/test/dummy/tmp/cache/assets/D4B/A40/sprockets%2Fea319dc44a8e75d8b4090ea37e35d977 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D50/870/sprockets%2Fd2bb3bfae89cf939627795942a30ef44 +0 -0
- data/test/dummy/tmp/cache/assets/D50/A50/sprockets%2F584ed79d21d49036c19ef6aa39ef39e1 +0 -0
- data/test/dummy/tmp/cache/assets/D50/DF0/sprockets%2F99e091c7908d7fca33de747cb53c535e +0 -0
- data/test/dummy/tmp/cache/assets/D53/080/sprockets%2F610ad73170cc39dc8d69a9e7f814fe89 +0 -0
- data/test/dummy/tmp/cache/assets/D55/A60/sprockets%2F7d2d3f238b17eb6b6a0149c230a2d0da +0 -0
- data/test/dummy/tmp/cache/assets/D58/630/sprockets%2F6e31211feb3b021ab13d59d6afa5e393 +0 -0
- data/test/dummy/tmp/cache/assets/D59/BD0/sprockets%2F8a2b501d930665d6c10ce2d52c5bccc3 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/5A0/sprockets%2Ffb68b1e33aca410ae15c1e4a69b60087 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D5D/B60/sprockets%2F1d2b9d33eeac89cbaf405770a309203a +0 -0
- data/test/dummy/tmp/cache/assets/D62/FD0/sprockets%2F4e33cbf3c3ee86c3103de60d1534ce63 +0 -0
- data/test/dummy/tmp/cache/assets/D64/5C0/sprockets%2F7fdd0381b23dbf9ad6fed5532b044161 +0 -0
- data/test/dummy/tmp/cache/assets/D66/A50/sprockets%2Fa19d3c63b5c8d302b27d40bff9ac0694 +0 -0
- data/test/dummy/tmp/cache/assets/D67/4C0/sprockets%2F2acdba0f2819e272fd2775c1e2e135f6 +0 -0
- data/test/dummy/tmp/cache/assets/D69/8B0/sprockets%2F6165e3199da62d88d3cda04e9f0bab03 +0 -0
- data/test/dummy/tmp/cache/assets/D69/BC0/sprockets%2Fb4b3aa35e039b27b8e060c45f9775cbd +0 -0
- data/test/dummy/tmp/cache/assets/D6E/430/sprockets%2F4f91b073b921ebf764afe6b65e9c400b +0 -0
- data/test/dummy/tmp/cache/assets/D70/B20/sprockets%2Fe1b78bcabcbb629a3b7491f646e47444 +0 -0
- data/test/dummy/tmp/cache/assets/D71/610/sprockets%2F7f5938c3933df260b3c1d3ca966aba7d +0 -0
- data/test/dummy/tmp/cache/assets/D72/890/sprockets%2F1964d5b7e91e4bd75eaaa90372179abe +0 -0
- data/test/dummy/tmp/cache/assets/D72/F70/sprockets%2Ffc8249455de6cf6c7ee332c3da50b651 +0 -0
- data/test/dummy/tmp/cache/assets/D75/2E0/sprockets%2F8b14921da19c834965bfceae1f7653eb +0 -0
- data/test/dummy/tmp/cache/assets/D75/7C0/sprockets%2Fa6bd7e7accd75862c41df7761f20484c +0 -0
- data/test/dummy/tmp/cache/assets/D78/420/sprockets%2F1d8aadb52328eb71c38f6f6789541aef +0 -0
- data/test/dummy/tmp/cache/assets/D78/E40/sprockets%2Faedc95237ba36c670c945f38c90eff06 +0 -0
- data/test/dummy/tmp/cache/assets/D7B/0D0/sprockets%2F551a784b818d6b4b49c0c8f8b4fdf7a4 +0 -0
- data/test/dummy/tmp/cache/assets/D7B/BC0/sprockets%2F60689caf6e6b35ddfef5020e38cd6682 +0 -0
- data/test/dummy/tmp/cache/assets/D8B/080/sprockets%2F9acde0d230391c71d10e44b0bbfab788 +0 -0
- data/test/dummy/tmp/cache/assets/D91/1F0/sprockets%2F9d59f6d0a4e6c39d5df4967d495dae77 +0 -0
- data/test/dummy/tmp/cache/assets/D93/710/sprockets%2F4b23ca13b12ffd5b869d852dbd4517ab +0 -0
- data/test/dummy/tmp/cache/assets/D98/820/sprockets%2F9e134dbd90cdb62020573b5efa598cbc +0 -0
- data/test/dummy/tmp/cache/assets/D99/2B0/sprockets%2F6f461bec4036b94e05def91bcef2f212 +0 -0
- data/test/dummy/tmp/cache/assets/D9B/6D0/sprockets%2F233d91946fb5eec30dfb91d13645acbf +0 -0
- data/test/dummy/tmp/cache/assets/D9B/BC0/sprockets%2F972cc0f426f8a9a1502aac8008df9dbf +0 -0
- data/test/dummy/tmp/cache/assets/D9F/240/sprockets%2Fcbcc9415e68ada75302721596fff2beb +0 -0
- data/test/dummy/tmp/cache/assets/DA0/300/sprockets%2Fb0662d0bd4d1de35ee5275c9eb777f4a +0 -0
- data/test/dummy/tmp/cache/assets/DA0/A00/sprockets%2F470e7e6e53ac8e2d8b8cc67cc0ed4150 +0 -0
- data/test/dummy/tmp/cache/assets/DA2/9F0/sprockets%2F32e07f1e2ace5083e8d82fe128c9ce7b +0 -0
- data/test/dummy/tmp/cache/assets/DA3/130/sprockets%2F564d6aad8eed946ff1c02e46374ce61a +0 -0
- data/test/dummy/tmp/cache/assets/DA4/560/sprockets%2F2088bf8c4ce3fc99f1ca81b5daa30588 +0 -0
- data/test/dummy/tmp/cache/assets/DA6/C80/sprockets%2Ffb3fbf878626cb0b193398e604efdda1 +0 -0
- data/test/dummy/tmp/cache/assets/DAE/2F0/sprockets%2Fd1af60de6575897dbc5f714ecc8bc781 +0 -0
- data/test/dummy/tmp/cache/assets/DB0/8E0/sprockets%2Fa7e3c53c5e6be4829feaf8593d0cc739 +0 -0
- data/test/dummy/tmp/cache/assets/DB2/8C0/sprockets%2Fee6f626db3884fac4f4f534c594d58cb +0 -0
- data/test/dummy/tmp/cache/assets/DB3/FE0/sprockets%2Ff44f9fa62c88d3d8e1df6a9c770d5a73 +0 -0
- data/test/dummy/tmp/cache/assets/DB7/6A0/sprockets%2Fe62279cb658efbd4ee59afa72a4967f5 +0 -0
- data/test/dummy/tmp/cache/assets/DBD/170/sprockets%2Fd17e4102f6f24fcacccd2e3be411f670 +0 -0
- data/test/dummy/tmp/cache/assets/DC1/350/sprockets%2F462d90cc0af07b51cf4d9280bc96bdaa +0 -0
- data/test/dummy/tmp/cache/assets/DC2/1E0/sprockets%2Ffaebe1250f51bbc6ed1cd059807ea653 +0 -0
- data/test/dummy/tmp/cache/assets/DC5/510/sprockets%2F4a670eb7532fb1e85bb9f00de445bfba +0 -0
- data/test/dummy/tmp/cache/assets/DCA/3F0/sprockets%2F0413c8f1d459a08ebcfc047fa3d59dbe +0 -0
- data/test/dummy/tmp/cache/assets/DD4/BF0/sprockets%2F74d6a551a492207cbe7ef9a8b4d6fdea +0 -0
- data/test/dummy/tmp/cache/assets/DDB/A80/sprockets%2F1b4568e9df68ba3beab8a093e6c487ed +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DEA/6E0/sprockets%2Fea1fee1a4d51c17c3ca11ba896d8d20d +0 -0
- data/test/dummy/tmp/cache/assets/DEB/5C0/sprockets%2Fb5511bfe77b3e107e3fdcb20e6ba3f3a +0 -0
- data/test/dummy/tmp/cache/assets/DEE/2F0/sprockets%2F84a9fb3ac3f8c95f1bdc9e58ff79b648 +0 -0
- data/test/dummy/tmp/cache/assets/DF2/1C0/sprockets%2F3d3c6b606ac3f25bd883a15cc50dcfde +0 -0
- data/test/dummy/tmp/cache/assets/DF6/C30/sprockets%2F094cbbee3c8ae3a10a6351b3f879edbe +0 -0
- data/test/dummy/tmp/cache/assets/DF9/680/sprockets%2Feb943eab7c94dbb2ff5d4baf180a2825 +0 -0
- data/test/dummy/tmp/cache/assets/DF9/BF0/sprockets%2Facce48e27f31adf4ce5d7261eb0d634e +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E30/F30/sprockets%2F2de6682f4a2f69a08c6bbafef6beb13f +0 -0
- data/test/dummy/tmp/cache/assets/E34/4E0/sprockets%2Fdfeb62c5bdee854323f83d507eca9ddc +0 -0
- data/test/dummy/tmp/cache/assets/E36/600/sprockets%2Fd3efa814e1719cd5ccd9e3f295deba9a +0 -0
- data/test/dummy/tmp/cache/assets/E37/AD0/sprockets%2Fffa65557afebb980751c8fed3cccc91a +0 -0
- data/test/dummy/tmp/cache/assets/E3A/330/sprockets%2F738a1f7a1b37d9a4edcdb685a9cdfe9c +0 -0
- data/test/dummy/tmp/cache/assets/E58/410/sprockets%2F1ffe555dcee543ffc25dc45c0fca2fc0 +0 -0
- data/test/dummy/tmp/cache/assets/E5D/A40/sprockets%2F6cfde019cc3feaf0a90cefaa6b39e494 +0 -0
- data/test/dummy/tmp/cache/assets/E79/EE0/sprockets%2Fba0bcc8fbaea1603d9e2e98cdab20af4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/28736f96a991e275b6732cb50220e8c11ba4494b/application.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/28736f96a991e275b6732cb50220e8c11ba4494b/components.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/28736f96a991e275b6732cb50220e8c11ba4494b/paginations.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/95877ca3fb97306427e6a8c3200a77fa726c2979/bootstrap-responsive.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/95877ca3fb97306427e6a8c3200a77fa726c2979/bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_accordion.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_alerts.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_breadcrumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_button-groups.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_carousel.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_close.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_code.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_component-animations.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_dropdowns.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_hero-unit.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_labels-badges.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_layouts.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_media.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_modals.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_navbar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_navs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_pager.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_popovers.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_progress-bars.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_reset.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_responsive-1200px-min.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_responsive-767px-max.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_responsive-768px-979px.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_responsive-navbar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_responsive-utilities.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_sprites.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_thumbnails.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_tooltip.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_type.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_utilities.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/_wells.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c75ed21fe4fe5a931216dc17f876dea4e6c936a7/responsive.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/00171108bd75279e653c1ffb5b4650b8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/02a5e97b270aecc19e04af22f1f1cd30 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/04184a8816ea3777ee27b854203f6019 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/048bae76f95c4ffc9b7af4e6c2785962 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/05029f2e1c68338ac88af8005acab3ca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/08318fdb5f5b783c22442a6aeb73730e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/08f00d4a1bac197d382c2269a184f9e4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0b6c06f6bcf535567c19f70f7aa5144d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0b9076b70e22dd7976e589018cdf65ca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0e8461b429e0249b8dc74d457fcc17d3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f074c0ea10680a3ba979bbd1d2ff756 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f246c1ee41a544d79fbfe7e4c55395a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f5877c1fb159c1a5f1602569a0cdde2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/114347d906f6bbc62846207e29d557ea +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/15963a31c483fd420068248735916590 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16039dc737e753516f4399dcd38d6de7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/17343be9bd7b90029b2d0ba85cc272a6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/22110de5943f742c8678358b15f96778 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2475b7ccd67f97ce69957334b916f93e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/264e074302048cb000f909f2919a0c9a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/272f5096d49f011351e9f4780c313741 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/27a29069244dbf376d0988a1d36240ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/29c2f0fd8e3c5f4dcd1332efa4a0371d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2a2a275912bc287c9d7a3a311488e28c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2a61f06ae5cf5f6f1d43645b9b219453 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/32ef1c9e94a83350bad5e887c416c5b6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/367865b241c60ef0e9a85c9f9910f7d4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/37984c7de5e7d22002a378234035e51c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/40f725c6fe77af21a3d7c750a30b4d72 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4201264f7710f91dc1c389a2497eda7d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4632953f64dffdb8589b67c260f76a80 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/46a877b33fea5e34d8af620fa68516f6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4783fc0456df015fe93e64130dd123c9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4790af1cc9b3545ffd8c1ad8615c8461 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e81b6b6eb1e1462b1eea2caee6bfcc6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/518c73ecd762cbf6d85a3ae693e08d01 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/536039d2b9042f61449290e282854f4d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/54cc1257b927751b13f0369969e17440 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/563bd386568f5c565af0f5e77d1465b6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/56401bbafd08927b55572c8ef7e88883 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58548b7df7a227fd1bf04f0c6dfccf36 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5865993e4fa54b7f6f0186ebaffff12b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5f206472cf6bcde2e61740cb5386efe6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5f4079f15430a7602518336faeccf957 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5f62321f43b55988b6cb95367556d822 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/653178c2e0c5d134069e58196f7bf28e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/661c74f15a009d482fdad85f811e6f8e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6645261a77362094829edc9269130cf4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6668d3ee30c1513097c95bcc0a27696a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/698c4f478493aa93e94a2c32cdd5f1cc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69c3968e244ecbe63dba17e07301aa68 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6a859ca0860b6b2173eaea6c1abd630a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6a98434027a1ee08391a7294b1aa7a67 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6ba848548341f31a12f3af01e5bcb01e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/700827acd727b6fc8361f454c68a5cd7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/715840f8887bc1e70ef3cc18b429cbc8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/754b02ea2ed1c85b7756de6452f4aeb7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/779fd39741d5f4364f4453e6d9db3a8c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/789ee96fc4d6c86c29c7859b5a5fb64e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/78fdc1d9add39ed3fdcbf7cae3df4190 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b2d3e5e25b0901f78fbf8c9cb9570c4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7d3e001df1afe33a8b5380b294997051 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7ee9049cecde358160bb72854ce9981e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/805a755d6887dd3f251ee8d671113a55 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/833fa0f8ca6eda2934d5875796ac0ddb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/84eb79ed8e43cf9414e6ecfd38c5a19f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/87a55c890eedab0cc5d1e3f2c2b2da4b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/87efe66475e2e502b42c392ff8273442 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8ab512c9b33ac90e699b73469d71f061 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8bd5ee2e9abbe312a72a1cec2ea714a7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8cc360b254f1bff91753f954e7591a9b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8cef39f720d3603419826280adad9372 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8d55d8baa9ba44e3a712be2608138977 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8ec990d84f5dedd35001397078415137 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/94e46c0e76c8f392586af76b0f6c6e93 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/959e668443f5574a25645a9cb54649f5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/968566581a35be861fa4f8fed757dcae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/98f1b84ebd547f6cd07a548569b3e1ae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9b51a99e821d1802733dceac6764d18f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9e6dd98de3da516019c66e5cea7aaa7f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a0a671e624f03533a82b1ec899bf3b21 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a0f669003bef02490064a16cfdb916fe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a5b779be5a68643653ca723bce23c62c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a71be32ef78d975a6d1d5e32143d05ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a899e19256a0845205636938010c6fe5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a927b1e06ff9451df692de08dca0e08f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a97cd428904e5968d05f7d3a5fd50f85 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aa87366fe7cd02f1be035665580cf066 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ad1e6aa474266554a6dd880d462f633e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/af5ab48d2f371513fb609f8bdec3ac42 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b0f49e3da03027c5e6d62ed7a5f49a43 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b51a3679ccee92d6e374deac3359cc69 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b58136bb390cf7c8bb94be5d819a0480 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7f56c6511e2ad0e7534e6f578b9070d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ba8d058dd931d04837d9f0cf2a0ad5aa +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/baed877d386dc374496dcd62af36bc5b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bcca522c6302f184f12fe0e8a7d7e71a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c09bd2cb81885f4b03d7c53a3d85fdb1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c13fc73ceafa45876a901b3e775b83ae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c3ca63a68d9a17cf1beb8e708ffbd3ca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c61c40e35c6ac853de21fd169c1c82b9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d4c36568a5145e04bfbbefd37fecdde7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d75dd624db3682fd4fed243c5f6f2e69 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d9fa58e1385bfb03f2ede65c90f36d70 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/db6179f67e9b6827b5870d2c1b6ccd3d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/de77caafdd411db4363036050ebbcbc9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e00413c4a11f1d7ee89901fd0cde57ec +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e0b0b28cfa788f3dd5e1608b17d49d40 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1eaf02d2c8b06a52fc43dd67875cf47 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e256294192259b5603b8dc971d9d6a11 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e6df0f40358bfc2568038d9cf71859a5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e7e85a25f51035ffdd3f6a0aa5ae9365 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e9526b43370458899ac7c192f651ec8b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/edefa48dfc6b66b08d68e6438d1344b4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f54e09def1ebda9d30f2c9e507c4cfed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f55c8dc7137551c5fff69d2c179ea900 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fde3d3c8658f07dd5aef16cc104c05c9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/feb5e7071e30ce243a861932e21945b1 +0 -0
- data/test/dummy/tmp/cache/sass/027d3fbe01791eb6107c6a3ad3a9a18ef7806de0/fcbklistselection.scssc +0 -0
- data/test/dummy/tmp/cache/sass/476f0290d8684ee445559257946d9bfbba0a7490/bootstrap-base.scssc +0 -0
- data/test/dummy/tmp/cache/sass/476f0290d8684ee445559257946d9bfbba0a7490/bootstrap-comp.scssc +0 -0
- data/test/dummy/tmp/cache/sass/476f0290d8684ee445559257946d9bfbba0a7490/bootstrap-form.scssc +0 -0
- data/test/dummy/tmp/cache/sass/476f0290d8684ee445559257946d9bfbba0a7490/bootstrap-media.scssc +0 -0
- data/test/dummy/tmp/cache/sass/476f0290d8684ee445559257946d9bfbba0a7490/bootstrap-mixin.scssc +0 -0
- data/test/dummy/tmp/cache/sass/476f0290d8684ee445559257946d9bfbba0a7490/bootstrap-table.scssc +0 -0
- data/test/dummy/tmp/cache/sass/7962b5625c147f225692330aa36a6e4a877e2e52/fcbklistselection.scssc +0 -0
- data/test/dummy/tmp/cache/sass/e4850d758e9663c32ffb065821c1e8a49db1e755/bootstrap-base.scssc +0 -0
- data/test/dummy/tmp/cache/sass/e4850d758e9663c32ffb065821c1e8a49db1e755/bootstrap-comp.scssc +0 -0
- data/test/dummy/tmp/cache/sass/e4850d758e9663c32ffb065821c1e8a49db1e755/bootstrap-form.scssc +0 -0
- data/test/dummy/tmp/cache/sass/e4850d758e9663c32ffb065821c1e8a49db1e755/bootstrap-media.scssc +0 -0
- data/test/dummy/tmp/cache/sass/e4850d758e9663c32ffb065821c1e8a49db1e755/bootstrap-mixin.scssc +0 -0
- data/test/dummy/tmp/cache/sass/e4850d758e9663c32ffb065821c1e8a49db1e755/bootstrap-table.scssc +0 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/helpers/bootstrap_base_helper_test.rb +47 -0
- data/test/unit/helpers/bootstrap_button_helper_test.rb +56 -0
- data/test/unit/helpers/bootstrap_component_helper_test.rb +130 -0
- data/test/unit/helpers/bootstrap_notify_helper_test.rb +10 -0
- data/test/unit/helpers/bootstrap_tab_helper_test.rb +27 -0
- metadata +1021 -0
@@ -0,0 +1,124 @@
|
|
1
|
+
#coding: utf-8
|
2
|
+
module BootstrapTabHelper
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
include BootstrapHelper
|
6
|
+
|
7
|
+
class TabBuilder
|
8
|
+
attr_accessor :tabs, :default_index, :options, :template
|
9
|
+
|
10
|
+
def initialize(index, template, options={})
|
11
|
+
@default_index, @options, @template = index, options, template
|
12
|
+
@tabs = {}
|
13
|
+
end
|
14
|
+
|
15
|
+
# tab label and content of tabs
|
16
|
+
#
|
17
|
+
# label - label of tab
|
18
|
+
# options -
|
19
|
+
# disabled - true, false default: false
|
20
|
+
# clickable - true, false default: true
|
21
|
+
# other options that can be accpted by li
|
22
|
+
# pane_options -
|
23
|
+
# every option that can be accepted by div
|
24
|
+
def tab(label, options={}, &proc)
|
25
|
+
default_options = {disabled: false, clickable: true}
|
26
|
+
pane_options = options.delete(:pane_options) || {}
|
27
|
+
@tabs[label] = [options.reverse_merge!(default_options), pane_options, proc]
|
28
|
+
end
|
29
|
+
|
30
|
+
def to_s
|
31
|
+
|
32
|
+
style = @options.delete(:style)
|
33
|
+
inline = @options.delete(:inline)
|
34
|
+
position = @options.delete(:position)
|
35
|
+
#align = @options.delete(:align)
|
36
|
+
stacked = @options.delete(:stacked)
|
37
|
+
|
38
|
+
@options[:class] ||= ''
|
39
|
+
@options[:class] << ' nav-stacked' if stacked
|
40
|
+
#@options[:class] << " pull-#{align}" if align
|
41
|
+
@options[:class] << ' nav nav-tabs' if style == 'tab'
|
42
|
+
@options[:class] << ' nav nav-pills' if style == 'pill'
|
43
|
+
|
44
|
+
wrap_options = {style: "display: #{inline ? 'inline-block' : 'block'};", class: " tabbable tabs-#{position}"}
|
45
|
+
|
46
|
+
content_options = @options.delete(:content_options) || {}
|
47
|
+
content_options[:class] ||= ''
|
48
|
+
content_options[:class] << ' tab-content'
|
49
|
+
|
50
|
+
@template.div(wrap_options) do
|
51
|
+
tab_content = ''
|
52
|
+
tab_content << @template.list(@options) do |li|
|
53
|
+
@tabs.keys.each do |k|
|
54
|
+
render_label(li, style,
|
55
|
+
k,
|
56
|
+
@tabs.keys.index(k) == @default_index.to_i,
|
57
|
+
"#{@options[:id]}-tab-#{@tabs.keys.index(k)}",
|
58
|
+
@tabs[k][0])
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
tab_content << @template.div(content_options) do
|
63
|
+
tab_panes = ''
|
64
|
+
@tabs.values.each do |v|
|
65
|
+
|
66
|
+
tab_panes << render_content(@tabs.values.index(v) == @default_index.to_i,
|
67
|
+
"#{@options[:id]}-tab-#{@tabs.values.index(v)}",
|
68
|
+
v[1],
|
69
|
+
&v[2])
|
70
|
+
|
71
|
+
end
|
72
|
+
tab_panes.html_safe
|
73
|
+
end
|
74
|
+
|
75
|
+
tab_content.html_safe
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
private
|
81
|
+
|
82
|
+
def render_label(li, style, title, show, link_id, options={})
|
83
|
+
tab_class = show ? 'active' : ''
|
84
|
+
tab_class << ' disabled' if options.delete(:disabled)
|
85
|
+
|
86
|
+
clickable = options.delete(:clickable)
|
87
|
+
|
88
|
+
li.add @template.link_to(title.html_safe, "##{clickable ? link_id : ''}", data: {toggle: style}),
|
89
|
+
options.merge!({class: tab_class})
|
90
|
+
end
|
91
|
+
|
92
|
+
def render_content(show, link_id, options={}, &proc)
|
93
|
+
|
94
|
+
options[:class] ||= ''
|
95
|
+
options[:class] << " tab-pane #{show ? 'active' : ''}"
|
96
|
+
options[:id] = link_id
|
97
|
+
|
98
|
+
@template.div(options) do
|
99
|
+
@template.capture(&proc) if proc
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
#显示tab页
|
105
|
+
#index: 默认显示第几个标签
|
106
|
+
#options:
|
107
|
+
# style: pill, tab default: tab
|
108
|
+
# position: below, left, right direction of tab
|
109
|
+
# align: left, right. the alignment of tab, NOT AVAILABLE NOW
|
110
|
+
# inline: true ,false default: false
|
111
|
+
# stacked: true, false default: false
|
112
|
+
# content_options
|
113
|
+
# every option that can be accepted by div
|
114
|
+
def tabs(index=0, options={}, &proc)
|
115
|
+
default_options = {inline: false, stacked: false, id: 'tabs', style: 'tab'}
|
116
|
+
index, options = 0, index if index.is_a?(Hash)
|
117
|
+
|
118
|
+
builder = TabBuilder.new(index, self, options.reverse_merge!(default_options))
|
119
|
+
capture(builder, &proc)
|
120
|
+
builder.to_s
|
121
|
+
end
|
122
|
+
|
123
|
+
|
124
|
+
end
|
@@ -0,0 +1,341 @@
|
|
1
|
+
#coding: utf-8
|
2
|
+
module BootstrapTableHelper
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
include BootstrapHelper
|
6
|
+
|
7
|
+
class Row
|
8
|
+
attr_accessor :columns, :options, :template
|
9
|
+
|
10
|
+
def initialize(template, options={}, &block)
|
11
|
+
self.template = template
|
12
|
+
self.options = options
|
13
|
+
self.columns = []
|
14
|
+
block.call(self)
|
15
|
+
end
|
16
|
+
|
17
|
+
def column(options={}, &block)
|
18
|
+
columns << [options, block]
|
19
|
+
end
|
20
|
+
|
21
|
+
def to_s
|
22
|
+
template.content_tag(:tr, nil, options) do
|
23
|
+
tr_content = []
|
24
|
+
columns.each do |column|
|
25
|
+
column_options = column.first
|
26
|
+
column_options[:style] ||= ''
|
27
|
+
column_options[:style] << "text-align: #{column_options[:align]||'left'};"
|
28
|
+
tr_content << template.content_tag(:td, nil, column_options.dup.delete_if { |k, v| k.to_s == 'align' }) do
|
29
|
+
template.capture(&column.second)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
tr_content.join.html_safe
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
class Table
|
39
|
+
attr_accessor :headers, :columns, :rows, :options, :row_options, :template, :actions
|
40
|
+
|
41
|
+
def initialize(template, headers=nil, options={}, row_options={})
|
42
|
+
row_options, options, headers = options, headers, nil if headers.is_a?(Hash)
|
43
|
+
|
44
|
+
default_options = {show_seq: true, fixed: true}
|
45
|
+
|
46
|
+
self.template = template
|
47
|
+
self.headers = headers || []
|
48
|
+
self.options = options.reverse_merge!(default_options)
|
49
|
+
self.row_options = row_options
|
50
|
+
self.rows = []
|
51
|
+
self.columns = []
|
52
|
+
end
|
53
|
+
|
54
|
+
# options
|
55
|
+
# h - options of header
|
56
|
+
def column(options={}, &block)
|
57
|
+
header_options = options.delete(:h)
|
58
|
+
headers << header_options if header_options
|
59
|
+
|
60
|
+
columns << [options, block]
|
61
|
+
end
|
62
|
+
|
63
|
+
def row_options(options={})
|
64
|
+
self.row_options = options
|
65
|
+
end
|
66
|
+
|
67
|
+
def additional_row(options={}, &block)
|
68
|
+
rows << Row.new(template, options, &block)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Pass a block of actions instead of actions options in table options.
|
72
|
+
def actions(&block)
|
73
|
+
self.actions = block if block_given?
|
74
|
+
end
|
75
|
+
|
76
|
+
# Add header to table
|
77
|
+
#
|
78
|
+
# options - options of header
|
79
|
+
# w - width 1..12
|
80
|
+
# t - text of header, align center
|
81
|
+
# l - text of header, align left
|
82
|
+
# r - text of header, align right
|
83
|
+
# the other options that can be accepted by th
|
84
|
+
def header(options={})
|
85
|
+
self.headers << options
|
86
|
+
end
|
87
|
+
|
88
|
+
def to_s
|
89
|
+
table_id = options[:id] || "tbl-#{Random.rand(100000000)}"
|
90
|
+
|
91
|
+
table_class = ' table table-hover'
|
92
|
+
table_class << ' table-striped' if options.delete(:striped)
|
93
|
+
table_class << ' table-fluid' unless options.delete(:fixed)
|
94
|
+
table_class << ' table-bordered' if options.delete(:bordered)
|
95
|
+
table_class << ' table-condensed' if options.delete(:condensed)
|
96
|
+
|
97
|
+
options[:class] ||= ''
|
98
|
+
options[:class] << table_class
|
99
|
+
|
100
|
+
table_caption = options.delete(:caption)
|
101
|
+
action_array = options.delete(:actions)
|
102
|
+
|
103
|
+
show_seq = options.delete(:show_seq)
|
104
|
+
check = options.delete(:check)
|
105
|
+
radio = options.delete(:radio)
|
106
|
+
|
107
|
+
obj = options.delete(:obj)
|
108
|
+
cust_row = options.delete(:cust_row)
|
109
|
+
|
110
|
+
no_page = options.delete(:no_page)
|
111
|
+
pagi_param_name = options.delete(:pagi_param_name)
|
112
|
+
pagi_params = options.delete(:pagi_params)
|
113
|
+
pagi_method = options.delete(:pagi_method) || 'get'
|
114
|
+
pagi_form = options.delete(:pagi_form)
|
115
|
+
|
116
|
+
options[:style] ||= ''
|
117
|
+
options[:style] << ' margin-top: 25px; ' if actions || action_array && !action_array.empty?
|
118
|
+
|
119
|
+
template.content_tag(:table, nil, options) do
|
120
|
+
content = ''
|
121
|
+
if table_caption || actions || action_array
|
122
|
+
content << template.content_tag('caption') do
|
123
|
+
caption_div = ''
|
124
|
+
if actions
|
125
|
+
caption_div = template.capture(&actions)
|
126
|
+
elsif action_array && !action_array.empty?
|
127
|
+
caption_div = template.bg { action_array.map { |a| template.btn(a) }.join.html_safe }
|
128
|
+
end
|
129
|
+
|
130
|
+
template.div do
|
131
|
+
[template.content_tag('div', (table_caption||'').html_safe, style: 'font-weight: bold; font-size: large'),
|
132
|
+
template.content_tag('div', caption_div.html_safe, class: 'pull-left', style: 'position: relative; top: -25px')].join.html_safe
|
133
|
+
end
|
134
|
+
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# if header is null, then raise error
|
139
|
+
headers_count = []
|
140
|
+
if headers.empty? && !show_seq
|
141
|
+
raise 'Error! No Table Header! '
|
142
|
+
else
|
143
|
+
# if 2 or more rows of header
|
144
|
+
if headers.size > 0 && headers[0].is_a?(Array)
|
145
|
+
first_header = headers.shift
|
146
|
+
if check
|
147
|
+
first_header.unshift({w: 1, t: template.check_box_tag(table_id, '1', false, style: 'margin-top: 0'), rowspan: headers.size + 1})
|
148
|
+
elsif show_seq
|
149
|
+
first_header.unshift({w: 1, t: '#', rowspan: headers.size + 1})
|
150
|
+
end
|
151
|
+
|
152
|
+
headers.unshift(first_header)
|
153
|
+
|
154
|
+
content << template.content_tag('thead') do
|
155
|
+
header_content = []
|
156
|
+
headers.each do |header|
|
157
|
+
if headers.index(header) == 0
|
158
|
+
header_content << render_table_header(header, headers_count)
|
159
|
+
else
|
160
|
+
header_content << render_table_header(header)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
header_content.join.html_safe
|
164
|
+
end
|
165
|
+
|
166
|
+
elsif headers[0].is_a?(Hash)
|
167
|
+
if check
|
168
|
+
headers.unshift({w: 1, t: template.check_box_tag(table_id, '1', false, style: 'margin-top: 0')})
|
169
|
+
elsif show_seq
|
170
|
+
headers.unshift({w: 1, t: '#'})
|
171
|
+
end
|
172
|
+
content << template.content_tag('thead') { render_table_header(headers, headers_count) }
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
content << template.content_tag(:tbody) do
|
177
|
+
tbody_content = ''
|
178
|
+
# render table content
|
179
|
+
if obj && !cust_row && !obj.empty?
|
180
|
+
obj_index = 0
|
181
|
+
obj.each do |o|
|
182
|
+
tbody_content << template.content_tag(:tr, nil, row_options) do
|
183
|
+
tr_content = []
|
184
|
+
if check
|
185
|
+
tr_content << template.content_tag(:td, style: 'text-align: center') do
|
186
|
+
template.check_box_tag(table_id, o.id, false, style: 'margin-top: 0')
|
187
|
+
end
|
188
|
+
elsif radio
|
189
|
+
tr_content << template.content_tag(:td, style: 'text-align: center') do
|
190
|
+
template.radio_button_tag(table_id, o.id, false, style: 'margin-top: 0')
|
191
|
+
end
|
192
|
+
elsif show_seq
|
193
|
+
if no_page
|
194
|
+
tr_content << template.content_tag(:td, obj_index+1, style: 'text-align: center')
|
195
|
+
else
|
196
|
+
tr_content << template.content_tag(:td, seq(obj, o, obj.current_page), style: 'text-align: center')
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
columns.each do |column|
|
201
|
+
column_options = column.first
|
202
|
+
column_options[:style] ||= ''
|
203
|
+
column_options[:style] << "text-align: #{column_options[:align]||'left'};"
|
204
|
+
tr_content << template.content_tag(:td, nil, column_options.dup.delete_if { |k, v| k.to_s == 'align' }) do
|
205
|
+
template.capture(o, obj_index, &column.second)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
tr_content.join.html_safe
|
210
|
+
end
|
211
|
+
obj_index += 1
|
212
|
+
end
|
213
|
+
|
214
|
+
rows.each do |r|
|
215
|
+
tbody_content << r.to_s
|
216
|
+
end
|
217
|
+
# 全自定义行
|
218
|
+
else
|
219
|
+
rows.each do |r|
|
220
|
+
tbody_content << r.to_s
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# render pagination
|
225
|
+
if obj && !no_page && obj.respond_to?('total_pages') && obj.total_pages > 1
|
226
|
+
#根据headers_count 计算colspan
|
227
|
+
colspan = headers_count.map { |c| c.to_i }.sum
|
228
|
+
tbody_content << paginate_tr(colspan, obj, pagi_param_name, pagi_params, pagi_method, pagi_form)
|
229
|
+
end
|
230
|
+
|
231
|
+
tbody_content.html_safe
|
232
|
+
end
|
233
|
+
|
234
|
+
content.html_safe
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
#计算序号
|
240
|
+
#collection: 集合
|
241
|
+
#obj: 集合中的元素
|
242
|
+
#per_page: 每页显示记录数
|
243
|
+
def seq(collection, obj, p_page, p_per_page=nil)
|
244
|
+
if p_per_page.nil?
|
245
|
+
per_page = WillPaginate.per_page
|
246
|
+
else
|
247
|
+
per_page = p_per_page
|
248
|
+
end
|
249
|
+
|
250
|
+
page = p_page.to_i
|
251
|
+
if page < 1
|
252
|
+
page = 1
|
253
|
+
end
|
254
|
+
|
255
|
+
(page - 1) * per_page + collection.index(obj) + 1
|
256
|
+
end
|
257
|
+
|
258
|
+
private
|
259
|
+
|
260
|
+
#分页显示行
|
261
|
+
#colspan: 不说了
|
262
|
+
#collection: 分页的对象
|
263
|
+
#param_name: page参数的名称,默认为page
|
264
|
+
#p: 附加参数
|
265
|
+
def paginate_tr(colspan, collection, param_name=nil, p=nil, method='get', form=nil)
|
266
|
+
template.content_tag(:tr) do
|
267
|
+
template.content_tag(:td, nil, :colspan => colspan) do
|
268
|
+
params = {class: 'pagination pagination-centered'}
|
269
|
+
params[:param_name] = param_name if param_name
|
270
|
+
params[:params] = p
|
271
|
+
if method != 'get'
|
272
|
+
params[:form] = form
|
273
|
+
template.post_will_paginate(collection, params)
|
274
|
+
else
|
275
|
+
template.will_paginate(collection, params)
|
276
|
+
end
|
277
|
+
|
278
|
+
end
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
def render_table_header(headers, columns=[])
|
283
|
+
|
284
|
+
template.content_tag('tr') do
|
285
|
+
th_content = ''
|
286
|
+
headers.each do |h|
|
287
|
+
h[:style] ||= ''
|
288
|
+
if h.has_key?(:l)
|
289
|
+
title = h.delete(:l)
|
290
|
+
elsif h.has_key?(:r)
|
291
|
+
h[:style] << ' text-align: right;'
|
292
|
+
title = h.delete(:r)
|
293
|
+
else
|
294
|
+
h[:style] << ' text-align: center;'
|
295
|
+
title = h.delete(:t)
|
296
|
+
end
|
297
|
+
|
298
|
+
width = h.delete(:w)
|
299
|
+
h[:class] ||= ''
|
300
|
+
h[:class] << " span#{width}"
|
301
|
+
|
302
|
+
columns << (h[:colspan] || 1)
|
303
|
+
th_content << template.content_tag('th', title, h)
|
304
|
+
end
|
305
|
+
th_content.html_safe
|
306
|
+
end
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
# 显示标准table
|
311
|
+
# headers: 表头,数组[[{w: 1, t: 'xxx', colspan: 2, class: 'sss'}, {w: 2, t: 'yyy', rowspan: 2}], [{w: 1, t: 'yyy'}, {w: 1, t: 'zzz'}]],
|
312
|
+
# w是宽度,符合bootstrap 12列定义规范,t是表头的名称 ,options是任何th可以接受的options,如果有数组中有多个元素,则显示多个表头行
|
313
|
+
# 如果show_seq = false,则加起来为12列,否则加起来11列即可,序号列自动给出
|
314
|
+
#
|
315
|
+
# options: Hash
|
316
|
+
# caption: caption of table.
|
317
|
+
# show_seq: true, false default: true
|
318
|
+
# obj: the object to generate table.
|
319
|
+
# cust_row: true, false. Don't use passed object to generate table. default: false
|
320
|
+
# no_page: true, false default: false
|
321
|
+
# fixed: true, false default: true
|
322
|
+
# striped: true, false default: false
|
323
|
+
# bordered: true,false. default: false
|
324
|
+
# condensed: true, false. default: false
|
325
|
+
# check: true, false. Show checkbox on the first column of table instead of seq. default: false
|
326
|
+
# radio: true, false. Show radio button on the first column of table instead of seq. default: false
|
327
|
+
#
|
328
|
+
# actions: Array [{js: link, value: xxxx, icon: zzz}, {js: link2, value: yyyy}]
|
329
|
+
#
|
330
|
+
# pagi_param_name: 分页参数的名称
|
331
|
+
# pagi_params: 分页附加参数
|
332
|
+
# pagi_method: get, post
|
333
|
+
# pagi_form: must be provided when post
|
334
|
+
def table(headers=nil, options={}, row_options={}, &block)
|
335
|
+
row_options, options, headers = options, headers, nil if headers.is_a?(Hash)
|
336
|
+
table = Table.new(self, headers, options, row_options)
|
337
|
+
capture(table, &block)
|
338
|
+
table.to_s
|
339
|
+
end
|
340
|
+
|
341
|
+
end
|