typus 0.9.39 → 1.0.0.pre
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/CHANGELOG +104 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +96 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +45 -0
- data/Rakefile +19 -48
- data/app/controllers/admin/account_controller.rb +54 -0
- data/app/controllers/admin/dashboard_controller.rb +7 -0
- data/app/controllers/admin/resource_controller.rb +8 -0
- data/app/controllers/admin/resources_controller.rb +307 -0
- data/app/controllers/admin/session_controller.rb +38 -0
- data/app/controllers/admin_controller.rb +26 -0
- data/app/helpers/admin/dashboard_helper.rb +38 -0
- data/app/helpers/admin/filters_helper.rb +81 -0
- data/app/helpers/admin/form_helper.rb +68 -261
- data/app/helpers/admin/preview_helper.rb +48 -0
- data/app/helpers/admin/relationships_helper.rb +192 -0
- data/app/helpers/admin/resources_helper.rb +80 -0
- data/app/helpers/admin/search_helper.rb +19 -0
- data/app/helpers/admin/sidebar_helper.rb +32 -210
- data/app/helpers/admin/table_helper.rb +207 -200
- data/app/helpers/admin_helper.rb +56 -0
- data/app/mailers/admin/mailer.rb +13 -0
- data/app/models/admin/fake_user.rb +38 -0
- data/app/views/admin/account/forgot_password.html.erb +21 -0
- data/app/views/admin/account/new.html.erb +21 -0
- data/app/views/admin/dashboard/_sidebar.html.erb +3 -3
- data/app/views/admin/dashboard/show.html.erb +16 -0
- data/app/views/admin/dashboard/styles.html.erb +154 -0
- data/app/views/admin/helpers/_apps.html.erb +6 -0
- data/app/views/admin/helpers/_flash_message.html.erb +3 -0
- data/app/views/admin/helpers/_header.html.erb +7 -0
- data/app/views/admin/helpers/_login_info.html.erb +4 -0
- data/app/views/admin/helpers/_preview.html.erb +13 -0
- data/app/views/admin/helpers/dashboard/_applications.html.erb +32 -0
- data/app/views/admin/helpers/dashboard/_resources.html.erb +16 -0
- data/app/views/admin/helpers/filters/_filters.html.erb +31 -0
- data/app/views/admin/helpers/resources/_display_link_to_previous.html.erb +3 -0
- data/app/views/admin/helpers/resources/_pagination.html.erb +28 -0
- data/app/views/admin/helpers/search/_search.html.erb +12 -0
- data/app/views/admin/helpers/sidebar/_sidebar.html.erb +17 -0
- data/app/views/admin/helpers/table/_table.html.erb +22 -0
- data/app/views/{typus_mailer/reset_password_link.erb → admin/mailer/reset_password_link.text.erb} +2 -2
- data/{test/config/broken/empty.yml → app/views/admin/resources/_edit.html.erb} +0 -0
- data/app/views/admin/resources/_form.html.erb +26 -0
- data/{test/config/broken/empty_roles.yml → app/views/admin/resources/_index.html.erb} +0 -0
- data/{test/config/empty/empty_01.yml → app/views/admin/resources/_new.html.erb} +0 -0
- data/{test/config/empty/empty_01_roles.yml → app/views/admin/resources/_show.html.erb} +0 -0
- data/app/views/admin/resources/edit.html.erb +23 -21
- data/app/views/admin/resources/index.html.erb +31 -18
- data/app/views/admin/resources/new.html.erb +20 -18
- data/app/views/admin/resources/show.html.erb +29 -20
- data/app/views/admin/session/new.html.erb +26 -0
- data/app/views/admin/templates/_belongs_to.html.erb +4 -0
- data/app/views/admin/templates/_boolean.html.erb +4 -8
- data/app/views/admin/templates/_date.html.erb +9 -2
- data/app/views/admin/templates/_datetime.html.erb +9 -2
- data/app/views/admin/templates/_file.html.erb +20 -5
- data/app/views/admin/templates/_has_many.html.erb +24 -0
- data/app/views/admin/templates/_has_n.html.erb +17 -0
- data/{test/config/empty/empty_02.yml → app/views/admin/templates/_has_one.html.erb} +0 -0
- data/app/views/admin/templates/_password.html.erb +4 -2
- data/app/views/admin/templates/_relate_form.html.erb +4 -0
- data/app/views/admin/templates/_selector.html.erb +6 -18
- data/app/views/admin/templates/_string.html.erb +11 -10
- data/app/views/admin/templates/_text.html.erb +9 -2
- data/app/views/admin/templates/_time.html.erb +9 -2
- data/app/views/admin/templates/_tree.html.erb +4 -0
- data/app/views/layouts/admin/session.html.erb +44 -0
- data/app/views/layouts/admin.html.erb +45 -39
- data/config/available_locales/ca.yml +124 -0
- data/config/available_locales/ca_models.yml +16 -0
- data/config/{locales → available_locales}/de.yml +108 -89
- data/config/available_locales/de_models.yml +13 -0
- data/config/available_locales/es.yml +124 -0
- data/config/available_locales/es_models.yml +13 -0
- data/config/available_locales/fr.yml +124 -0
- data/config/available_locales/fr_models.yml +13 -0
- data/config/available_locales/hu.yml +124 -0
- data/config/available_locales/hu_models.yml +13 -0
- data/config/available_locales/it.yml +136 -0
- data/config/available_locales/it_models.yml +15 -0
- data/config/available_locales/language.yml.template +122 -0
- data/config/available_locales/language_models.yml.template +13 -0
- data/config/{locales → available_locales}/pt-BR.yml +97 -74
- data/config/available_locales/pt-BR_models.yml +13 -0
- data/config/{locales → available_locales}/ru.yml +107 -85
- data/config/available_locales/ru_models.yml +13 -0
- data/config/routes.rb +18 -11
- data/lib/generators/templates/config/initializers/typus.rb +26 -0
- data/lib/generators/templates/config/initializers/typus_authentication.rb +18 -0
- data/lib/generators/templates/config/initializers/typus_resources.rb +30 -0
- data/{generators/typus → lib/generators}/templates/config/typus/README +34 -16
- data/lib/generators/templates/config/typus/application.yml +5 -0
- data/lib/generators/templates/config/typus/application_roles.yml +6 -0
- data/lib/generators/templates/config/typus/typus.yml +17 -0
- data/lib/generators/templates/config/typus/typus_roles.yml +6 -0
- data/lib/generators/templates/controller.rb +4 -0
- data/lib/generators/templates/functional_test.rb +21 -0
- data/{generators/typus/templates/db/create_typus_users.rb → lib/generators/templates/migration.rb} +4 -4
- data/lib/generators/templates/model.rb +8 -0
- data/lib/generators/templates/model.yml +10 -0
- data/{generators/typus/templates/public/images/admin → lib/generators/templates/public/admin/images}/ui-icons.png +0 -0
- data/lib/generators/templates/public/admin/javascripts/application.js +6 -0
- data/lib/generators/templates/public/admin/javascripts/jquery-1.4.2.min.js +154 -0
- data/lib/generators/templates/public/admin/javascripts/jquery.rails.js +126 -0
- data/lib/generators/templates/public/admin/javascripts/jquery.searchField.js +91 -0
- data/lib/generators/templates/public/admin/stylesheets/application.css +11 -0
- data/lib/generators/templates/public/admin/stylesheets/screen.css +356 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/blank.gif +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_close.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_loading.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_nav_left.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_nav_right.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_e.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_n.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_ne.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_nw.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_s.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_se.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_sw.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_w.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_title_left.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_title_main.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_title_over.png +0 -0
- data/{generators/typus/templates/public/images/admin → lib/generators/templates/public/admin/vendor}/fancybox/fancy_title_right.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancybox-x.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancybox-y.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancybox.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.easing-1.3.pack.js +72 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.css +363 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.js +1077 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js +13 -0
- data/lib/generators/templates/view.html.erb +9 -0
- data/lib/generators/typus/migration_generator.rb +85 -0
- data/lib/generators/typus/typus_generator.rb +190 -0
- data/lib/generators/typus/views_generator.rb +27 -0
- data/lib/support/active_record.rb +60 -0
- data/lib/support/array.rb +13 -0
- data/lib/{typus → support}/hash.rb +2 -2
- data/lib/{typus → support}/object.rb +2 -2
- data/lib/support/string.rb +47 -0
- data/lib/tasks/typus.rake +19 -0
- data/lib/typus/authentication.rb +146 -40
- data/lib/typus/configuration.rb +14 -49
- data/lib/typus/engine.rb +6 -0
- data/lib/typus/format.rb +41 -18
- data/lib/typus/orm/active_record.rb +378 -0
- data/lib/typus/resources.rb +57 -0
- data/lib/typus/user.rb +54 -37
- data/lib/typus/version.rb +3 -0
- data/lib/typus.rb +118 -80
- data/lib/vendor/paginator.rb +2 -2
- data/test/factories/assets.rb +5 -0
- data/test/factories/categories.rb +3 -0
- data/test/factories/comments.rb +6 -0
- data/test/factories/pages.rb +5 -0
- data/test/factories/pictures.rb +7 -0
- data/test/factories/posts.rb +6 -0
- data/test/factories/typus_users.rb +8 -0
- data/test/{config → fixtures/config}/broken/application.yml +0 -0
- data/test/{config → fixtures/config}/broken/application_roles.yml +0 -0
- data/test/{config/empty/empty_02_roles.yml → fixtures/config/broken/empty.yml} +0 -0
- data/test/fixtures/config/broken/empty_roles.yml +0 -0
- data/test/{config → fixtures/config}/broken/undefined.yml +0 -0
- data/test/{config → fixtures/config}/broken/undefined_roles.yml +0 -0
- data/test/{config → fixtures/config}/default/typus.yml +2 -1
- data/{generators/typus/templates/config/typus → test/fixtures/config/default}/typus_roles.yml +0 -0
- 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/{config → fixtures/config}/locales/es.yml +0 -0
- data/test/fixtures/config/namespaced/application.yml +5 -0
- data/test/fixtures/config/namespaced/application_roles.yml +2 -0
- data/test/{config → fixtures/config}/ordered/001_roles.yml +0 -0
- data/test/{config → fixtures/config}/ordered/002_roles.yml +0 -0
- data/test/{config → fixtures/config}/unordered/app_one_roles.yml +0 -0
- data/test/{config → fixtures/config}/unordered/app_two_roles.yml +0 -0
- data/test/fixtures/config/working/application.yml +73 -0
- data/test/fixtures/config/working/application_roles.yml +24 -0
- data/{generators/typus/templates/config/typus → test/fixtures/config/working}/typus.yml +2 -1
- data/test/{config/default → fixtures/config/working}/typus_roles.yml +0 -0
- data/test/fixtures/rails_app/README +244 -0
- data/test/fixtures/rails_app/Rakefile +7 -0
- data/test/fixtures/rails_app/app/controllers/admin/assets_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/categories_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/comments_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/pages_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/pictures_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/posts_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/status_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/application_controller.rb +4 -0
- data/test/fixtures/rails_app/app/helpers/application_helper.rb +2 -0
- data/test/fixtures/{app → rails_app/app}/models/asset.rb +1 -1
- data/test/fixtures/{app → rails_app/app}/models/category.rb +2 -2
- data/test/fixtures/{app → rails_app/app}/models/comment.rb +1 -1
- data/test/fixtures/{app → rails_app/app}/models/custom_user.rb +1 -1
- data/test/fixtures/{app → rails_app/app}/models/delayed/task.rb +2 -2
- data/test/fixtures/rails_app/app/models/page.rb +9 -0
- data/test/fixtures/rails_app/app/models/picture.rb +6 -0
- data/test/fixtures/{app → rails_app/app}/models/post.rb +6 -6
- data/test/fixtures/rails_app/app/models/typus_user.rb +8 -0
- data/test/fixtures/{app → rails_app/app}/models/view.rb +1 -1
- data/test/fixtures/rails_app/app/views/admin/categories/_form.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/dashboard/_sidebar.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/mailer/reset_password_link.text.erb +6 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_edit.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_index.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_new.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_show.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_sidebar.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/status/index.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/layouts/application.html.erb +14 -0
- data/test/fixtures/rails_app/config/application.rb +50 -0
- data/test/fixtures/rails_app/config/boot.rb +13 -0
- data/test/fixtures/rails_app/config/database.yml +22 -0
- data/test/fixtures/rails_app/config/environment.rb +5 -0
- data/test/fixtures/rails_app/config/environments/development.rb +19 -0
- data/test/fixtures/rails_app/config/environments/production.rb +42 -0
- data/test/fixtures/rails_app/config/environments/test.rb +34 -0
- data/test/fixtures/rails_app/config/initializers/acts_as_list.rb +258 -0
- data/test/fixtures/rails_app/config/initializers/acts_as_tree.rb +98 -0
- data/test/fixtures/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/fixtures/rails_app/config/initializers/inflections.rb +10 -0
- data/test/fixtures/rails_app/config/initializers/mime_types.rb +5 -0
- data/test/fixtures/rails_app/config/initializers/secret_token.rb +7 -0
- data/test/fixtures/rails_app/config/initializers/session_store.rb +8 -0
- data/test/fixtures/rails_app/config/initializers/typus.rb +6 -0
- data/test/fixtures/rails_app/config/locales/en.yml +5 -0
- data/test/fixtures/rails_app/config/routes.rb +8 -0
- data/test/{config/working → fixtures/rails_app/config/typus}/application.yml +11 -9
- data/test/{config/working → fixtures/rails_app/config/typus}/application_roles.yml +0 -0
- data/{generators/typus_update_schema_to_01/templates/config → test/fixtures/rails_app/config/typus}/typus.yml +0 -0
- data/test/{config/working → fixtures/rails_app/config/typus}/typus_roles.yml +0 -0
- data/test/fixtures/rails_app/config.ru +4 -0
- data/test/fixtures/rails_app/db/seeds.rb +7 -0
- data/test/fixtures/rails_app/db/test.sqlite3 +0 -0
- data/test/fixtures/rails_app/log/test.log +4268 -0
- data/test/fixtures/rails_app/public/404.html +26 -0
- data/test/fixtures/rails_app/public/422.html +26 -0
- data/test/fixtures/rails_app/public/500.html +26 -0
- data/test/fixtures/rails_app/public/favicon.ico +0 -0
- data/test/fixtures/rails_app/public/images/rails.png +0 -0
- data/test/fixtures/rails_app/public/index.html +279 -0
- data/test/fixtures/rails_app/public/javascripts/application.js +2 -0
- data/test/fixtures/rails_app/public/javascripts/controls.js +965 -0
- data/test/fixtures/rails_app/public/javascripts/dragdrop.js +974 -0
- data/test/fixtures/rails_app/public/javascripts/effects.js +1123 -0
- data/test/fixtures/rails_app/public/javascripts/prototype.js +4874 -0
- data/test/fixtures/rails_app/public/javascripts/rails.js +118 -0
- data/test/fixtures/rails_app/public/robots.txt +5 -0
- data/test/fixtures/rails_app/script/rails +9 -0
- data/test/fixtures/rails_app/tmp/export-posts-20100902120447.csv +2 -0
- data/test/fixtures/rails_app/tmp/export-posts-20100902120700.csv +2 -0
- data/test/functional/admin/account_controller_test.rb +90 -0
- data/test/functional/admin/dashboard_controller_http_basic_test.rb +24 -0
- data/test/functional/admin/dashboard_controller_none_test.rb +18 -0
- data/test/functional/admin/dashboard_controller_test.rb +106 -0
- data/test/functional/admin/resources_controller_assets_relationships.rb +59 -0
- data/test/functional/admin/resources_controller_categories_before_test.rb +10 -0
- data/test/functional/admin/resources_controller_categories_lists_test.rb +44 -0
- data/test/functional/admin/resources_controller_categories_views_test.rb +10 -0
- data/test/functional/admin/resources_controller_comments_toggle_test.rb +21 -0
- data/test/functional/admin/{master_controller_posts_before_test.rb → resources_controller_posts_before_test.rb} +3 -3
- data/test/functional/admin/resources_controller_posts_crud_custom_test.rb +27 -0
- data/test/functional/admin/resources_controller_posts_crud_test.rb +44 -0
- data/test/functional/admin/resources_controller_posts_formats_test.rb +39 -0
- data/test/functional/admin/resources_controller_posts_forms_test.rb +58 -0
- data/test/functional/admin/resources_controller_posts_permissions_test.rb +100 -0
- data/test/functional/admin/{master_controller_posts_relationships_test.rb → resources_controller_posts_relationships_test.rb} +25 -20
- data/test/functional/admin/resources_controller_posts_roles.rb +52 -0
- data/test/functional/admin/resources_controller_posts_views_test.rb +143 -0
- data/test/functional/admin/resources_controller_tableless_resource_test.rb +51 -0
- data/test/functional/admin/resources_controller_typus_users_test.rb +159 -0
- data/test/functional/admin/session_controller_test.rb +85 -0
- data/test/helpers/admin/dashboard_helper_test.rb +42 -0
- data/test/helpers/admin/form_helper_test.rb +52 -276
- data/test/helpers/admin/resources_helper_test.rb +52 -0
- data/test/helpers/admin/sidebar_helper_test.rb +133 -224
- data/test/helpers/admin/table_helper_test.rb +136 -144
- data/test/helpers/admin_helper_test.rb +69 -0
- data/test/lib/support/active_record_test.rb +35 -0
- data/test/lib/support/array_test.rb +15 -0
- data/test/lib/support/hash_test.rb +11 -0
- data/test/lib/support/string_test.rb +48 -0
- data/test/lib/typus/active_record_test.rb +385 -0
- data/test/lib/typus/configuration_test.rb +52 -0
- data/test/lib/typus/resource_test.rb +17 -0
- data/test/lib/typus/routes_test.rb +29 -0
- data/test/lib/typus_test.rb +72 -40
- data/test/{vendor → lib/vendor}/paginator_test.rb +7 -4
- data/test/schema.rb +28 -3
- data/test/test_helper.rb +29 -0
- data/test/unit/admin/mailer_test.rb +32 -0
- data/test/unit/typus_user_roles_test.rb +69 -61
- data/test/unit/typus_user_test.rb +56 -143
- data/typus.gemspec +18 -276
- metadata +305 -231
- data/.gitignore +0 -1
- data/AUTHORS.md +0 -34
- data/CHANGES +0 -3
- data/README.md +0 -75
- data/VERSION +0 -1
- data/app/controllers/admin/master_controller.rb +0 -394
- data/app/controllers/typus_controller.rb +0 -152
- data/app/helpers/admin/master_helper.rb +0 -104
- data/app/helpers/admin/public_helper.rb +0 -27
- data/app/helpers/typus_helper.rb +0 -181
- data/app/models/typus_mailer.rb +0 -14
- data/app/models/typus_user.rb +0 -5
- data/app/views/admin/shared/_feedback.html.erb +0 -6
- data/app/views/admin/shared/_footer.html.erb +0 -2
- data/app/views/admin/shared/_pagination.html.erb +0 -28
- data/app/views/admin/templates/_tiny_mce.html.erb +0 -2
- data/app/views/layouts/typus.html.erb +0 -29
- data/app/views/typus/dashboard.html.erb +0 -9
- data/app/views/typus/recover_password.html.erb +0 -7
- data/app/views/typus/reset_password.html.erb +0 -15
- data/app/views/typus/sign_in.html.erb +0 -9
- data/app/views/typus/sign_up.html.erb +0 -7
- data/config/locales/es.yml +0 -105
- data/config/locales/fr.yml +0 -98
- data/config/locales/language.yml.template +0 -106
- data/generators/typus/templates/auto/index.html.erb +0 -11
- data/generators/typus/templates/auto/resource_controller.rb.erb +0 -15
- data/generators/typus/templates/auto/resource_controller_test.rb.erb +0 -11
- data/generators/typus/templates/auto/resources_controller.rb.erb +0 -37
- data/generators/typus/templates/config/initializers/typus.rb +0 -34
- data/generators/typus/templates/config/typus/application.yml +0 -6
- data/generators/typus/templates/config/typus/application_roles.yml +0 -23
- data/generators/typus/templates/lib/tasks/typus_tasks.rake +0 -32
- data/generators/typus/templates/public/images/admin/fancybox/fancy_closebox.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_left.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_progress.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_right.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_n.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_s.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_sw.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_w.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_title_main.png +0 -0
- data/generators/typus/templates/public/javascripts/admin/application.js +0 -14
- data/generators/typus/templates/public/javascripts/admin/jquery-1.3.2.min.js +0 -19
- data/generators/typus/templates/public/javascripts/admin/jquery.fancybox-1.2.1.min.js +0 -9
- data/generators/typus/templates/public/stylesheets/admin/jquery.fancybox.css +0 -315
- data/generators/typus/templates/public/stylesheets/admin/reset.css +0 -68
- data/generators/typus/templates/public/stylesheets/admin/screen.css +0 -361
- data/generators/typus/typus_generator.rb +0 -191
- data/generators/typus_update_schema_to_01/templates/migration.rb +0 -11
- data/generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb +0 -19
- data/generators/typus_update_schema_to_02/templates/migration.rb +0 -11
- data/generators/typus_update_schema_to_02/typus_update_schema_to_02_generator.rb +0 -11
- data/lib/typus/active_record.rb +0 -323
- data/lib/typus/extensions/routes.rb +0 -15
- data/lib/typus/extensions/routes_hack.rb +0 -15
- data/lib/typus/preferences.rb +0 -11
- data/lib/typus/preview.rb +0 -76
- data/lib/typus/quick_edit.rb +0 -40
- data/lib/typus/reloader.rb +0 -14
- data/lib/typus/string.rb +0 -27
- data/lib/vendor/active_record.rb +0 -15
- data/lib/vendor/rss_parser.rb +0 -20
- data/rails/init.rb +0 -3
- data/tasks/typus_tasks.rake +0 -32
- data/test/config/working/typus.yml +0 -12
- data/test/fixtures/app/controllers/admin/assets_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/categories_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/comments_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/pages_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/posts_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/status_controller.rb +0 -6
- data/test/fixtures/app/controllers/admin/typus_users_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/watch_dog_controller.rb +0 -6
- data/test/fixtures/app/models/page.rb +0 -5
- data/test/fixtures/app/views/admin/dashboard/_content.html.erb +0 -1
- data/test/fixtures/app/views/admin/dashboard/_sidebar.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_edit.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_index.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_new.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_show.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_sidebar.html.erb +0 -1
- data/test/fixtures/app/views/admin/resources/_sidebar.html.erb +0 -1
- data/test/fixtures/app/views/admin/shared/_footer.html.erb +0 -1
- data/test/fixtures/app/views/admin/status/index.html.erb +0 -1
- data/test/fixtures/app/views/admin/templates/_datepicker.html.erb +0 -1
- data/test/fixtures/assets.yml +0 -11
- data/test/fixtures/categories.yml +0 -14
- data/test/fixtures/comments.yml +0 -27
- data/test/fixtures/pages.yml +0 -41
- data/test/fixtures/posts.yml +0 -37
- data/test/fixtures/typus_users.yml +0 -59
- data/test/functional/admin/master_controller_assets_relationships.rb +0 -66
- data/test/functional/admin/master_controller_categories_lists_test.rb +0 -64
- data/test/functional/admin/master_controller_posts_crud_test.rb +0 -97
- data/test/functional/admin/master_controller_posts_formats_test.rb +0 -53
- data/test/functional/admin/master_controller_posts_permissions_test.rb +0 -127
- data/test/functional/admin/master_controller_posts_roles.rb +0 -50
- data/test/functional/admin/master_controller_posts_toggle_test.rb +0 -35
- data/test/functional/admin/master_controller_posts_views_test.rb +0 -209
- data/test/functional/admin/master_controller_tableless_resource_test.rb +0 -36
- data/test/functional/admin/master_controller_typus_users_test.rb +0 -211
- data/test/functional/typus_controller_test.rb +0 -342
- data/test/helper.rb +0 -51
- data/test/helpers/admin/master_helper_test.rb +0 -70
- data/test/helpers/admin/public_helper_test.rb +0 -26
- data/test/helpers/typus_helper_test.rb +0 -96
- data/test/lib/active_record_test.rb +0 -377
- data/test/lib/configuration_test.rb +0 -95
- data/test/lib/hash_test.rb +0 -11
- data/test/lib/routes_test.rb +0 -71
- data/test/lib/string_test.rb +0 -55
- data/test/unit/typus_mailer_test.rb +0 -29
- data/test/unit/typus_test.rb +0 -17
- data/test/vendor/active_record_test.rb +0 -18
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
module Admin::MasterHelper
|
|
2
|
-
|
|
3
|
-
include TypusHelper
|
|
4
|
-
|
|
5
|
-
include Admin::SidebarHelper
|
|
6
|
-
include Admin::FormHelper
|
|
7
|
-
include Admin::TableHelper
|
|
8
|
-
|
|
9
|
-
def display_link_to_previous
|
|
10
|
-
|
|
11
|
-
options = {}
|
|
12
|
-
options[:resource_from] = @resource[:human_name]
|
|
13
|
-
options[:resource_to] = params[:resource].classify.humanize if params[:resource]
|
|
14
|
-
|
|
15
|
-
editing = %w( edit update ).include?(params[:action])
|
|
16
|
-
|
|
17
|
-
message = case
|
|
18
|
-
when params[:resource] && editing
|
|
19
|
-
_("You're updating a {{resource_from}} for {{resource_to}}.",
|
|
20
|
-
:resource_from => options[:resource_from],
|
|
21
|
-
:resource_to => options[:resource_to])
|
|
22
|
-
when editing
|
|
23
|
-
_("You're updating a {{resource_from}}.",
|
|
24
|
-
:resource_from => options[:resource_from])
|
|
25
|
-
when params[:resource]
|
|
26
|
-
_("You're adding a new {{resource_from}} to {{resource_to}}.",
|
|
27
|
-
:resource_from => options[:resource_from],
|
|
28
|
-
:resource_to => options[:resource_to])
|
|
29
|
-
else
|
|
30
|
-
_("You're adding a new {{resource_from}}.",
|
|
31
|
-
:resource_from => options[:resource_from] )
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
returning(String.new) do |html|
|
|
35
|
-
html << <<-HTML
|
|
36
|
-
<div id="flash" class="notice">
|
|
37
|
-
<p>#{message} #{link_to _("Do you want to cancel it?"), params[:back_to]}</p>
|
|
38
|
-
</div>
|
|
39
|
-
HTML
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def remove_filter_link(filter = request.env['QUERY_STRING'])
|
|
45
|
-
return unless filter && !filter.blank?
|
|
46
|
-
<<-HTML
|
|
47
|
-
<small>#{link_to _("Remove filter")}</small>
|
|
48
|
-
HTML
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
##
|
|
52
|
-
# If there's a partial with a "microformat" of the data we want to
|
|
53
|
-
# display, this will be used, otherwise we use a default table which
|
|
54
|
-
# it's build from the options defined on the yaml configuration file.
|
|
55
|
-
#
|
|
56
|
-
def build_list(model, fields, items, resource = @resource[:self], link_options = {}, association = nil)
|
|
57
|
-
|
|
58
|
-
template = "app/views/admin/#{resource}/_#{resource.singularize}.html.erb"
|
|
59
|
-
|
|
60
|
-
if File.exist?(template)
|
|
61
|
-
render :partial => template.gsub('/_', '/'), :collection => items, :as => :item
|
|
62
|
-
else
|
|
63
|
-
build_typus_table(model, fields, items, link_options, association)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def pagination(*args)
|
|
69
|
-
@options = args.extract_options!
|
|
70
|
-
render 'admin/shared/pagination' if @items.prev || @items.next
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
##
|
|
74
|
-
# Simple and clean pagination links
|
|
75
|
-
#
|
|
76
|
-
def build_pagination(pager, options = {})
|
|
77
|
-
|
|
78
|
-
options[:link_to_current_page] ||= true
|
|
79
|
-
options[:always_show_anchors] ||= true
|
|
80
|
-
|
|
81
|
-
# Calculate the window start and end pages
|
|
82
|
-
options[:padding] ||= 2
|
|
83
|
-
options[:padding] = options[:padding] < 0 ? 0 : options[:padding]
|
|
84
|
-
|
|
85
|
-
page = params[:page].blank? ? 1 : params[:page].to_i
|
|
86
|
-
current_page = pager.page(page)
|
|
87
|
-
|
|
88
|
-
first = pager.first.number <= (current_page.number - options[:padding]) && pager.last.number >= (current_page.number - options[:padding]) ? current_page.number - options[:padding] : 1
|
|
89
|
-
last = pager.first.number <= (current_page.number + options[:padding]) && pager.last.number >= (current_page.number + options[:padding]) ? current_page.number + options[:padding] : pager.last.number
|
|
90
|
-
|
|
91
|
-
returning(String.new) do |html|
|
|
92
|
-
# Print start page if anchors are enabled
|
|
93
|
-
html << yield(1) if options[:always_show_anchors] and not first == 1
|
|
94
|
-
# Print window pages
|
|
95
|
-
first.upto(last) do |page|
|
|
96
|
-
(current_page.number == page && !options[:link_to_current_page]) ? html << page.to_s : html << (yield(page)).to_s
|
|
97
|
-
end
|
|
98
|
-
# Print end page if anchors are enabled
|
|
99
|
-
html << yield(pager.last.number).to_s if options[:always_show_anchors] and not last == pager.last.number
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module Admin
|
|
2
|
-
|
|
3
|
-
module PublicHelper
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
# Quick edit usage:
|
|
7
|
-
#
|
|
8
|
-
# <%= quick_edit(:message => "Edit this article", :path => "articles/edit/#{@article.id}") %>
|
|
9
|
-
#
|
|
10
|
-
# If user is logged in Typus, a link will appear on the top/right of
|
|
11
|
-
# the pages where you insert this helper.
|
|
12
|
-
#
|
|
13
|
-
def quick_edit(*args)
|
|
14
|
-
|
|
15
|
-
options = args.extract_options!
|
|
16
|
-
|
|
17
|
-
<<-HTML
|
|
18
|
-
<script type="text/javascript">
|
|
19
|
-
document.write('<script type="text/javascript" src="#{admin_quick_edit_path}?#{options.to_query}" />');
|
|
20
|
-
</script>
|
|
21
|
-
HTML
|
|
22
|
-
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
end
|
data/app/helpers/typus_helper.rb
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
module TypusHelper
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
# Applications list on the dashboard
|
|
5
|
-
#
|
|
6
|
-
def applications
|
|
7
|
-
|
|
8
|
-
returning(String.new) do |html|
|
|
9
|
-
|
|
10
|
-
Typus.applications.each do |app|
|
|
11
|
-
|
|
12
|
-
available = Typus.application(app).map do |resource|
|
|
13
|
-
resource if @current_user.resources.include?(resource)
|
|
14
|
-
end
|
|
15
|
-
next if available.compact.empty?
|
|
16
|
-
|
|
17
|
-
html << <<-HTML
|
|
18
|
-
<table class="typus">
|
|
19
|
-
<tr>
|
|
20
|
-
<th colspan="2">#{app}</th>
|
|
21
|
-
</tr>
|
|
22
|
-
HTML
|
|
23
|
-
|
|
24
|
-
available.compact.sort_by{|x| x.constantize.typus_human_name }.each do |model|
|
|
25
|
-
|
|
26
|
-
klass = model.constantize
|
|
27
|
-
klass_resource = klass.name.tableize
|
|
28
|
-
klass_human_name = klass.typus_human_name.gsub('/', ' ').pluralize
|
|
29
|
-
|
|
30
|
-
admin_items_path = { :controller => "admin/#{klass_resource}" }
|
|
31
|
-
new_admin_item_path = { :controller => "admin/#{klass_resource}", :action => 'new'}
|
|
32
|
-
|
|
33
|
-
html << <<-HTML
|
|
34
|
-
<tr class="#{cycle('even', 'odd')}">
|
|
35
|
-
<td>#{link_to klass_human_name, admin_items_path}<br /><small>#{_(klass.typus_description) if !klass.typus_description.nil?}</small></td>
|
|
36
|
-
<td class="right"><small>
|
|
37
|
-
#{link_to _("Add"), new_admin_item_path if @current_user.can_perform?(klass, 'create')}
|
|
38
|
-
</small></td>
|
|
39
|
-
</tr>
|
|
40
|
-
HTML
|
|
41
|
-
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
html << <<-HTML
|
|
45
|
-
</table>
|
|
46
|
-
HTML
|
|
47
|
-
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
##
|
|
55
|
-
# Resources (wich are not models) on the dashboard.
|
|
56
|
-
#
|
|
57
|
-
def resources
|
|
58
|
-
|
|
59
|
-
available = Typus.resources.map do |resource|
|
|
60
|
-
resource if @current_user.resources.include?(resource)
|
|
61
|
-
end
|
|
62
|
-
return if available.compact.empty?
|
|
63
|
-
|
|
64
|
-
returning(String.new) do |html|
|
|
65
|
-
|
|
66
|
-
html << <<-HTML
|
|
67
|
-
<table class="typus">
|
|
68
|
-
<tr>
|
|
69
|
-
<th colspan="2">#{_("Resources")}</th>
|
|
70
|
-
</tr>
|
|
71
|
-
HTML
|
|
72
|
-
|
|
73
|
-
available.compact.each do |resource|
|
|
74
|
-
|
|
75
|
-
resource_path = { :controller => "admin/#{resource.underscore}" }
|
|
76
|
-
|
|
77
|
-
html << <<-HTML
|
|
78
|
-
<tr class="#{cycle('even', 'odd')}">
|
|
79
|
-
<td>#{link_to _(resource.titleize.capitalize), resource_path}</td>
|
|
80
|
-
<td align="right" style="vertical-align: bottom;"></td>
|
|
81
|
-
</tr>
|
|
82
|
-
HTML
|
|
83
|
-
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
html << <<-HTML
|
|
87
|
-
</table>
|
|
88
|
-
HTML
|
|
89
|
-
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
def typus_block(*args)
|
|
95
|
-
|
|
96
|
-
options = args.extract_options!
|
|
97
|
-
|
|
98
|
-
partials_path = "admin/#{options[:location]}"
|
|
99
|
-
resources_partials_path = 'admin/resources'
|
|
100
|
-
|
|
101
|
-
partials = ActionController::Base.view_paths.map do |view_path|
|
|
102
|
-
Dir["#{view_path.path}/#{partials_path}/*"].map { |f| File.basename(f, '.html.erb') }
|
|
103
|
-
end.flatten
|
|
104
|
-
resources_partials = Dir["#{Rails.root}/app/views/#{resources_partials_path}/*"].map { |f| File.basename(f, '.html.erb') }
|
|
105
|
-
|
|
106
|
-
partial = "_#{options[:partial]}"
|
|
107
|
-
|
|
108
|
-
path = if partials.include?(partial) then partials_path
|
|
109
|
-
elsif resources_partials.include?(partial) then resources_partials_path
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
render :partial => "#{path}/#{options[:partial]}" if path
|
|
113
|
-
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
def page_title(action = params[:action])
|
|
117
|
-
crumbs = [ ]
|
|
118
|
-
crumbs << @resource[:human_name].pluralize if @resource
|
|
119
|
-
crumbs << _(action.humanize) unless %w( index ).include?(action)
|
|
120
|
-
return "#{Typus::Configuration.options[:app_name]} - " + crumbs.compact.map { |x| x }.join(' › ')
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
def header
|
|
124
|
-
|
|
125
|
-
links = []
|
|
126
|
-
links << "<li>#{link_to_unless_current _("Dashboard"), admin_dashboard_path}</li>"
|
|
127
|
-
|
|
128
|
-
Typus.models_on_header.each do |model|
|
|
129
|
-
links << "<li>#{link_to_unless_current model.constantize.typus_human_name.pluralize, :controller => "/admin/#{model.tableize}"}</li>"
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
if ActionController::Routing::Routes.named_routes.routes.keys.include?(:root)
|
|
133
|
-
links << "<li>#{link_to _("View site"), root_path, :target => 'blank'}</li>"
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
<<-HTML
|
|
137
|
-
<h1>#{Typus::Configuration.options[:app_name]}</h1>
|
|
138
|
-
<ul>
|
|
139
|
-
#{links.join("\n")}
|
|
140
|
-
</ul>
|
|
141
|
-
HTML
|
|
142
|
-
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
def login_info(user = @current_user)
|
|
146
|
-
|
|
147
|
-
admin_edit_typus_user_path = { :controller => "admin/#{Typus::Configuration.options[:user_class_name].tableize}",
|
|
148
|
-
:action => 'edit',
|
|
149
|
-
:id => user.id }
|
|
150
|
-
|
|
151
|
-
message = _("Are you sure you want to sign out and end your session?")
|
|
152
|
-
|
|
153
|
-
user_details = if user.can_perform?(Typus::Configuration.options[:user_class_name], 'edit')
|
|
154
|
-
link_to user.name, admin_edit_typus_user_path, :title => "#{user.email} (#{user.role})"
|
|
155
|
-
else
|
|
156
|
-
user.name
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
<<-HTML
|
|
160
|
-
<ul>
|
|
161
|
-
<li>#{_("Logged as")} #{user_details}</li>
|
|
162
|
-
<li>#{link_to _("Sign out"), admin_sign_out_path, { :confirm => message } }</li>
|
|
163
|
-
</ul>
|
|
164
|
-
HTML
|
|
165
|
-
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
def display_flash_message(message = flash)
|
|
169
|
-
|
|
170
|
-
return if message.empty?
|
|
171
|
-
flash_type = message.keys.first
|
|
172
|
-
|
|
173
|
-
<<-HTML
|
|
174
|
-
<div id="flash" class="#{flash_type}">
|
|
175
|
-
<p>#{message[flash_type]}</p>
|
|
176
|
-
</div>
|
|
177
|
-
HTML
|
|
178
|
-
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
end
|
data/app/models/typus_mailer.rb
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
class TypusMailer < ActionMailer::Base
|
|
2
|
-
|
|
3
|
-
self.template_root = "#{File.dirname(__FILE__)}/../views"
|
|
4
|
-
|
|
5
|
-
def reset_password_link(user)
|
|
6
|
-
@subject = "[#{Typus::Configuration.options[:app_name]}] #{_("Reset password")}"
|
|
7
|
-
@body = { :user => user }
|
|
8
|
-
@recipients = user.email
|
|
9
|
-
@from = Typus::Configuration.options[:email]
|
|
10
|
-
@sent_on = Time.now
|
|
11
|
-
@headers = {}
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
end
|
data/app/models/typus_user.rb
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<p>
|
|
2
|
-
<%= link_to _("Submit a bug report"), 'http://github.com/fesplugas/typus/issues', :rel => 'external' %> ·
|
|
3
|
-
<%= link_to _("Documentation"), 'http://intraducibles.com/projects/typus', :rel => 'external' %> ·
|
|
4
|
-
<%= mail_to "hello@intraducibles.com", _("Send us feedback") %> ·
|
|
5
|
-
<%= link_to _("License"), "http://intraducibles.com/projects/typus/mit-license", :rel => 'external' %>
|
|
6
|
-
</p>
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<p><%= link_to 'Typus', 'http://intraducibles.com/projects/typus', :rel => 'external' %> is the effortless backend interface for <%= link_to 'Ruby on Rails', 'http://rubyonrails.org/', :rel => 'external' %> applications.<br />
|
|
2
|
-
Developed by <%= link_to 'intraducibles.com', 'http://intraducibles.com', :rel => 'external' %> with your <%= link_to 'help', 'http://intraducibles.com/projects/typus/contribute', :rel => 'external' %>.</p>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<div class="pagination">
|
|
2
|
-
|
|
3
|
-
<% if @items.prev? %>
|
|
4
|
-
<%= link_to "← " + _("Previous"), params.merge(:page => @items.prev.number, :anchor => @options[:anchor]) %>
|
|
5
|
-
<% else %>
|
|
6
|
-
<span class="disabled"><%= "← " + _("Previous") %></span>
|
|
7
|
-
<% end %>
|
|
8
|
-
|
|
9
|
-
<% last_page = 0 -%>
|
|
10
|
-
|
|
11
|
-
<% build_pagination(@pager) do |n| -%>
|
|
12
|
-
<% if @items.number == n -%>
|
|
13
|
-
<span class="current"><%= n %></span>
|
|
14
|
-
<% else -%>
|
|
15
|
-
<%= "..." if last_page + 1 < n %>
|
|
16
|
-
<%= link_to n, params.merge(:page => n, :anchor => @options[:anchor]) %>
|
|
17
|
-
<% end -%>
|
|
18
|
-
<% last_page = n -%>
|
|
19
|
-
|
|
20
|
-
<% end -%>
|
|
21
|
-
|
|
22
|
-
<% if @items.next? %>
|
|
23
|
-
<%= link_to _("Next") + " →", params.merge(:page => @items.next.number, :anchor => @options[:anchor]) %>
|
|
24
|
-
<% else %>
|
|
25
|
-
<span class="disabled"><%= _("Next") + " →" %></span>
|
|
26
|
-
<% end %>
|
|
27
|
-
|
|
28
|
-
</div>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
3
|
-
|
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
-
|
|
6
|
-
<head>
|
|
7
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
|
8
|
-
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
9
|
-
<meta name="viewport" content="width=500, initial-scale=0.60, minimum-scale=0.60" />
|
|
10
|
-
<title><%= page_title %></title>
|
|
11
|
-
<%= stylesheet_link_tag 'admin/reset', :media => 'screen' %>
|
|
12
|
-
<%= stylesheet_link_tag 'admin/screen', :media => 'screen' %>
|
|
13
|
-
</head>
|
|
14
|
-
|
|
15
|
-
<body>
|
|
16
|
-
|
|
17
|
-
<div id="dialog">
|
|
18
|
-
<h1><%= link_to Typus::Configuration.options[:app_name], admin_sign_in_path %></h1>
|
|
19
|
-
<%= display_flash_message %>
|
|
20
|
-
<%= yield %>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div id="bottom_dialog">
|
|
24
|
-
<%= typus_block :location => 'shared', :partial => 'footer' %>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
</body>
|
|
28
|
-
|
|
29
|
-
</html>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<% form_tag admin_recover_password_path do %>
|
|
2
|
-
<ul>
|
|
3
|
-
<li><label for="email"><%= _("Email") %></label>
|
|
4
|
-
<%= text_field :user, :email, :size => 20, :class => 'text' %></li>
|
|
5
|
-
<li><%= submit_tag _("Recover password"), :class => 'button' %> <%= link_to _("I remember my password"), admin_sign_in_path %></li>
|
|
6
|
-
</ul>
|
|
7
|
-
<% end %>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<% form_tag admin_reset_password_path do %>
|
|
2
|
-
|
|
3
|
-
<%= hidden_field_tag :token, @user.token %>
|
|
4
|
-
|
|
5
|
-
<%= error_messages_for :user, :header_message => nil, :message => nil %>
|
|
6
|
-
|
|
7
|
-
<ul>
|
|
8
|
-
<li><label for="password"><%= _("Password") %></label>
|
|
9
|
-
<%= password_field :user, :password, :size => 20, :class => 'text' %></li>
|
|
10
|
-
<li><label for="password"><%= _("Password confirm") %></label>
|
|
11
|
-
<%= password_field :user, :password_confirmation, :size => 20, :class => 'text' %></li>
|
|
12
|
-
<li><%= submit_tag _("Change password"), :class => 'button' %> <%= link_to _("I remember my password"), admin_sign_in_path %></li>
|
|
13
|
-
</ul>
|
|
14
|
-
|
|
15
|
-
<% end %>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<% form_tag admin_sign_in_path(:back_to => params[:back_to]) do %>
|
|
2
|
-
<ul>
|
|
3
|
-
<li><label for="email"><%= _("Email") %></label>
|
|
4
|
-
<%= text_field :user, :email, :size => 20, :class => 'text' %></li>
|
|
5
|
-
<li><label for="password"><%= _("Password") %></label>
|
|
6
|
-
<%= password_field :user, :password, :size => 20, :class => 'text' %></li>
|
|
7
|
-
<li><%= submit_tag _("Sign in"), :class => 'button' %> <%= link_to _("Recover password"), admin_recover_password_path if Typus::Configuration.options[:recover_password] %></li>
|
|
8
|
-
</ul>
|
|
9
|
-
<% end %>
|
data/config/locales/es.yml
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
# Spanish translations for Typus
|
|
2
|
-
# by Felipe Talavera <http://github.com/flype>
|
|
3
|
-
|
|
4
|
-
es:
|
|
5
|
-
"Email": "Correo"
|
|
6
|
-
"Password": "Contraseña"
|
|
7
|
-
"Password confirmation": "Confirmar contraseña"
|
|
8
|
-
"Sign in": "Entrar"
|
|
9
|
-
"Recover password": "Recuperar contraseña"
|
|
10
|
-
"Sign up": "Crear cuenta"
|
|
11
|
-
"Enter your email below to create the first user": "Introduce tu email para crear el primer usuario."
|
|
12
|
-
"That doesn't seem like a valid email address": "Eso no parecia una dirección válida de correo electrónico."
|
|
13
|
-
"I remember my password": "Recuerdo mi contraseña"
|
|
14
|
-
"Password recovery link sent to your email": "Enlace de recuperación de contraseña enviado a tu correo electrónico."
|
|
15
|
-
"A valid token is required": "Se requiere un token válido."
|
|
16
|
-
"The email and/or password you entered is invalid": "El correo y/o la contraseña proporcionadas no son válidas."
|
|
17
|
-
"There are not defined applications in config/typus/*.yml": "There are not defined applications in config/typus/*.yml"
|
|
18
|
-
"Overview": "Visión general"
|
|
19
|
-
"Options": "Opciones"
|
|
20
|
-
"Password confirm": "Confirmación de contraseña"
|
|
21
|
-
"Change password": "Cambiar contraseña"
|
|
22
|
-
"There are no {{records}}": "No hay {{records}}."
|
|
23
|
-
"There are no {{records}} under this filter": "No hay {{records}} con este filtro."
|
|
24
|
-
"Dashboard": "Dashboard"
|
|
25
|
-
"Create entry": "Crear entrada"
|
|
26
|
-
"Update entry": "Actualizar entrada"
|
|
27
|
-
"New": "Nuevo"
|
|
28
|
-
"Show": "Mostrar"
|
|
29
|
-
"Edit": "Editar"
|
|
30
|
-
"Login": "Login"
|
|
31
|
-
"Setup": "Configurar"
|
|
32
|
-
"Create": "Crear"
|
|
33
|
-
"Sign out": "Salir"
|
|
34
|
-
"Update": "Actualizado"
|
|
35
|
-
"View site": "Ver web"
|
|
36
|
-
"Logged as": "Autenticado como"
|
|
37
|
-
"Remove filter": "Quitar filtro"
|
|
38
|
-
"Back to list": "Volver al listado"
|
|
39
|
-
"Actions": "Acciones"
|
|
40
|
-
"Add": "Añadir"
|
|
41
|
-
"Previous": "Anterior"
|
|
42
|
-
"Next": "Siguiente"
|
|
43
|
-
"Search": "Búsqueda"
|
|
44
|
-
"Search by": "Buscar por"
|
|
45
|
-
"{{model}} successfully updated": "{{model}} satisfactoriamente actualizado."
|
|
46
|
-
"{{model}} successfully created": "{{model}} satisfactoriamente creado."
|
|
47
|
-
"{{model}} successfully removed": "{{model}} satisfactoriamente eliminado."
|
|
48
|
-
"{{model}} {{attribute}} changed": "{{model}} {{attribute}} cambiado."
|
|
49
|
-
"You're adding a new {{resource_from}} to {{resource_to}}": "Estas añadiendo un nuevo {{resource_from}} a {{resource_to}}."
|
|
50
|
-
"You're adding a new {{resource_from}}": "Estas añadiendo un nuevo {{resource_from}}."
|
|
51
|
-
"You're updating a {{resource_from}} for {{resource_to}}": "Estas actualizando un {{resource_from}} de {{resource_to}}."
|
|
52
|
-
"You're updating a {{resource_from}}": "Estas actualizando un {{resource_from}}."
|
|
53
|
-
"Toggle is disabled": "Toggle is disabled."
|
|
54
|
-
"Record moved {{to}}": "Record moved {{to}}."
|
|
55
|
-
"{{model_a}} related to {{model_b}}": "{{model_a}} relacionado con {{model_b}}."
|
|
56
|
-
"{{model_a}} successfully assigned to {{model_b}}": "{{model_a}} asignado satisfactoriamente a {{model_b}}."
|
|
57
|
-
"{{model_a}} unrelated from {{model_b}}": "{{model_a}} no esta relacionado con {{model_b}}."
|
|
58
|
-
"Your new password is {{password}}": "Tu nueva contraseña es {{password}}."
|
|
59
|
-
"Add entry": "Añadir entrada"
|
|
60
|
-
"Go to": "Ir a"
|
|
61
|
-
"First name": "Nombre"
|
|
62
|
-
"Last name": "Apellidos"
|
|
63
|
-
"Roles": "Roles"
|
|
64
|
-
"Status": "Estado"
|
|
65
|
-
"Typus User": "Typus User"
|
|
66
|
-
"System Users Administration": "Administrar Usuarios del Sistema"
|
|
67
|
-
"Resources": "Recursos"
|
|
68
|
-
"Up": "Subir"
|
|
69
|
-
"Down": "Bajar"
|
|
70
|
-
"Filter by": "filtrar por"
|
|
71
|
-
"Checked if active": "Marca para activar"
|
|
72
|
-
"As you're not the admin or the owner of this record you cannot edit it": "Como no eres el admin o el propietario de este registro no puedes editarlo."
|
|
73
|
-
"You can't change your role": "No puedes cambiar tu propio rol."
|
|
74
|
-
"Error! Typus User or role doesn't exist": "Error! Typus User o el role no existen."
|
|
75
|
-
"You can't toggle your status": "No puedes cambiar tu estado."
|
|
76
|
-
"You're not allowed to toggle status": "No se te permite cambiar tu estado."
|
|
77
|
-
"You can't remove yourself": "No te puedes eliminar a ti mismo."
|
|
78
|
-
"You're not allowed to remove Typus Users": "No se te permite borrar usuarios de typus."
|
|
79
|
-
"{{current_user_role}} can't perform action. ({{action}})": "{{current_user_role}} no puede realizar la acción. ({{action}})"
|
|
80
|
-
"{{current_user_role}} can't go to {{action}} on {{controller}}": "{{current_user_role}} no pude ir a {{action}} en {{controller}}."
|
|
81
|
-
"{{current_user_role}} can't delete this item": "{{current_user_role}} no puede borrar este elemento."
|
|
82
|
-
"{{current_user_role}} can't display items": "{{current_user_role}} no puede mostrar los elementos."
|
|
83
|
-
"You can update your password at": "Puedes actualizar tu contraseña en"
|
|
84
|
-
"If you didn't request a password update, you can ignore this message": "Si no pediste una actualización de tu contraseña, puedes ignorar este mensaje."
|
|
85
|
-
"Reset password": "Cambiar contraseña"
|
|
86
|
-
"Add new": "Añadir nuevo"
|
|
87
|
-
"Do you want to cancel it?": "¿Quieres cancelarlo?"
|
|
88
|
-
"Click here": "Pulsa aquí"
|
|
89
|
-
"Are you sure you want to leave this page?": "¿Estas seguro que quieres abandonar esta página?"
|
|
90
|
-
"If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si has relizado algún cambio en los campos sin pulsar en el botón de Guardar/Actualizar, tus cambios se perderán."
|
|
91
|
-
"Click OK to continue, or click Cancel to stay on this page": "Pulse OK para continuar, o pulse Cancelar para permanecer en esta página."
|
|
92
|
-
"Remove entry?": "¿Borrar entrada?"
|
|
93
|
-
"Unrelate {{unrelate_model}} from {{unrelate_model_from}}?": "Unrelate {{unrelate_model}} from {{unrelate_model_from}}?"
|
|
94
|
-
"Change {{attribute}}?": "Change {{attribute}}?"
|
|
95
|
-
"Today": "Hoy"
|
|
96
|
-
"Last few days": "Últimos dias"
|
|
97
|
-
"Last 7 days": "Últimos 7 dias"
|
|
98
|
-
"Last 30 days": "Últimos 30 dias"
|
|
99
|
-
"{{model}} filtered by {{filtered_by}}": "{{model}} filtrados por {{filtered_by}}"
|
|
100
|
-
"True": "Verdadero"
|
|
101
|
-
"False": "Falso"
|
|
102
|
-
"Are you sure you want to sign out and end your session?":
|
|
103
|
-
"License": "Licencia"
|
|
104
|
-
"Documentation": "Documentación"
|
|
105
|
-
"Submit a bug report": "Reporta un error"
|