typus 0.9.39 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,26 @@
|
|
1
|
+
<%
|
2
|
+
page_title = _("Sign in")
|
3
|
+
title(page_title)
|
4
|
+
%>
|
5
|
+
|
6
|
+
<%= form_for :typus_user, :url => { :action => :create, :back_to => params[:back_to] } do |form| %>
|
7
|
+
|
8
|
+
<ul>
|
9
|
+
|
10
|
+
<li>
|
11
|
+
<%= form.label :email, Typus.user_class.human_attribute_name(:email) %>
|
12
|
+
<%= form.text_field :email, :size => 20, :class => "text" %>
|
13
|
+
</li>
|
14
|
+
|
15
|
+
<li>
|
16
|
+
<%= form.label :password, Typus.user_class.human_attribute_name(:password) %>
|
17
|
+
<%= form.password_field :password, :size => 20, :class => "text" %>
|
18
|
+
</li>
|
19
|
+
|
20
|
+
<li>
|
21
|
+
<%= submit_tag _("Sign in"), :class => "button" %> <%= link_to _("Recover password"), forgot_password_admin_account_index_path if Rails.env.development? || Typus.mailer_sender %>
|
22
|
+
</li>
|
23
|
+
|
24
|
+
</ul>
|
25
|
+
|
26
|
+
<% end %>
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
%>
|
6
|
-
|
7
|
-
<li><label><%= @resource[:class].human_attribute_name(attribute) %></label>
|
8
|
-
<%= check_box :item, attribute_name %> <label class="inline_label" for="item_<%= attribute_name %>"><%= _(custom_true) %></label></li>
|
1
|
+
<li>
|
2
|
+
<%= form.label attribute, label_text, :class => "inline_label" %>
|
3
|
+
<%= form.check_box attribute, options %>
|
4
|
+
</li>
|
@@ -1,2 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<%
|
2
|
+
custom = { :include_blank => false }
|
3
|
+
options.merge!(custom)
|
4
|
+
%>
|
5
|
+
|
6
|
+
<li>
|
7
|
+
<%= form.label attribute, label_text %>
|
8
|
+
<%= form.date_select attribute, options, html_options %>
|
9
|
+
</li>
|
@@ -1,2 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<%
|
2
|
+
custom = { :include_blank => false }
|
3
|
+
options.merge!(custom)
|
4
|
+
%>
|
5
|
+
|
6
|
+
<li>
|
7
|
+
<%= form.label attribute, label_text %>
|
8
|
+
<%= form.datetime_select attribute, options, html_options %>
|
9
|
+
</li>
|
@@ -1,6 +1,21 @@
|
|
1
|
-
<%
|
1
|
+
<%
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
# attachment = attribute.split('_file_name').first
|
4
|
+
|
5
|
+
if !@item.class.validators.map { |i| i.class }.include?(ActiveModel::Validations::PresenceValidator) && @item.send(attribute).exists?
|
6
|
+
message = _("Remove %{attribute}", :attribute => @item.class.human_attribute_name(attribute).downcase)
|
7
|
+
label_text << <<-HTML
|
8
|
+
<small>#{link_to message, { :action => 'detach',
|
9
|
+
:id => @item,
|
10
|
+
:attachment => attribute },
|
11
|
+
:confirm => _("Are you sure?")}</small>
|
12
|
+
HTML
|
13
|
+
end
|
14
|
+
|
15
|
+
%>
|
16
|
+
|
17
|
+
<li>
|
18
|
+
<%= form.label attribute, raw(label_text) %>
|
19
|
+
<%= form.file_field attribute, options %>
|
20
|
+
<%= typus_preview(@item, attribute) %>
|
21
|
+
</li>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<a name="<%= field %>"></a>
|
2
|
+
<div class="box_relationships" id="<%= model_to_relate_as_resource %>">
|
3
|
+
|
4
|
+
<h2>
|
5
|
+
<%= link_to model_to_relate.model_name.human.pluralize,
|
6
|
+
{ :controller => "admin/#{model_to_relate_as_resource}", foreign_key => @item.id },
|
7
|
+
:title => _("%{model} filtered by %{filtered_by}",
|
8
|
+
:model => model_to_relate.model_name.human.pluralize,
|
9
|
+
:filtered_by => @item.to_label) %>
|
10
|
+
<%= add_new %>
|
11
|
+
</h2>
|
12
|
+
|
13
|
+
<%= form %>
|
14
|
+
|
15
|
+
<% unless @items.count.zero? -%>
|
16
|
+
<%= table %>
|
17
|
+
<%= pagination(:anchor => model_to_relate.to_resource) %>
|
18
|
+
<% else %>
|
19
|
+
<div id="flash" class="notice">
|
20
|
+
<p><%= _("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %></p>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<div class="box_relationships" id="<%= model_to_relate_as_resource %>">
|
2
|
+
|
3
|
+
<h2>
|
4
|
+
<%= model_to_relate.model_name.human.pluralize %>
|
5
|
+
<small><%= add_new %></small>
|
6
|
+
</h2>
|
7
|
+
|
8
|
+
<%= form %>
|
9
|
+
|
10
|
+
<% unless @items.count.zero? -%>
|
11
|
+
<%= table %>
|
12
|
+
<%= pagination(:anchor => model_to_relate.to_resource) %>
|
13
|
+
<% else %>
|
14
|
+
<p><%= _("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %></p>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
</div>
|
File without changes
|
@@ -1,2 +1,4 @@
|
|
1
|
-
<li
|
2
|
-
<%=
|
1
|
+
<li>
|
2
|
+
<%= form.label attribute, label_text %>
|
3
|
+
<%= form.password_field attribute, options %>
|
4
|
+
</li>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<%= form_tag :action => :relate, :id => @item.id do %>
|
2
|
+
<%= hidden_field :related, :model, :value => model_to_relate %>
|
3
|
+
<p><%= select :related, :id, items_to_relate.collect { |f| [f.to_label, f.id] }.sort_by { |e| e.first } %> <%= submit_tag _("Add"), :class => "button" %></p>
|
4
|
+
<% end %>
|
@@ -1,21 +1,9 @@
|
|
1
1
|
<%
|
2
|
-
|
3
|
-
|
4
|
-
@resource[:class].send(attribute).each do |option|
|
5
|
-
case option.kind_of?(Array)
|
6
|
-
when true
|
7
|
-
selected = 'selected' if @item.send(attribute).eql?(option.last)
|
8
|
-
options << %Q[<option #{selected} value="#{option.last}">#{option.first}</option>]
|
9
|
-
else
|
10
|
-
selected = 'selected' if @item.send(attribute).eql?(option)
|
11
|
-
options << %Q[<option #{selected} value="#{option}">#{option}</option>]
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
2
|
+
values = @resource::const_get(attribute.upcase)
|
3
|
+
values = values.invert if values.kind_of?(Hash)
|
15
4
|
%>
|
16
5
|
|
17
|
-
<li
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
</select></li>
|
6
|
+
<li>
|
7
|
+
<%= form.label attribute, label_text %>
|
8
|
+
<%= form.select attribute, values, options.merge!(:include_blank => false) %>
|
9
|
+
</li>
|
@@ -1,21 +1,22 @@
|
|
1
1
|
<%
|
2
2
|
|
3
3
|
# Read only fields.
|
4
|
-
if @resource
|
5
|
-
|
4
|
+
if @resource.typus_field_options_for(:read_only).to_s.include?(attribute)
|
5
|
+
custom = { :readonly => 'readonly' }
|
6
|
+
label_text << " <small>#{_("Read only")}</small>"
|
6
7
|
end
|
7
8
|
|
8
9
|
# Auto generated fields.
|
9
|
-
if @resource
|
10
|
-
|
10
|
+
if @resource.typus_field_options_for(:auto_generated).include?(attribute)
|
11
|
+
custom = { :auto_generated => true }
|
12
|
+
label_text << " <small>#{_("Auto generated")}</small>"
|
11
13
|
end
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
-
attribute_humanized = @resource[:class].human_attribute_name(attribute)
|
16
|
-
attribute_humanized += " (#{attribute})" if attribute.include?('_id')
|
15
|
+
options.merge!(custom) if custom
|
17
16
|
|
18
17
|
%>
|
19
18
|
|
20
|
-
<li
|
21
|
-
<%=
|
19
|
+
<li>
|
20
|
+
<%= form.label attribute, label_text %>
|
21
|
+
<%= form.text_field attribute, options %>
|
22
|
+
</li>
|
@@ -1,2 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<%
|
2
|
+
custom = { :rows => @resource.typus_options_for(:form_rows) }
|
3
|
+
options = options.merge!(custom)
|
4
|
+
%>
|
5
|
+
|
6
|
+
<li>
|
7
|
+
<%= form.label attribute, label_text %>
|
8
|
+
<%= form.text_area attribute, options %>
|
9
|
+
</li>
|
@@ -1,2 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<%
|
2
|
+
custom = { :include_blank => false }
|
3
|
+
options.merge!(custom)
|
4
|
+
%>
|
5
|
+
|
6
|
+
<li>
|
7
|
+
<%= form.label attribute, label_text %>
|
8
|
+
<%= form.time_select attribute, options, html_options %>
|
9
|
+
</li>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html lang="<%= I18n.locale %>">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
|
7
|
+
<!--
|
8
|
+
|
9
|
+
Ruby on Rails easy-to-use interface to allow trusted users
|
10
|
+
edit structured content. (Admin scaffold generator)
|
11
|
+
|
12
|
+
Get the code at http://github.com/fesplugas/typus
|
13
|
+
|
14
|
+
-->
|
15
|
+
|
16
|
+
<meta charset="utf-8" />
|
17
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
18
|
+
|
19
|
+
<title><%= yield :title %></title>
|
20
|
+
|
21
|
+
<%= stylesheet_link_tag "/admin/stylesheets/screen",
|
22
|
+
"/admin/stylesheets/application" %>
|
23
|
+
|
24
|
+
</head>
|
25
|
+
|
26
|
+
<body id="account">
|
27
|
+
|
28
|
+
<div id="wrapper">
|
29
|
+
|
30
|
+
<div id="box">
|
31
|
+
<h1 class="logo"><%= Typus.admin_title %></h1>
|
32
|
+
<%= display_flash_message %>
|
33
|
+
<%= yield %>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="footer">
|
37
|
+
<%= Typus.admin_sub_title.html_safe %>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</body>
|
43
|
+
|
44
|
+
</html>
|
@@ -1,76 +1,82 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
1
|
+
<!DOCTYPE html>
|
3
2
|
|
4
|
-
<html
|
3
|
+
<html lang="<%= I18n.locale %>">
|
5
4
|
|
6
5
|
<head>
|
7
6
|
|
8
|
-
<meta
|
7
|
+
<meta charset="utf-8" />
|
9
8
|
|
10
|
-
<title><%=
|
9
|
+
<title><%= yield :title %></title>
|
11
10
|
|
12
|
-
<%= stylesheet_link_tag
|
13
|
-
|
14
|
-
|
11
|
+
<%= stylesheet_link_tag "/admin/stylesheets/screen",
|
12
|
+
"/admin/stylesheets/application",
|
13
|
+
"/admin/vendor/fancybox/jquery.fancybox-1.3.1.css" %>
|
15
14
|
<%= yield :stylesheets -%>
|
16
15
|
|
16
|
+
<%= javascript_include_tag "/admin/javascripts/jquery-1.4.2.min.js",
|
17
|
+
"/admin/javascripts/jquery.searchField.js",
|
18
|
+
"/admin/javascripts/jquery.rails.js",
|
19
|
+
"/admin/vendor/fancybox/jquery.fancybox-1.3.1.pack.js",
|
20
|
+
"/admin/vendor/fancybox/jquery.easing-1.3.pack.js",
|
21
|
+
"/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js",
|
22
|
+
"/admin/javascripts/application" %>
|
23
|
+
<%= yield :javascripts -%>
|
24
|
+
|
25
|
+
<%= csrf_meta_tag %>
|
26
|
+
|
17
27
|
</head>
|
18
28
|
|
19
29
|
<body>
|
20
30
|
|
21
|
-
<div id="
|
31
|
+
<div id="wrapper">
|
32
|
+
|
33
|
+
<div id="header_wrapper">
|
22
34
|
|
23
|
-
|
24
|
-
<div class="left">
|
35
|
+
<div id="header">
|
25
36
|
<%= header %>
|
37
|
+
<div class="clear"></div>
|
26
38
|
</div>
|
27
|
-
<div class="right">
|
28
|
-
<%= login_info %>
|
29
|
-
</div>
|
30
|
-
<div class="clear"></div>
|
31
|
-
</div>
|
32
39
|
|
33
|
-
|
40
|
+
<div id="links">
|
34
41
|
|
35
|
-
|
42
|
+
<div class="left">
|
43
|
+
<%= apps %>
|
44
|
+
</div>
|
36
45
|
|
37
|
-
|
46
|
+
<div class="right">
|
47
|
+
<%= login_info %>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div class="clear"></div>
|
38
51
|
|
39
|
-
<div id="content">
|
40
|
-
<%= display_flash_message %>
|
41
|
-
<%= yield %>
|
42
52
|
</div>
|
43
53
|
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<div id="content_wrapper">
|
57
|
+
|
44
58
|
<div id="sidebar">
|
45
59
|
<%= yield :sidebar %>
|
46
60
|
</div>
|
47
61
|
|
62
|
+
<div id="content">
|
63
|
+
<%= yield %>
|
64
|
+
</div>
|
65
|
+
|
48
66
|
<div class="clear"></div>
|
49
67
|
|
50
68
|
</div>
|
51
69
|
|
52
|
-
|
53
|
-
|
54
|
-
<div id="footer_wrapper">
|
70
|
+
<div id="footer_wrapper">
|
55
71
|
|
56
|
-
|
57
|
-
|
58
|
-
<%= typus_block :location => 'shared', :partial => 'footer' %>
|
72
|
+
<div id="footer">
|
73
|
+
<%= Typus.admin_sub_title.html_safe %>
|
59
74
|
</div>
|
60
|
-
|
61
|
-
<%= typus_block :location => 'shared', :partial => 'feedback' %>
|
62
|
-
</div>
|
63
|
-
<div class="clear"></div>
|
75
|
+
|
64
76
|
</div>
|
65
77
|
|
66
78
|
</div>
|
67
79
|
|
68
|
-
<%= javascript_include_tag 'admin/application' %>
|
69
|
-
<%= javascript_include_tag 'admin/jquery-1.3.2.min' %>
|
70
|
-
<%= javascript_include_tag 'admin/jquery.fancybox-1.2.1.min' %>
|
71
|
-
<%= include_tiny_mce_if_needed if defined?(TinyMCE) -%>
|
72
|
-
<%= yield :javascripts -%>
|
73
|
-
|
74
80
|
</body>
|
75
81
|
|
76
|
-
</html>
|
82
|
+
</html>
|
@@ -0,0 +1,124 @@
|
|
1
|
+
# Catalan translations for Typus
|
2
|
+
# by Lleïr Borràs <http://github.com/lleirborras>
|
3
|
+
|
4
|
+
ca:
|
5
|
+
|
6
|
+
"A valid token is required": "Es necessita un token vàlid."
|
7
|
+
"Actions": "Accions"
|
8
|
+
"Active": "Actiu"
|
9
|
+
"Add": "Afegir"
|
10
|
+
"Add %{resource}": "Afegir %{resource}"
|
11
|
+
"Add new": "Afegir nou"
|
12
|
+
"Are you sure?": "Estàs segur?"
|
13
|
+
"Are you sure you want to leave this page?": "Estàs segur que vols abandonar aquesta pàgina?"
|
14
|
+
"Are you sure you want to sign out and end your session?": "Estàs segur que vols sortir i tancar la sessió?"
|
15
|
+
"As you're not the admin or the owner of this record you cannot edit it": "Com que no ets l'administrador o el propietari d'aquest registre no el pots editar."
|
16
|
+
|
17
|
+
"Back to list": "Tornar al llistat"
|
18
|
+
|
19
|
+
"Cancel and go back":
|
20
|
+
"Change password": "Canviar contrasenya"
|
21
|
+
"Change %{attribute}?": "Canviar %{attribute}?"
|
22
|
+
"Checked if active": "Marca-ho per activar"
|
23
|
+
"Click OK to continue, or click Cancel to stay on this page": "Prem OK per continuar, o prem Cancel·lar per romandre en aquesta página."
|
24
|
+
"Create %{resource}": "Crear %{resource}"
|
25
|
+
"Create one now":
|
26
|
+
|
27
|
+
"Dashboard": "Panell de control"
|
28
|
+
"Do you want to cancel it?": "Vols cancel·lar-lo?"
|
29
|
+
"Documentation": "Documentació"
|
30
|
+
"Down": "Baixar"
|
31
|
+
|
32
|
+
"Edit": "Editar"
|
33
|
+
"Edit %{resource}": "Edit %{resource}"
|
34
|
+
"Enter your email below to create the first user": "Introdueix el teu email per crear el primer usuari."
|
35
|
+
"Error! Typus User or role doesn't exist": "Error! Typus User o el rol no existixen."
|
36
|
+
|
37
|
+
"False": "Fals"
|
38
|
+
"Filter": "Filtrar"
|
39
|
+
"Filter by %{attribute}": "Filtrar per %{attribute}"
|
40
|
+
|
41
|
+
"Go to": "Anar a"
|
42
|
+
|
43
|
+
"I remember my password": "Recordo la meva contrasenya"
|
44
|
+
"If you didn't request a password update, you can ignore this message": "Si no has demanat una actualització de la teva contrasenya, pots ignorar aquest missatge."
|
45
|
+
"If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Si has realitzat algun canvi en els camps sense premer el botó Guardar/Actualitzar, els teus canvis es perdran."
|
46
|
+
"Inactive": "Inactiu"
|
47
|
+
|
48
|
+
"Last few days": "Últims dies"
|
49
|
+
"Last 30 days": "Últims 30 dies"
|
50
|
+
"Last 7 days": "Últims 7 dies"
|
51
|
+
"License": "Llicència"
|
52
|
+
"Logged as": "Identificat com"
|
53
|
+
"Login": "Login"
|
54
|
+
|
55
|
+
"New": "Nou"
|
56
|
+
"Next": "Següent"
|
57
|
+
|
58
|
+
"Options": "Opcions"
|
59
|
+
|
60
|
+
"Password recovery link sent to your email": "L'enllaç de recuperació de contrasenya enviat al teu correu electrònic."
|
61
|
+
"Previous": "Anterior"
|
62
|
+
|
63
|
+
"Record moved %{to}": "Registre desplaçat %{to}."
|
64
|
+
"Recover password": "Recuperar contrasenya"
|
65
|
+
"Remove": "Eliminar"
|
66
|
+
"Remove %{attribute}": "Esborrar %{attribute}"
|
67
|
+
"Remove %{resource}?": "Esborrar %{resource}?"
|
68
|
+
"Remove filter": "Treure filtre"
|
69
|
+
"Remove search": "Treure cerca"
|
70
|
+
"Reset password": "Canviar contrasenya"
|
71
|
+
"Resources": "Recursos"
|
72
|
+
|
73
|
+
"Save %{resource}": "Guardar %{resource}"
|
74
|
+
"Search": "Cercar"
|
75
|
+
"Search by": "Cercar per"
|
76
|
+
"Setup": "Configurar"
|
77
|
+
"Send us feedback": "Envians comentaris"
|
78
|
+
"Show": "Mostrar"
|
79
|
+
"Show %{resource}": "Mostrar %{resource}"
|
80
|
+
"Sign in": "Entrar"
|
81
|
+
"Sign out": "Sortir"
|
82
|
+
"Sign up": "Crear compte"
|
83
|
+
"Submit a bug report": "Informar d'un error"
|
84
|
+
"System Users Administration": "Administrar usuaris del sistema"
|
85
|
+
|
86
|
+
"That doesn't seem like a valid email address": "Això no sembla ser una adreça de correu electrònic vàlida."
|
87
|
+
"The email and/or password you entered is invalid": "El correu i/o la contrasenya proporcionats no són vàlids."
|
88
|
+
"There are no %{records}": "No hi han %{records}."
|
89
|
+
"There are no %{records} under this filter": "No hi han %{records} amb aquest filtre."
|
90
|
+
"Today": "Avui"
|
91
|
+
"Toggle is disabled": "Alternar està desactivat."
|
92
|
+
"True": "Cert"
|
93
|
+
|
94
|
+
"Unrelate %{unrelate_model} from %{unrelate_model_from}?": "Deslligat %{unrelate_model} de %{unrelate_model_from}?"
|
95
|
+
"Up": "Pujar"
|
96
|
+
|
97
|
+
"You're adding a new %{resource_from}": "Estàs afegint un nou %{resource_from}."
|
98
|
+
"You're adding a new %{resource_from} to %{resource_to}": "Estàs afegint un nou %{resource_from} a %{resource_to}."
|
99
|
+
"You're not allowed to remove Typus Users": "No pots esborrar usuaris de typus."
|
100
|
+
"You're not allowed to toggle status": "No pots canviar el teu estat."
|
101
|
+
"You can update your password at": "Pots actualitzar la teva contrasenya a "
|
102
|
+
"You can't change your role": "No pots canviar-te tu mateix el rol."
|
103
|
+
"You can't remove yourself": "No et pots eliminar a tu mateix."
|
104
|
+
"You can't toggle your status": "No pots canviar-te l'estat."
|
105
|
+
"You're updating a %{resource_from}": "Estàs actualitzant un %{resource_from}."
|
106
|
+
"You're updating a %{resource_from} for %{resource_to}": "Estàs actualitzant un %{resource_from} de %{resource_to}."
|
107
|
+
|
108
|
+
"View site": "Veure la web"
|
109
|
+
|
110
|
+
"%{attachment} can't be removed": "%{attachment} no es pot esborrar."
|
111
|
+
"%{attachment} removed": "%{attachment} esborrat."
|
112
|
+
"%{current_user_role} can't delete this item": "%{current_user_role} no pot esborrar aquest element."
|
113
|
+
"%{current_user_role} can't display items": "%{current_user_role} no pot mostrar els elements."
|
114
|
+
"%{current_user_role} can't perform action. (%{action})": "%{current_user_role} no pot realitzar l'acció. (%{action})"
|
115
|
+
"%{model} filtered by %{filtered_by}": "%{model} filtrats per %{filtered_by}"
|
116
|
+
"%{model} successfully created": "%{model} satisfactòriament creat."
|
117
|
+
"%{model} successfully updated": "%{model} satisfactòriament actualitzat."
|
118
|
+
"%{model} successfully removed": "%{model} satisfactòriament eliminat."
|
119
|
+
"%{model} %{attribute} changed": "%{model} %{attribute} canviat."
|
120
|
+
"%{model_a} cannot be unrelated from %{model_b}":
|
121
|
+
"%{model_a} cannot be related to %{model_b}":
|
122
|
+
"%{model_a} related to %{model_b}": "%{model_a} relacionat amb %{model_b}."
|
123
|
+
"%{model_a} successfully assigned to %{model_b}": "%{model_a} assignat satisfactòriament a %{model_b}."
|
124
|
+
"%{model_a} unrelated from %{model_b}": "%{model_a} no està relacionat amb %{model_b}."
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Catalan translations for Typus
|
2
|
+
# by Lleïr Borràs <http://github.com/lleirborras>
|
3
|
+
|
4
|
+
ca:
|
5
|
+
activerecord:
|
6
|
+
models:
|
7
|
+
typus_user: Usuari
|
8
|
+
attributes:
|
9
|
+
typus_user:
|
10
|
+
email: "Correu electrònic"
|
11
|
+
first_name: "Nom"
|
12
|
+
last_name: "Cognoms"
|
13
|
+
password: "Contrassenya"
|
14
|
+
password_confirmation: "Confirmar contrasenya"
|
15
|
+
status: "Estat"
|
16
|
+
role: "Rol"
|