typus 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +20 -9
- data/Gemfile.lock +93 -65
- data/MIT-LICENSE +1 -1
- data/README.md +61 -0
- data/Rakefile +5 -0
- data/app/controllers/admin/account_controller.rb +7 -10
- data/app/controllers/admin/base_controller.rb +16 -1
- data/app/controllers/admin/resources_controller.rb +270 -159
- data/app/controllers/admin/session_controller.rb +8 -9
- data/app/helpers/admin/base_helper.rb +13 -28
- data/app/helpers/admin/dashboard_helper.rb +4 -10
- data/app/helpers/admin/file_preview_helper.rb +70 -0
- data/app/helpers/admin/filters_helper.rb +64 -45
- data/app/helpers/admin/form_helper.rb +37 -62
- data/app/helpers/admin/relationships_helper.rb +63 -78
- data/app/helpers/admin/resources_helper.rb +10 -31
- data/app/helpers/admin/search_helper.rb +6 -9
- data/app/helpers/admin/sidebar_helper.rb +15 -20
- data/app/helpers/admin/table_helper.rb +79 -170
- data/app/mailers/admin/mailer.rb +1 -1
- data/app/views/admin/account/forgot_password.html.erb +2 -2
- data/app/views/admin/account/new.html.erb +8 -4
- data/app/views/admin/base/user_guide.html.erb +85 -0
- data/app/views/admin/dashboard/_sidebar.html.erb +3 -1
- data/app/views/admin/dashboard/show.html.erb +2 -2
- data/app/views/admin/dashboard/styles.html.erb +2 -2
- data/app/views/admin/helpers/_apps.html.erb +5 -4
- data/app/views/admin/helpers/_file_preview.html.erb +3 -0
- data/app/views/admin/helpers/_header.html.erb +3 -3
- data/app/views/admin/helpers/_login_info.html.erb +2 -2
- data/app/views/admin/helpers/dashboard/_applications.html.erb +6 -9
- data/app/views/admin/helpers/dashboard/_resources.html.erb +2 -3
- data/app/views/admin/helpers/filters/_filters.html.erb +1 -1
- data/app/views/admin/helpers/resources/_display_link_to_previous.html.erb +1 -1
- data/app/views/admin/helpers/resources/_errors.html.erb +10 -0
- data/app/views/admin/helpers/search/_search.html.erb +1 -1
- data/app/views/admin/helpers/sidebar/_sidebar.html.erb +6 -3
- data/app/views/admin/helpers/table/_table.html.erb +17 -5
- data/app/views/admin/mailer/reset_password_link.text.erb +2 -2
- data/app/views/admin/resources/_form.html.erb +3 -12
- data/app/views/admin/resources/edit.html.erb +7 -5
- data/app/views/admin/resources/index.html.erb +13 -18
- data/app/views/admin/resources/new.html.erb +4 -4
- data/app/views/admin/resources/show.html.erb +9 -13
- data/app/views/admin/session/new.html.erb +8 -4
- data/app/views/admin/templates/_belongs_to.html.erb +1 -1
- data/app/views/admin/templates/_boolean.html.erb +2 -2
- data/app/views/admin/templates/_date.html.erb +2 -2
- data/app/views/admin/templates/_datetime.html.erb +2 -2
- data/app/views/admin/templates/_file.html.erb +3 -19
- data/app/views/admin/templates/_has_n.html.erb +4 -4
- data/app/views/admin/templates/_has_one.html.erb +14 -0
- data/app/views/admin/templates/_password.html.erb +2 -2
- data/app/views/admin/templates/_profile_sidebar.html.erb +3 -0
- data/app/views/admin/templates/_relate_form.html.erb +2 -1
- data/app/views/admin/templates/_selector.html.erb +1 -1
- data/app/views/admin/templates/_string.html.erb +6 -6
- data/app/views/admin/templates/_text.html.erb +11 -4
- data/app/views/admin/templates/_time.html.erb +2 -2
- data/app/views/admin/templates/_tree.html.erb +1 -1
- data/app/views/layouts/admin/base.html.erb +7 -6
- data/app/views/layouts/admin/session.html.erb +4 -14
- data/config/{available_locales/ca_models.yml → locales/typus.ca.models.yml} +5 -4
- data/config/locales/typus.ca.yml +81 -0
- data/config/{available_locales/de_models.yml → locales/typus.de.models.yml} +6 -2
- data/config/locales/typus.de.yml +80 -0
- data/config/locales/typus.el.models.yml +17 -0
- data/config/locales/typus.el.yml +82 -0
- data/config/{available_locales/es_models.yml → locales/typus.es.models.yml} +9 -4
- data/config/locales/typus.es.yml +82 -0
- data/config/{available_locales/fr_models.yml → locales/typus.fr.models.yml} +8 -3
- data/config/locales/typus.fr.yml +87 -0
- data/config/{available_locales/hu_models.yml → locales/typus.hu.models.yml} +6 -2
- data/config/locales/typus.hu.yml +80 -0
- data/config/{available_locales/it_models.yml → locales/typus.it.models.yml} +7 -4
- data/config/locales/typus.it.yml +89 -0
- data/config/{available_locales/language_models.yml.template → locales/typus.locale.models.yml.template} +8 -4
- data/config/locales/typus.locale.yml.template +81 -0
- data/config/{available_locales/pt-BR_models.yml → locales/typus.pt-BR.models.yml} +6 -2
- data/config/locales/typus.pt-BR.yml +80 -0
- data/config/{available_locales/ru_models.yml → locales/typus.ru.models.yml} +6 -2
- data/config/locales/typus.ru.yml +80 -0
- data/config/locales/typus.zh-CN.models.yml +17 -0
- data/config/locales/typus.zh-CN.yml +79 -0
- data/config/routes.rb +11 -7
- data/lib/generators/templates/config/initializers/typus.rb +8 -5
- data/lib/generators/templates/config/initializers/typus_resources.rb +0 -3
- data/lib/generators/templates/config/typus/README +6 -6
- data/lib/generators/templates/config/typus/typus.yml +5 -5
- data/lib/generators/templates/controller.rb +1 -1
- data/lib/generators/templates/migration.rb +1 -0
- data/lib/generators/templates/public/admin/javascripts/application.js +0 -4
- data/lib/generators/templates/public/admin/javascripts/jquery-1.4.4.min.js +167 -0
- data/lib/generators/templates/public/admin/javascripts/jquery.application.js +16 -0
- data/lib/generators/templates/public/admin/javascripts/jquery.rails.js +50 -22
- data/lib/generators/templates/public/admin/stylesheets/screen.css +43 -34
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_loading.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.easing-1.3.pack.js +32 -32
- data/lib/generators/templates/public/admin/vendor/fancybox/{jquery.fancybox-1.3.1.css → jquery.fancybox-1.3.4.css} +359 -363
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.js +1156 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
- data/lib/generators/typus/assets_generator.rb +23 -0
- data/lib/generators/typus/controller_generator.rb +29 -0
- data/lib/generators/typus/migration_generator.rb +39 -20
- data/lib/generators/typus/typus_generator.rb +17 -57
- data/lib/generators/typus/views_generator.rb +2 -6
- data/lib/support/active_record.rb +8 -20
- data/lib/support/fake_user.rb +6 -1
- data/lib/support/hash.rb +1 -2
- data/lib/support/object.rb +4 -17
- data/lib/support/string.rb +34 -3
- data/lib/tasks/typus.rake +1 -1
- data/lib/typus.rb +60 -48
- data/lib/typus/actions.rb +27 -0
- data/lib/typus/authentication/base.rb +3 -4
- data/lib/typus/authentication/http_basic.rb +1 -1
- data/lib/typus/authentication/none.rb +1 -1
- data/lib/typus/authentication/session.rb +53 -108
- data/lib/typus/configuration.rb +13 -11
- data/lib/typus/filters.rb +12 -0
- data/lib/typus/format.rb +9 -13
- data/lib/typus/i18n.rb +30 -0
- data/lib/typus/orm/active_record.rb +97 -194
- data/lib/typus/orm/active_record/search.rb +91 -0
- data/lib/typus/resources.rb +6 -10
- data/lib/typus/user.rb +20 -40
- data/lib/typus/version.rb +1 -1
- metadata +77 -231
- data/CHANGELOG +0 -102
- data/README.rdoc +0 -48
- data/app/helpers/admin/preview_helper.rb +0 -46
- data/app/views/admin/helpers/_preview.html.erb +0 -13
- data/app/views/admin/templates/_has_many.html.erb +0 -22
- data/config/available_locales/ca.yml +0 -122
- data/config/available_locales/de.yml +0 -122
- data/config/available_locales/es.yml +0 -122
- data/config/available_locales/fr.yml +0 -127
- data/config/available_locales/hu.yml +0 -122
- data/config/available_locales/it.yml +0 -132
- data/config/available_locales/language.yml.template +0 -120
- data/config/available_locales/pt-BR.yml +0 -122
- data/config/available_locales/ru.yml +0 -122
- data/lib/generators/templates/functional_test.rb +0 -10
- data/lib/generators/templates/model.rb +0 -8
- data/lib/generators/templates/public/admin/images/ui-icons.png +0 -0
- data/lib/generators/templates/public/admin/javascripts/jquery-1.4.2.min.js +0 -154
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.js +0 -1077
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js +0 -13
- data/lib/typus/pagination.rb +0 -18
- data/test/factories.rb +0 -43
- data/test/fixtures/config/broken/application.yml +0 -68
- data/test/fixtures/config/broken/application_roles.yml +0 -20
- data/test/fixtures/config/broken/empty.yml +0 -0
- data/test/fixtures/config/broken/empty_roles.yml +0 -0
- data/test/fixtures/config/broken/undefined.yml +0 -3
- data/test/fixtures/config/broken/undefined_roles.yml +0 -6
- data/test/fixtures/config/default/typus.yml +0 -13
- data/test/fixtures/config/default/typus_roles.yml +0 -2
- data/test/fixtures/config/empty/empty_01.yml +0 -0
- data/test/fixtures/config/empty/empty_01_roles.yml +0 -0
- data/test/fixtures/config/empty/empty_02.yml +0 -0
- data/test/fixtures/config/empty/empty_02_roles.yml +0 -0
- data/test/fixtures/config/locales/es.yml +0 -10
- data/test/fixtures/config/namespaced/application.yml +0 -5
- data/test/fixtures/config/namespaced/application_roles.yml +0 -2
- data/test/fixtures/config/ordered/001_roles.yml +0 -2
- data/test/fixtures/config/ordered/002_roles.yml +0 -2
- data/test/fixtures/config/unordered/app_one_roles.yml +0 -2
- data/test/fixtures/config/unordered/app_two_roles.yml +0 -2
- data/test/fixtures/config/working/application.yml +0 -73
- data/test/fixtures/config/working/application_roles.yml +0 -24
- data/test/fixtures/config/working/typus.yml +0 -13
- data/test/fixtures/config/working/typus_roles.yml +0 -2
- data/test/fixtures/rails_app/Rakefile +0 -7
- data/test/fixtures/rails_app/app/controllers/admin/assets_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/categories_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/comments_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/pages_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/pictures_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/posts_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/status_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/application_controller.rb +0 -3
- data/test/fixtures/rails_app/app/models/asset.rb +0 -5
- data/test/fixtures/rails_app/app/models/category.rb +0 -11
- data/test/fixtures/rails_app/app/models/comment.rb +0 -6
- data/test/fixtures/rails_app/app/models/custom_user.rb +0 -2
- data/test/fixtures/rails_app/app/models/delayed/task.rb +0 -5
- data/test/fixtures/rails_app/app/models/page.rb +0 -5
- data/test/fixtures/rails_app/app/models/picture.rb +0 -6
- data/test/fixtures/rails_app/app/models/post.rb +0 -21
- data/test/fixtures/rails_app/app/models/typus_user.rb +0 -8
- data/test/fixtures/rails_app/app/models/view.rb +0 -5
- data/test/fixtures/rails_app/app/views/admin/categories/_form.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/dashboard/_sidebar.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/mailer/reset_password_link.text.erb +0 -6
- data/test/fixtures/rails_app/app/views/admin/posts/_edit.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/posts/_index.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/posts/_new.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/posts/_show.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/posts/_sidebar.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/status/index.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb +0 -1
- data/test/fixtures/rails_app/config.ru +0 -4
- data/test/fixtures/rails_app/config/application.rb +0 -53
- data/test/fixtures/rails_app/config/boot.rb +0 -13
- data/test/fixtures/rails_app/config/database.yml +0 -14
- data/test/fixtures/rails_app/config/environment.rb +0 -5
- data/test/fixtures/rails_app/config/environments/test.rb +0 -34
- data/test/fixtures/rails_app/config/initializers/secret_token.rb +0 -7
- data/test/fixtures/rails_app/config/initializers/session_store.rb +0 -8
- data/test/fixtures/rails_app/config/initializers/typus.rb +0 -6
- data/test/fixtures/rails_app/config/routes.rb +0 -5
- data/test/fixtures/rails_app/config/typus/application.yml +0 -79
- data/test/fixtures/rails_app/config/typus/application_roles.yml +0 -25
- data/test/fixtures/rails_app/config/typus/typus.yml +0 -12
- data/test/fixtures/rails_app/config/typus/typus_roles.yml +0 -2
- data/test/fixtures/rails_app/db/test.sqlite3 +0 -0
- data/test/fixtures/rails_app/tmp/export-posts-20101012213057.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012213132.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012213234.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012213506.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215057.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215217.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215415.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215443.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215509.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215528.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215551.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215615.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215640.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215714.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215744.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215814.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215836.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012215906.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012220659.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012221043.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012221258.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012222558.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012222752.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012222848.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012223433.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012223535.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012224003.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012224052.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012224109.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012224139.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012224205.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012224243.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101012225119.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063215.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063300.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063352.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063427.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063448.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063530.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063559.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063646.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063737.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063822.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063837.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063919.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063939.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013063952.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013064220.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013064253.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013064318.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013064404.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013064452.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013064536.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013064652.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013064845.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013065023.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013065137.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013065713.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013065954.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070057.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070116.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070156.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070349.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070429.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070448.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070514.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070709.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070745.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070809.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070905.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013070955.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013071116.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013071209.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013071335.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013071632.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013071643.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013071735.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013071749.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013072030.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013072050.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013072108.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013072713.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013072751.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013072912.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101013074546.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101018180512.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101018183359.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101018183608.csv +0 -2
- data/test/fixtures/rails_app/tmp/export-posts-20101018183759.csv +0 -2
- data/test/functional/admin/account_controller_test.rb +0 -90
- data/test/functional/admin/assets_controller_test.rb +0 -55
- data/test/functional/admin/categories_controller_test.rb +0 -62
- data/test/functional/admin/comments_controller_test.rb +0 -21
- data/test/functional/admin/dashboard_controller_test.rb +0 -138
- data/test/functional/admin/posts_controller_test.rb +0 -548
- data/test/functional/admin/session_controller_test.rb +0 -85
- data/test/functional/admin/status_controller_test.rb +0 -46
- data/test/functional/admin/typus_users_controller_test.rb +0 -159
- data/test/helpers/admin/base_helper_test.rb +0 -67
- data/test/helpers/admin/dashboard_helper_test.rb +0 -19
- data/test/helpers/admin/form_helper_test.rb +0 -117
- data/test/helpers/admin/resources_helper_test.rb +0 -64
- data/test/helpers/admin/sidebar_helper_test.rb +0 -274
- data/test/helpers/admin/table_helper_test.rb +0 -219
- data/test/integration/login_test.rb +0 -13
- data/test/integration_test_helper.rb +0 -21
- data/test/lib/support/active_record_test.rb +0 -86
- data/test/lib/support/array_test.rb +0 -11
- data/test/lib/support/hash_test.rb +0 -11
- data/test/lib/support/string_test.rb +0 -39
- data/test/lib/typus/active_record_test.rb +0 -451
- data/test/lib/typus/configuration_test.rb +0 -52
- data/test/lib/typus/resource_test.rb +0 -17
- data/test/lib/typus/routes_test.rb +0 -29
- data/test/lib/typus_test.rb +0 -107
- data/test/schema.rb +0 -100
- data/test/test_helper.rb +0 -16
- data/test/unit/admin/mailer_test.rb +0 -32
- data/test/unit/typus_user_roles_test.rb +0 -105
- data/test/unit/typus_user_test.rb +0 -142
- data/typus.gemspec +0 -25
|
@@ -24,12 +24,7 @@ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abb
|
|
|
24
24
|
|
|
25
25
|
/* @group Defaults */
|
|
26
26
|
|
|
27
|
-
html,
|
|
28
|
-
body {
|
|
29
|
-
margin: 0;
|
|
30
|
-
padding: 0;
|
|
31
|
-
height: 100%;
|
|
32
|
-
}
|
|
27
|
+
html, body {}
|
|
33
28
|
|
|
34
29
|
body {
|
|
35
30
|
font-family: "Lucida Grande", Sans-serif;
|
|
@@ -61,7 +56,7 @@ li { color: #777; }
|
|
|
61
56
|
a,
|
|
62
57
|
a:visited,
|
|
63
58
|
a:link { color: #000; font-weight: normal; }
|
|
64
|
-
a:hover { color: #333; text-decoration: underline; }
|
|
59
|
+
a:hover { color: #333; text-decoration: underline!important; }
|
|
65
60
|
|
|
66
61
|
/* @end */
|
|
67
62
|
|
|
@@ -109,6 +104,7 @@ a:hover { color: #333; text-decoration: underline; }
|
|
|
109
104
|
/* @group Content */
|
|
110
105
|
|
|
111
106
|
#content { margin: 0 0 0 20em; }
|
|
107
|
+
#content.headless { margin: 1em; }
|
|
112
108
|
|
|
113
109
|
#content h2 { font-size: 1.5em; margin: 0.5em 0; }
|
|
114
110
|
#content h2 small { font-size: 0.75em; }
|
|
@@ -159,21 +155,13 @@ a:hover { color: #333; text-decoration: underline; }
|
|
|
159
155
|
#sidebar ul li { padding: 0.25em 1em; }
|
|
160
156
|
|
|
161
157
|
#sidebar a { text-decoration: none; }
|
|
162
|
-
#sidebar a:hover { text-decoration: underline; }
|
|
158
|
+
#sidebar li a:hover { text-decoration: underline; }
|
|
163
159
|
|
|
164
160
|
/* @end */
|
|
165
161
|
|
|
166
162
|
/* @group Footer */
|
|
167
163
|
|
|
168
|
-
#footer_wrapper {
|
|
169
|
-
bottom: 0;
|
|
170
|
-
height: 50px;
|
|
171
|
-
position: absolute;
|
|
172
|
-
width: 100%;
|
|
173
|
-
z-index: -100;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
#footer { font-size: 0.9em; padding: 20px; }
|
|
164
|
+
#footer_wrapper { display: none; }
|
|
177
165
|
|
|
178
166
|
/* @end */
|
|
179
167
|
|
|
@@ -182,7 +170,8 @@ a:hover { color: #333; text-decoration: underline; }
|
|
|
182
170
|
fieldset { margin: 0; padding: 0; }
|
|
183
171
|
fieldset ol { margin: 0!important; }
|
|
184
172
|
fieldset ol li { list-style: none!important; margin: 1em 0!important; }
|
|
185
|
-
fieldset small { font-size: 0.9em; font-weight: normal; }
|
|
173
|
+
fieldset small { font-size: 0.9em; font-weight: normal; margin: 0 0 0 0.25em; }
|
|
174
|
+
fieldset small a { text-decoration: none; }
|
|
186
175
|
|
|
187
176
|
fieldset.inputs { }
|
|
188
177
|
|
|
@@ -194,7 +183,7 @@ fieldset.inputs { }
|
|
|
194
183
|
}
|
|
195
184
|
|
|
196
185
|
fieldset.inputs input[type='text']:focus,
|
|
197
|
-
fieldset.inputs input[type='password']:focus
|
|
186
|
+
fieldset.inputs input[type='password']:focus {
|
|
198
187
|
background: #FFFCE1;
|
|
199
188
|
}
|
|
200
189
|
|
|
@@ -244,12 +233,12 @@ fieldset.buttons { }
|
|
|
244
233
|
margin: 0 0 1em 0;
|
|
245
234
|
}
|
|
246
235
|
|
|
247
|
-
#account #box h1 { margin: 0.5em 0
|
|
236
|
+
#account #box h1 { margin: 0.5em 0; }
|
|
248
237
|
#account #box ul { margin: 1.5em 0 0.5em 0; }
|
|
249
238
|
#account #box li { margin: 1em 0; }
|
|
250
239
|
|
|
251
240
|
#account #box input.text { font-size: 2em; padding: 0.25em; width: 17.25em; }
|
|
252
|
-
#account #box input.button { margin: 0.5em
|
|
241
|
+
#account #box input.button { margin: 0.5em 1em 0 0; }
|
|
253
242
|
|
|
254
243
|
#account #footer { font-size: 0.9em; line-height: 1.8em; text-align: center; }
|
|
255
244
|
#account #footer a { font-weight: bold; }
|
|
@@ -258,15 +247,23 @@ fieldset.buttons { }
|
|
|
258
247
|
|
|
259
248
|
/* @group Pagination */
|
|
260
249
|
|
|
261
|
-
.pagination {
|
|
250
|
+
.pagination {
|
|
251
|
+
border-top: 1px solid #D3D3D3;
|
|
252
|
+
margin: 1.5em auto;
|
|
253
|
+
padding: 1em 0;
|
|
254
|
+
text-align: center;
|
|
255
|
+
}
|
|
262
256
|
|
|
257
|
+
.pagination em { font-style: normal!important; }
|
|
258
|
+
.pagination em,
|
|
263
259
|
.pagination a { padding: 3px 5px; text-decoration: none; }
|
|
264
|
-
.pagination a:hover
|
|
260
|
+
.pagination a:hover,
|
|
261
|
+
.pagination em { background: #000; color: #FFF; }
|
|
265
262
|
|
|
266
263
|
.pagination span.disabled { color: #D3D3D3; margin: 2px; padding: 2px 3px; }
|
|
267
264
|
|
|
268
|
-
.pagination .
|
|
269
|
-
.pagination .
|
|
265
|
+
.pagination .previous_page { float: left; }
|
|
266
|
+
.pagination .next_page { float: right; }
|
|
270
267
|
|
|
271
268
|
/* @end */
|
|
272
269
|
|
|
@@ -276,10 +273,11 @@ fieldset.buttons { }
|
|
|
276
273
|
.alert,
|
|
277
274
|
.notice {
|
|
278
275
|
padding: 0.8em;
|
|
279
|
-
margin
|
|
276
|
+
margin: 1em 0;
|
|
280
277
|
border: 1px solid #ddd;
|
|
281
278
|
-moz-border-radius: 8px;
|
|
282
279
|
-webkit-border-radius: 8px;
|
|
280
|
+
line-height: 1.5em;
|
|
283
281
|
}
|
|
284
282
|
|
|
285
283
|
#errorExplanation p,
|
|
@@ -327,14 +325,6 @@ fieldset.buttons { }
|
|
|
327
325
|
|
|
328
326
|
/* @end */
|
|
329
327
|
|
|
330
|
-
/* @group Sprite */
|
|
331
|
-
|
|
332
|
-
.sprite { background: url(../images/ui-icons.png) no-repeat; text-indent: -10000px; }
|
|
333
|
-
.trash { background-position: -177px -97px; height: 15px; width: 15px; }
|
|
334
|
-
.unrelate { background-position: -145px -129px; height: 15px; width: 15px; }
|
|
335
|
-
|
|
336
|
-
/* @end */
|
|
337
|
-
|
|
338
328
|
/* @group Filters */
|
|
339
329
|
|
|
340
330
|
#content .filters {
|
|
@@ -356,3 +346,22 @@ fieldset.buttons { }
|
|
|
356
346
|
#search input { font-size: 1em; padding: 3px; }
|
|
357
347
|
|
|
358
348
|
/* @end */
|
|
349
|
+
|
|
350
|
+
/* @group Misc */
|
|
351
|
+
|
|
352
|
+
ul.predefined_filters {
|
|
353
|
+
margin: 1em 0 0.5em 0!important;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
ul.predefined_filters li {
|
|
357
|
+
display: inline;
|
|
358
|
+
margin: 0 0.5em 0 0;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.actions {
|
|
362
|
+
font-size: 0.9em;
|
|
363
|
+
margin: 0.5em 0;
|
|
364
|
+
height: 1em;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* @end */
|
|
Binary file
|
|
@@ -5,33 +5,33 @@
|
|
|
5
5
|
* to offer multiple easing options
|
|
6
6
|
*
|
|
7
7
|
* TERMS OF USE - jQuery Easing
|
|
8
|
-
*
|
|
9
|
-
* Open source under the BSD License.
|
|
10
|
-
*
|
|
8
|
+
*
|
|
9
|
+
* Open source under the BSD License.
|
|
10
|
+
*
|
|
11
11
|
* Copyright © 2008 George McGinley Smith
|
|
12
12
|
* All rights reserved.
|
|
13
|
-
*
|
|
14
|
-
* Redistribution and use in source and binary forms, with or without modification,
|
|
13
|
+
*
|
|
14
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
15
15
|
* are permitted provided that the following conditions are met:
|
|
16
|
-
*
|
|
17
|
-
* Redistributions of source code must retain the above copyright notice, this list of
|
|
16
|
+
*
|
|
17
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
|
18
18
|
* conditions and the following disclaimer.
|
|
19
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
20
|
-
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
19
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
20
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
21
21
|
* provided with the distribution.
|
|
22
|
-
*
|
|
23
|
-
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
22
|
+
*
|
|
23
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
24
24
|
* or promote products derived from this software without specific prior written permission.
|
|
25
|
-
*
|
|
26
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
25
|
+
*
|
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
27
27
|
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
28
28
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
29
29
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
30
30
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
31
|
-
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
31
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
32
32
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
33
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
34
|
-
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
34
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
|
|
@@ -41,32 +41,32 @@ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a
|
|
|
41
41
|
/*
|
|
42
42
|
*
|
|
43
43
|
* TERMS OF USE - EASING EQUATIONS
|
|
44
|
-
*
|
|
45
|
-
* Open source under the BSD License.
|
|
46
|
-
*
|
|
44
|
+
*
|
|
45
|
+
* Open source under the BSD License.
|
|
46
|
+
*
|
|
47
47
|
* Copyright © 2001 Robert Penner
|
|
48
48
|
* All rights reserved.
|
|
49
|
-
*
|
|
50
|
-
* Redistribution and use in source and binary forms, with or without modification,
|
|
49
|
+
*
|
|
50
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
51
51
|
* are permitted provided that the following conditions are met:
|
|
52
|
-
*
|
|
53
|
-
* Redistributions of source code must retain the above copyright notice, this list of
|
|
52
|
+
*
|
|
53
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
|
54
54
|
* conditions and the following disclaimer.
|
|
55
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
56
|
-
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
55
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
56
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
57
57
|
* provided with the distribution.
|
|
58
|
-
*
|
|
59
|
-
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
58
|
+
*
|
|
59
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
60
60
|
* or promote products derived from this software without specific prior written permission.
|
|
61
|
-
*
|
|
62
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
61
|
+
*
|
|
62
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
63
63
|
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
64
64
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
65
65
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
66
66
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
67
|
-
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
67
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
68
68
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
69
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
70
|
-
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
69
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
70
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
@@ -1,363 +1,359 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* FancyBox - jQuery Plugin
|
|
3
|
-
* Simple and fancy lightbox alternative
|
|
4
|
-
*
|
|
5
|
-
* Examples and documentation at: http://fancybox.net
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* http://www.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
width: 40px;
|
|
23
|
-
|
|
24
|
-
margin-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
padding:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
position: relative;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
#fancybox-
|
|
87
|
-
position: absolute;
|
|
88
|
-
top: 0;
|
|
89
|
-
left: 0;
|
|
90
|
-
width:
|
|
91
|
-
height:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
height:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
height: 100%;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
position:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
background-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
#
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
background
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
#
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
background
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
#
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
#
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
#
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
.fancybox-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
.fancybox-ie #fancybox-
|
|
353
|
-
|
|
354
|
-
.fancybox-ie
|
|
355
|
-
|
|
356
|
-
.fancybox-ie #
|
|
357
|
-
.fancybox-ie #
|
|
358
|
-
.fancybox-ie #
|
|
359
|
-
.fancybox-ie #
|
|
360
|
-
.fancybox-ie #fancy-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
|
|
361
|
-
.fancybox-ie #fancy-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
|
|
362
|
-
.fancybox-ie #fancy-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
|
|
363
|
-
.fancybox-ie #fancy-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
|
|
1
|
+
/*
|
|
2
|
+
* FancyBox - jQuery Plugin
|
|
3
|
+
* Simple and fancy lightbox alternative
|
|
4
|
+
*
|
|
5
|
+
* Examples and documentation at: http://fancybox.net
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
|
8
|
+
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
|
9
|
+
*
|
|
10
|
+
* Version: 1.3.4 (11/11/2010)
|
|
11
|
+
* Requires: jQuery v1.3+
|
|
12
|
+
*
|
|
13
|
+
* Dual licensed under the MIT and GPL licenses:
|
|
14
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
15
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
#fancybox-loading {
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 50%;
|
|
22
|
+
width: 40px;
|
|
23
|
+
height: 40px;
|
|
24
|
+
margin-top: -20px;
|
|
25
|
+
margin-left: -20px;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
z-index: 1104;
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#fancybox-loading div {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
width: 40px;
|
|
37
|
+
height: 480px;
|
|
38
|
+
background-image: url('fancybox.png');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#fancybox-overlay {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
z-index: 1100;
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#fancybox-tmp {
|
|
51
|
+
padding: 0;
|
|
52
|
+
margin: 0;
|
|
53
|
+
border: 0;
|
|
54
|
+
overflow: auto;
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#fancybox-wrap {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
padding: 20px;
|
|
63
|
+
z-index: 1101;
|
|
64
|
+
outline: none;
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#fancybox-outer {
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
background: #fff;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#fancybox-content {
|
|
76
|
+
width: 0;
|
|
77
|
+
height: 0;
|
|
78
|
+
padding: 0;
|
|
79
|
+
outline: none;
|
|
80
|
+
position: relative;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
z-index: 1102;
|
|
83
|
+
border: 0px solid #fff;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#fancybox-hide-sel-frame {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 0;
|
|
89
|
+
left: 0;
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
background: transparent;
|
|
93
|
+
z-index: 1101;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#fancybox-close {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: -15px;
|
|
99
|
+
right: -15px;
|
|
100
|
+
width: 30px;
|
|
101
|
+
height: 30px;
|
|
102
|
+
background: transparent url('fancybox.png') -40px 0px;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
z-index: 1103;
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
#fancybox-error {
|
|
109
|
+
color: #444;
|
|
110
|
+
font: normal 12px/20px Arial;
|
|
111
|
+
padding: 14px;
|
|
112
|
+
margin: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
#fancybox-img {
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
padding: 0;
|
|
119
|
+
margin: 0;
|
|
120
|
+
border: none;
|
|
121
|
+
outline: none;
|
|
122
|
+
line-height: 0;
|
|
123
|
+
vertical-align: top;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#fancybox-frame {
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: 100%;
|
|
129
|
+
border: none;
|
|
130
|
+
display: block;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
#fancybox-left, #fancybox-right {
|
|
134
|
+
position: absolute;
|
|
135
|
+
bottom: 0px;
|
|
136
|
+
height: 100%;
|
|
137
|
+
width: 35%;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
outline: none;
|
|
140
|
+
background: transparent url('blank.gif');
|
|
141
|
+
z-index: 1102;
|
|
142
|
+
display: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#fancybox-left {
|
|
146
|
+
left: 0px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#fancybox-right {
|
|
150
|
+
right: 0px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
#fancybox-left-ico, #fancybox-right-ico {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 50%;
|
|
156
|
+
left: -9999px;
|
|
157
|
+
width: 30px;
|
|
158
|
+
height: 30px;
|
|
159
|
+
margin-top: -15px;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
z-index: 1102;
|
|
162
|
+
display: block;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#fancybox-left-ico {
|
|
166
|
+
background-image: url('fancybox.png');
|
|
167
|
+
background-position: -40px -30px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
#fancybox-right-ico {
|
|
171
|
+
background-image: url('fancybox.png');
|
|
172
|
+
background-position: -40px -60px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
#fancybox-left:hover, #fancybox-right:hover {
|
|
176
|
+
visibility: visible; /* IE6 */
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
#fancybox-left:hover span {
|
|
180
|
+
left: 20px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#fancybox-right:hover span {
|
|
184
|
+
left: auto;
|
|
185
|
+
right: 20px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.fancybox-bg {
|
|
189
|
+
position: absolute;
|
|
190
|
+
padding: 0;
|
|
191
|
+
margin: 0;
|
|
192
|
+
border: 0;
|
|
193
|
+
width: 20px;
|
|
194
|
+
height: 20px;
|
|
195
|
+
z-index: 1001;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
#fancybox-bg-n {
|
|
199
|
+
top: -20px;
|
|
200
|
+
left: 0;
|
|
201
|
+
width: 100%;
|
|
202
|
+
background-image: url('fancybox-x.png');
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
#fancybox-bg-ne {
|
|
206
|
+
top: -20px;
|
|
207
|
+
right: -20px;
|
|
208
|
+
background-image: url('fancybox.png');
|
|
209
|
+
background-position: -40px -162px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
#fancybox-bg-e {
|
|
213
|
+
top: 0;
|
|
214
|
+
right: -20px;
|
|
215
|
+
height: 100%;
|
|
216
|
+
background-image: url('fancybox-y.png');
|
|
217
|
+
background-position: -20px 0px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
#fancybox-bg-se {
|
|
221
|
+
bottom: -20px;
|
|
222
|
+
right: -20px;
|
|
223
|
+
background-image: url('fancybox.png');
|
|
224
|
+
background-position: -40px -182px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
#fancybox-bg-s {
|
|
228
|
+
bottom: -20px;
|
|
229
|
+
left: 0;
|
|
230
|
+
width: 100%;
|
|
231
|
+
background-image: url('fancybox-x.png');
|
|
232
|
+
background-position: 0px -20px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
#fancybox-bg-sw {
|
|
236
|
+
bottom: -20px;
|
|
237
|
+
left: -20px;
|
|
238
|
+
background-image: url('fancybox.png');
|
|
239
|
+
background-position: -40px -142px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
#fancybox-bg-w {
|
|
243
|
+
top: 0;
|
|
244
|
+
left: -20px;
|
|
245
|
+
height: 100%;
|
|
246
|
+
background-image: url('fancybox-y.png');
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
#fancybox-bg-nw {
|
|
250
|
+
top: -20px;
|
|
251
|
+
left: -20px;
|
|
252
|
+
background-image: url('fancybox.png');
|
|
253
|
+
background-position: -40px -122px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#fancybox-title {
|
|
257
|
+
font-family: Helvetica;
|
|
258
|
+
font-size: 12px;
|
|
259
|
+
z-index: 1102;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.fancybox-title-inside {
|
|
263
|
+
padding-bottom: 10px;
|
|
264
|
+
text-align: center;
|
|
265
|
+
color: #333;
|
|
266
|
+
background: #fff;
|
|
267
|
+
position: relative;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.fancybox-title-outside {
|
|
271
|
+
padding-top: 10px;
|
|
272
|
+
color: #fff;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.fancybox-title-over {
|
|
276
|
+
position: absolute;
|
|
277
|
+
bottom: 0;
|
|
278
|
+
left: 0;
|
|
279
|
+
color: #FFF;
|
|
280
|
+
text-align: left;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
#fancybox-title-over {
|
|
284
|
+
padding: 10px;
|
|
285
|
+
background-image: url('fancy_title_over.png');
|
|
286
|
+
display: block;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.fancybox-title-float {
|
|
290
|
+
position: absolute;
|
|
291
|
+
left: 0;
|
|
292
|
+
bottom: -20px;
|
|
293
|
+
height: 32px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
#fancybox-title-float-wrap {
|
|
297
|
+
border: none;
|
|
298
|
+
border-collapse: collapse;
|
|
299
|
+
width: auto;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
#fancybox-title-float-wrap td {
|
|
303
|
+
border: none;
|
|
304
|
+
white-space: nowrap;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
#fancybox-title-float-left {
|
|
308
|
+
padding: 0 0 0 15px;
|
|
309
|
+
background: url('fancybox.png') -40px -90px no-repeat;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
#fancybox-title-float-main {
|
|
313
|
+
color: #FFF;
|
|
314
|
+
line-height: 29px;
|
|
315
|
+
font-weight: bold;
|
|
316
|
+
padding: 0 0 3px 0;
|
|
317
|
+
background: url('fancybox-x.png') 0px -40px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
#fancybox-title-float-right {
|
|
321
|
+
padding: 0 0 0 15px;
|
|
322
|
+
background: url('fancybox.png') -55px -90px no-repeat;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* IE6 */
|
|
326
|
+
|
|
327
|
+
.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }
|
|
328
|
+
|
|
329
|
+
.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
|
|
330
|
+
.fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
|
|
331
|
+
|
|
332
|
+
.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
|
|
333
|
+
.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
|
|
334
|
+
.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
|
|
335
|
+
.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
|
|
336
|
+
|
|
337
|
+
.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
|
|
338
|
+
height: expression(this.parentNode.clientHeight + "px");
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
#fancybox-loading.fancybox-ie6 {
|
|
342
|
+
position: absolute; margin-top: 0;
|
|
343
|
+
top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
#fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); }
|
|
347
|
+
|
|
348
|
+
/* IE6, IE7, IE8 */
|
|
349
|
+
|
|
350
|
+
.fancybox-ie .fancybox-bg { background: transparent !important; }
|
|
351
|
+
|
|
352
|
+
.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
|
|
353
|
+
.fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
|
|
354
|
+
.fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
|
|
355
|
+
.fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
|
|
356
|
+
.fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
|
|
357
|
+
.fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
|
|
358
|
+
.fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
|
|
359
|
+
.fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
|