intesys_asset_manager 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +127 -0
- data/Rakefile +31 -0
- data/app/assets/images/loader.gif +0 -0
- data/app/assets/javascripts/asset_manager.js.coffee +149 -0
- data/app/assets/stylesheets/asset_manager.css.sass +85 -0
- data/app/assets/stylesheets/asset_manager/base/colors.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/base/fonts.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/controllers/asset_categories.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/controllers/assets.css.sass +104 -0
- data/app/assets/stylesheets/asset_manager/controllers/index.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/layout/footer.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/layout/generic.css.sass +17 -0
- data/app/assets/stylesheets/asset_manager/layout/header.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/layout/main.css.sass +26 -0
- data/app/assets/stylesheets/asset_manager/modules/alerts.css.sass +3 -0
- data/app/assets/stylesheets/asset_manager/modules/btn_group.css.sass +3 -0
- data/app/assets/stylesheets/asset_manager/modules/page_header.sass +12 -0
- data/app/assets/stylesheets/asset_manager/modules/quick_upload.css.sass +26 -0
- data/app/assets/stylesheets/asset_manager/modules/translations.css.sass +4 -0
- data/app/assets/stylesheets/asset_manager/plugins/plugins.css.sass +7 -0
- data/app/assets/stylesheets/asset_manager/resources/asset_categories/asset_category.css.sass +0 -0
- data/app/assets/stylesheets/asset_manager/resources/asset_instances/asset_instance.css.sass +4 -0
- data/app/assets/stylesheets/asset_manager/resources/assets/asset.css.sass +35 -0
- data/app/assets/stylesheets/asset_manager/resources/resource/resource.css.sass +0 -0
- data/app/controllers/asset_manager/application_controller.rb +4 -0
- data/app/controllers/asset_manager/asset_categories_controller.rb +56 -0
- data/app/controllers/asset_manager/asset_instances_controller.rb +22 -0
- data/app/controllers/asset_manager/assets_controller.rb +122 -0
- data/app/controllers/asset_manager/index_controller.rb +8 -0
- data/app/helpers/asset_manager/application_helper.rb +9 -0
- data/app/helpers/asset_manager/asset_instances_helper.rb +59 -0
- data/app/helpers/asset_manager/assets_helper.rb +145 -0
- data/app/helpers/asset_manager/links_helper.rb +21 -0
- data/app/inputs/asset_manager_input.rb +27 -0
- data/app/models/asset_manager/asset.rb +99 -0
- data/app/models/asset_manager/asset_association.rb +15 -0
- data/app/models/asset_manager/asset_category.rb +22 -0
- data/app/models/asset_manager/asset_instance.rb +33 -0
- data/app/models/asset_manager/asset_private_instance.rb +6 -0
- data/app/models/asset_manager/asset_public_instance.rb +6 -0
- data/app/uploaders/asset_manager/asset_private_uploader.rb +9 -0
- data/app/uploaders/asset_manager/asset_public_uploader.rb +12 -0
- data/app/uploaders/asset_manager/asset_uploader.rb +36 -0
- data/app/views/admin/asset_manager/assets/_asset.html.haml +7 -0
- data/app/views/admin/asset_manager/assets/_assets.html.haml +2 -0
- data/app/views/asset_manager/asset_categories/_form.html.haml +10 -0
- data/app/views/asset_manager/asset_categories/_translated_fields.html.haml +3 -0
- data/app/views/asset_manager/asset_categories/edit.html.haml +8 -0
- data/app/views/asset_manager/asset_categories/index.html.haml +43 -0
- data/app/views/asset_manager/asset_categories/new.html.haml +4 -0
- data/app/views/asset_manager/asset_categories/show.html.haml +30 -0
- data/app/views/asset_manager/asset_instances/_asset_instance.html.haml +14 -0
- data/app/views/asset_manager/asset_instances/_asset_instance_as_flag.html.haml +3 -0
- data/app/views/asset_manager/asset_instances/_asset_instances.html.haml +5 -0
- data/app/views/asset_manager/asset_instances/_asset_instances_as_flag.html.haml +12 -0
- data/app/views/asset_manager/assets/_asset.html.haml +3 -0
- data/app/views/asset_manager/assets/_asset_draggable.html.haml +8 -0
- data/app/views/asset_manager/assets/_asset_group_by_instance_context.html.haml +7 -0
- data/app/views/asset_manager/assets/_asset_instance_fields.haml +10 -0
- data/app/views/asset_manager/assets/_assets.html.haml +4 -0
- data/app/views/asset_manager/assets/_assets_draggable.html.haml +7 -0
- data/app/views/asset_manager/assets/_form.html.haml +63 -0
- data/app/views/asset_manager/assets/_new_actions.html.haml +8 -0
- data/app/views/asset_manager/assets/_quick_upload.html.haml +20 -0
- data/app/views/asset_manager/assets/_translated_fields.html.haml +4 -0
- data/app/views/asset_manager/assets/edit.html.haml +6 -0
- data/app/views/asset_manager/assets/index.html.haml +68 -0
- data/app/views/asset_manager/assets/new.html.haml +4 -0
- data/app/views/asset_manager/assets/quick_upload.js.erb +7 -0
- data/app/views/asset_manager/assets/select.html.haml +57 -0
- data/app/views/asset_manager/assets/select.js.erb +1 -0
- data/app/views/asset_manager/assets/show.html.haml +51 -0
- data/app/views/asset_manager/index/index.html.haml +6 -0
- data/app/views/asset_manager/partials/_form_errors.html.haml +7 -0
- data/app/views/asset_manager/partials/_locales_tabs.html.haml +4 -0
- data/app/views/asset_manager/partials/_pagination_status.html.haml +2 -0
- data/app/views/layouts/asset_manager/_base.html.haml +6 -0
- data/app/views/layouts/asset_manager/application.html.haml +15 -0
- data/app/views/layouts/asset_manager/partials/_flash_messages.html.haml +4 -0
- data/app/views/layouts/asset_manager/partials/_head.html.haml +11 -0
- data/app/views/layouts/asset_manager/partials/_header.html.haml +15 -0
- data/app/views/layouts/asset_manager/simple.html.haml +4 -0
- data/config/locales/en.yml +179 -0
- data/config/locales/it.yml +181 -0
- data/config/routes.rb +20 -0
- data/db/migrate/20120919130657_asset_manager_init.rb +44 -0
- data/db/migrate/20121005072255_acts_as_taggable_on_migration.rb +30 -0
- data/db/migrate/20121102141009_add_file_type_to_asset.rb +5 -0
- data/db/migrate/20130417082644_asset_manager_add_index_to_foreign_keys.rb +5 -0
- data/db/migrate/20140512090936_add_missing_unique_indices.acts_as_taggable_on_engine.rb +20 -0
- data/db/migrate/20140512090937_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +15 -0
- data/lib/asset_manager.rb +57 -0
- data/lib/asset_manager/all.rb +5 -0
- data/lib/asset_manager/engine.rb +29 -0
- data/lib/asset_manager/extensions/active_record.rb +152 -0
- data/lib/asset_manager/extensions/all.rb +1 -0
- data/lib/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/lib/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/lib/assets/javascripts/bootstrap2/bootstrap.js +2280 -0
- data/lib/assets/stylesheets/bootstrap2/bootstrap-responsive.css +1109 -0
- data/lib/assets/stylesheets/bootstrap2/bootstrap.css.erb +6167 -0
- data/lib/custom_versions.rb +20 -0
- data/lib/deprecated.rb +61 -0
- data/lib/intesys_asset_manager.rb +1 -0
- data/lib/intesys_asset_manager/version.rb +3 -0
- data/lib/tasks/asset_manager_tasks.rake +32 -0
- data/lib/touch_translation.rb +18 -0
- data/lib/translations.rb +19 -0
- data/spec/controllers/asset_manager/asset_categories_controller_spec.rb +164 -0
- data/spec/controllers/asset_manager/assets_controller_spec.rb +164 -0
- data/spec/controllers/asset_manager/index_controller_spec.rb +12 -0
- data/spec/factories/asset_manager_asset_associations.rb +10 -0
- data/spec/factories/asset_manager_asset_categories.rb +7 -0
- data/spec/factories/asset_manager_asset_instances.rb +9 -0
- data/spec/factories/asset_manager_assets.rb +8 -0
- data/spec/helpers/asset_manager/asset_categories_helper_spec.rb +5 -0
- data/spec/helpers/asset_manager/assets_helper_spec.rb +5 -0
- data/spec/helpers/asset_manager/index_helper_spec.rb +5 -0
- data/spec/models/asset_manager/asset_association_spec.rb +5 -0
- data/spec/models/asset_manager/asset_category_spec.rb +5 -0
- data/spec/models/asset_manager/asset_instance_spec.rb +7 -0
- data/spec/models/asset_manager/asset_spec.rb +5 -0
- data/spec/requests/asset_manager/asset_manager_asset_categories_spec.rb +11 -0
- data/spec/requests/asset_manager/asset_manager_assets_spec.rb +11 -0
- data/spec/routing/asset_manager/asset_categories_routing_spec.rb +35 -0
- data/spec/routing/asset_manager/assets_routing_spec.rb +35 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/support/capybara.rb +8 -0
- data/spec/views/asset_manager/asset_categories/edit.html.haml_spec.rb +15 -0
- data/spec/views/asset_manager/asset_categories/index.html.haml_spec.rb +15 -0
- data/spec/views/asset_manager/asset_categories/new.html.haml_spec.rb +15 -0
- data/spec/views/asset_manager/asset_categories/show.html.haml_spec.rb +12 -0
- data/spec/views/asset_manager/assets/edit.html.haml_spec.rb +20 -0
- data/spec/views/asset_manager/assets/index.html.haml_spec.rb +23 -0
- data/spec/views/asset_manager/assets/new.html.haml_spec.rb +20 -0
- data/spec/views/asset_manager/assets/show.html.haml_spec.rb +17 -0
- data/spec/views/asset_manager/index/index.html.haml_spec.rb +5 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/aac.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/ai.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/aif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/asp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/aspx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/avi.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/bin.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/bmp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/css.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/db.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/default.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/dll.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/dll2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/doc.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/eps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/exe1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/exe2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/fav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericBlue.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericGray.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericOrange.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericRed.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/genericTurquesa.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/gif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/gz.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/help.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/help2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/hqx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/html.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/htmlFirefox.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/htmlIE.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/htmlSafari1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/htmlSafari2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/jpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/js.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mov.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mov2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mp2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mp3.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mp4.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/mpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/pdf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/php.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/pic.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/png.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/pps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/ppt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/psd.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/rar.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/rb.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/rtf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/template.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/tif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/ttf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/txt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/vbs.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/vbs2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/warning.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/wav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/xls.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/xml.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/zip.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/16x16/zip2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/aac.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/ai.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/aif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/asp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/aspx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/avi.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/bin.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/bmp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/css.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/db.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/default.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/dll.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/dll2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/doc.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/eps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/exe1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/exe2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/fav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericBlue.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericGray.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericOrange.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericRed.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/genericTurquesa.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/gif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/gz.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/help.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/help2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/hqx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/html.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/htmlFirefox.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/htmlIE.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/htmlSafari1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/htmlSafari2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/jpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/js.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mov.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mov2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mp2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mp3.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mp4.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/mpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/pdf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/php.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/pic.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/png.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/pps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/ppt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/psd.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/rar.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/rb.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/rtf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/template.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/tif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/ttf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/txt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/vbs.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/vbs2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/warning.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/wav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/xls.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/xml.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/zip.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/20x20/zip2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/aac.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/ai.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/aif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/asp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/aspx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/avi.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/bin.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/bmp.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/css.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/db.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/default.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/dll.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/dll2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/doc.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/eps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/exe1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/exe2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/fav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericBlue.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericGray.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericOrange.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericRed.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/genericTurquesa.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/gif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/gz.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/help.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/help2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/hqx.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/html.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/htmlFirefox.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/htmlIE.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/htmlSafari1.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/htmlSafari2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/jpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/js.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mov.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mov2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mp2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mp3.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mp4.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/mpg.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/pdf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/php.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/pic.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/png.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/pps.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/ppt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/psd.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/rar.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/rb.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/rtf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/tif.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/ttf.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/txt.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/vbs.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/vbs2.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/warning.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/wav.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/xls.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/xml.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/zip.png +0 -0
- data/vendor/assets/images/asset_manager/file_icons/32x32/zip2.png +0 -0
- data/vendor/assets/images/blank.gif +0 -0
- data/vendor/assets/images/clippy.swf +0 -0
- data/vendor/assets/images/fancybox_buttons.png +0 -0
- data/vendor/assets/images/fancybox_loading.gif +0 -0
- data/vendor/assets/images/fancybox_loading@2x.gif +0 -0
- data/vendor/assets/images/fancybox_overlay.png +0 -0
- data/vendor/assets/images/fancybox_sprite.png +0 -0
- data/vendor/assets/images/fancybox_sprite@2x.png +0 -0
- data/vendor/assets/images/ias/loader.gif +0 -0
- data/vendor/assets/javascripts/ias/jquery.ias.js +620 -0
- data/vendor/assets/stylesheets/ias/jquery.ias.css +8 -0
- metadata +748 -0
@@ -0,0 +1 @@
|
|
1
|
+
$('#sortable1').html('<%= escape_javascript(render partial: 'assets_draggable', locals: { assets: @assets, pagination: true }) %>')
|
@@ -0,0 +1,51 @@
|
|
1
|
+
= content_for :page_title do
|
2
|
+
= am_title @asset.title
|
3
|
+
= content_for :page_actions do
|
4
|
+
= link_to(edit_asset_path(@asset), class: 'btn') do
|
5
|
+
%i.icon-pencil
|
6
|
+
= t('.edit')
|
7
|
+
|
8
|
+
%table.table.table-bordered.table-condensed.table-striped
|
9
|
+
%thead
|
10
|
+
%tr
|
11
|
+
%th{ colspan: 2 }= t('.general')
|
12
|
+
%tbody
|
13
|
+
%tr
|
14
|
+
%td= t('.id')
|
15
|
+
%td= @asset.id
|
16
|
+
%tr
|
17
|
+
%td= t('.created_at')
|
18
|
+
%td= @asset.created_at
|
19
|
+
%tr
|
20
|
+
%td= t('.updated_at')
|
21
|
+
%td= @asset.updated_at
|
22
|
+
|
23
|
+
%table.table.table-bordered.table-condensed.table-striped
|
24
|
+
%thead
|
25
|
+
%tr
|
26
|
+
%th{ colspan: 2 }= t('.details')
|
27
|
+
%tbody
|
28
|
+
%tr
|
29
|
+
%td= t('.title')
|
30
|
+
%td= @asset.translations.map{ |t| "[#{t.locale}] #{t.title}" }.join(', ')
|
31
|
+
%tr
|
32
|
+
%td= t('.description')
|
33
|
+
%td= @asset.translations.map{ |t| "[#{t.locale}] #{t.description}" }.join(', ')
|
34
|
+
- if AssetManager.with_categories
|
35
|
+
%tr
|
36
|
+
%td= t('.asset_category')
|
37
|
+
%td= @asset.asset_category.title rescue ''
|
38
|
+
- unless AssetManager.unique_asset_type?
|
39
|
+
%tr
|
40
|
+
%td= t('.public')
|
41
|
+
%td= @asset.public
|
42
|
+
- if AssetManager.with_tags
|
43
|
+
%tr
|
44
|
+
%td= t('.tags')
|
45
|
+
%td= @asset.tag_list
|
46
|
+
%tr
|
47
|
+
%td= t('.file_type')
|
48
|
+
%td= @asset.file_type
|
49
|
+
%tr
|
50
|
+
%td= t('.asset_instances')
|
51
|
+
%td= render partial: 'asset_manager/asset_instances/asset_instances', locals: { collection: @asset.asset_instances }
|
@@ -0,0 +1,15 @@
|
|
1
|
+
- content_for :header do
|
2
|
+
= render 'layouts/asset_manager/partials/header'
|
3
|
+
|
4
|
+
- content_for :content do
|
5
|
+
.container-fluid
|
6
|
+
.row-fluid
|
7
|
+
- if content_for?(:page_title)
|
8
|
+
.page-header
|
9
|
+
= yield(:page_title)
|
10
|
+
.btn-group
|
11
|
+
= yield(:page_actions)
|
12
|
+
= render 'layouts/asset_manager/partials/flash_messages'
|
13
|
+
= yield
|
14
|
+
|
15
|
+
= render 'layouts/asset_manager/base'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
%title= "Asset Manager#{yield(:title) ? ' - ' + yield(:title) : ''}"
|
2
|
+
= stylesheet_link_tag 'asset_manager', media: 'all'
|
3
|
+
= csrf_meta_tags
|
4
|
+
%meta{content: 'width=device-width, initial-scale=1.0', name: 'viewport'}
|
5
|
+
%meta{content: '', name: 'description'}
|
6
|
+
%meta{content: '', name: 'author'}
|
7
|
+
/ Le HTML5 shim, for IE6-8 support of HTML5 elements
|
8
|
+
/[if lt IE 9]
|
9
|
+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
10
|
+
/ Le fav and touch icons
|
11
|
+
= javascript_include_tag 'asset_manager'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.navbar.navbar-inverse.navbar-fixed-top
|
2
|
+
.navbar-inner
|
3
|
+
.container-fluid
|
4
|
+
%a.btn.btn-navbar{data: {target: '.nav-collapse', toggle: 'collapse'}}
|
5
|
+
%span.icon-bar
|
6
|
+
%span.icon-bar
|
7
|
+
%span.icon-bar
|
8
|
+
= link_to 'Asset Manager', root_path, class: 'brand'
|
9
|
+
.nav-collapse.collapse
|
10
|
+
%ul.nav
|
11
|
+
%li{ class: (controller_name == 'assets' ? 'active' : '') }
|
12
|
+
= link_to t('.assets'), assets_path
|
13
|
+
- if AssetManager.with_categories
|
14
|
+
%li{ class: (controller_name == 'asset_categories' ? 'active' : '') }
|
15
|
+
= link_to t('.asset_categories'), asset_categories_path
|
@@ -0,0 +1,179 @@
|
|
1
|
+
en:
|
2
|
+
|
3
|
+
activerecord:
|
4
|
+
models:
|
5
|
+
asset_manager:
|
6
|
+
asset: Asset
|
7
|
+
asset_association: Asset Association
|
8
|
+
asset_category: Asset Category
|
9
|
+
asset_instance: Asset Instance
|
10
|
+
asset_private_instance: Private Asset Instance
|
11
|
+
asset_public_instance: Public Asset Instance
|
12
|
+
attributes:
|
13
|
+
asset_manager:
|
14
|
+
asset:
|
15
|
+
asset_category: Category
|
16
|
+
description: Description
|
17
|
+
file_type: File Type
|
18
|
+
public: Public
|
19
|
+
tag_list: Tag List
|
20
|
+
title: Title
|
21
|
+
|
22
|
+
asset_manager:
|
23
|
+
asset_categories:
|
24
|
+
controller:
|
25
|
+
asset_category_successfully_create: Asset category was successfully created
|
26
|
+
asset_category_successfully_update: Asset category was successfully updated
|
27
|
+
edit:
|
28
|
+
title: Editing Asset Category
|
29
|
+
new_asset_category: New Asset Category
|
30
|
+
show: Show
|
31
|
+
form:
|
32
|
+
translations: Translations
|
33
|
+
index:
|
34
|
+
actions: Actions
|
35
|
+
are_you_sure: Are you sure?
|
36
|
+
asset_categories: Asset Categories
|
37
|
+
asset_category_title: Title
|
38
|
+
clear: Clear
|
39
|
+
destroy: Destroy
|
40
|
+
edit: Edit
|
41
|
+
id: Id
|
42
|
+
new_asset_category: New Asset Category
|
43
|
+
no_results: No results found
|
44
|
+
search: Search
|
45
|
+
show: Show
|
46
|
+
title_asset_categories: Asset Categories
|
47
|
+
title_contains: Title contains
|
48
|
+
new:
|
49
|
+
title: New Asset Category
|
50
|
+
show:
|
51
|
+
general: General
|
52
|
+
details: Details
|
53
|
+
id: Id
|
54
|
+
created_at: Created At
|
55
|
+
updated_at: Updated At
|
56
|
+
edit: Edit Asset Category
|
57
|
+
title: Title
|
58
|
+
assets:
|
59
|
+
controller:
|
60
|
+
asset_successfully_create: Asset was successfully created
|
61
|
+
asset_successfully_update: Asset was successfully updated
|
62
|
+
edit:
|
63
|
+
title: Editing Asset
|
64
|
+
show: Show
|
65
|
+
form:
|
66
|
+
files: Files
|
67
|
+
general: General
|
68
|
+
multiple: Multiple
|
69
|
+
single: Single
|
70
|
+
translations: Translations
|
71
|
+
destroy: Delete
|
72
|
+
add_asset_instance: Add
|
73
|
+
index:
|
74
|
+
actions: Actions
|
75
|
+
are_you_sure: Are you sure?
|
76
|
+
asset_category: Asset Category
|
77
|
+
asset_category_equal: Asset category equal
|
78
|
+
asset_instances: Asset Instances
|
79
|
+
assets: Assets
|
80
|
+
asset_title: Title
|
81
|
+
clear: Clear
|
82
|
+
description: Description
|
83
|
+
destroy: Destroy
|
84
|
+
edit: Edit
|
85
|
+
file_type_equal: File type equal
|
86
|
+
file_type: File Type
|
87
|
+
id: Id
|
88
|
+
no_results: No results found
|
89
|
+
private: Private
|
90
|
+
public_equal: Public equal
|
91
|
+
public: Public
|
92
|
+
search: Search
|
93
|
+
show: Show
|
94
|
+
tags: Tags
|
95
|
+
title_assets: Assets
|
96
|
+
title_or_description_contains: Title or description contains
|
97
|
+
new:
|
98
|
+
title: New Asset
|
99
|
+
new_actions:
|
100
|
+
new_asset: New Asset
|
101
|
+
new_private_asset: New Private Asset
|
102
|
+
new_public_asset: New Public Asset
|
103
|
+
select:
|
104
|
+
cancel: Cancel
|
105
|
+
search: Search
|
106
|
+
select: Select
|
107
|
+
filter:
|
108
|
+
title_contains: Title contains
|
109
|
+
asset_categories: Asset categories
|
110
|
+
tags: Tags
|
111
|
+
file_types: File types
|
112
|
+
show:
|
113
|
+
general: General
|
114
|
+
details: Details
|
115
|
+
id: Id
|
116
|
+
created_at: Created At
|
117
|
+
updated_at: Updated At
|
118
|
+
asset_category: Asset Category
|
119
|
+
asset_instances: Asset Instances
|
120
|
+
description: Description
|
121
|
+
edit: Edit Asset
|
122
|
+
file_type: File type
|
123
|
+
public: Public
|
124
|
+
tags: Tags
|
125
|
+
title: Title
|
126
|
+
quick_upload:
|
127
|
+
quick_upload: Quick Upload
|
128
|
+
asset_instance_fields:
|
129
|
+
instance_context: Instance Context
|
130
|
+
remove_asset_instance: Remove
|
131
|
+
index:
|
132
|
+
index:
|
133
|
+
title: Welcome
|
134
|
+
partials:
|
135
|
+
form_errors:
|
136
|
+
errors: Errors
|
137
|
+
|
138
|
+
formtastic:
|
139
|
+
labels:
|
140
|
+
asset:
|
141
|
+
asset_category: Categoria
|
142
|
+
description: Descrizione
|
143
|
+
file_type: Tipo file
|
144
|
+
public: Publico
|
145
|
+
tag_list: Lista tag
|
146
|
+
title: Titolo
|
147
|
+
asset_category:
|
148
|
+
title: Titolo
|
149
|
+
titles:
|
150
|
+
asset:
|
151
|
+
hints:
|
152
|
+
asset:
|
153
|
+
placeholders:
|
154
|
+
asset:
|
155
|
+
actions:
|
156
|
+
cancel: "Annulla e torna indietro"
|
157
|
+
create: "Crea %{model}"
|
158
|
+
reset: "Reset form"
|
159
|
+
update: "Salva modifiche"
|
160
|
+
|
161
|
+
layouts:
|
162
|
+
asset_manager:
|
163
|
+
partials:
|
164
|
+
header:
|
165
|
+
assets: Assets
|
166
|
+
asset_categories: Asset Categories
|
167
|
+
|
168
|
+
pagination: "Page %{current_page} of %{total_pages} :: %{num_records} records out of a total of %{total_records}"
|
169
|
+
search_results:
|
170
|
+
all: All
|
171
|
+
results: Results
|
172
|
+
|
173
|
+
views:
|
174
|
+
pagination:
|
175
|
+
bootstrap:
|
176
|
+
previous: Previous
|
177
|
+
next: Next
|
178
|
+
labels:
|
179
|
+
filters: Filters
|
@@ -0,0 +1,181 @@
|
|
1
|
+
it:
|
2
|
+
|
3
|
+
activerecord:
|
4
|
+
models:
|
5
|
+
asset_manager:
|
6
|
+
asset: Asset
|
7
|
+
asset_association: Asset Association
|
8
|
+
asset_category: Asset Category
|
9
|
+
asset_instance: Asset Instance
|
10
|
+
asset_private_instance: Private Asset Instance
|
11
|
+
asset_public_instance: Public Asset Instance
|
12
|
+
attributes:
|
13
|
+
asset_manager:
|
14
|
+
asset:
|
15
|
+
asset_category: Categoria
|
16
|
+
description: Descrizione
|
17
|
+
file_type: Tipo file
|
18
|
+
public: Publico
|
19
|
+
tag_list: Lista tag
|
20
|
+
title: Titolo
|
21
|
+
|
22
|
+
asset_manager:
|
23
|
+
asset_categories:
|
24
|
+
controller:
|
25
|
+
asset_category_successfully_create: Categoria creata con successo
|
26
|
+
asset_category_successfully_update: Categoria aggiornata con successo
|
27
|
+
edit:
|
28
|
+
title: Modifica Categoria
|
29
|
+
new_asset_category: Nuova Categoria
|
30
|
+
show: Visualizza Categoria
|
31
|
+
form:
|
32
|
+
translations: Traduzioni
|
33
|
+
index:
|
34
|
+
actions: Azioni
|
35
|
+
are_you_sure: Sei sicuro?
|
36
|
+
asset_categories: Categorie
|
37
|
+
asset_category_title: Titolo
|
38
|
+
clear: Annulla
|
39
|
+
destroy: Elimina
|
40
|
+
edit: Modifica
|
41
|
+
id: Id
|
42
|
+
new_asset_category: Nuova Categoria
|
43
|
+
no_results: Nessun risultato
|
44
|
+
search: Cerca
|
45
|
+
show: Visualizza
|
46
|
+
title_asset_categories: Categorie
|
47
|
+
title_contains: Titolo contiene
|
48
|
+
new:
|
49
|
+
title: Nuova Categoria
|
50
|
+
show:
|
51
|
+
general: Generale
|
52
|
+
details: Dettagli
|
53
|
+
id: Id
|
54
|
+
created_at: Creato il
|
55
|
+
updated_at: Modificato il
|
56
|
+
edit: Modifica Categoria
|
57
|
+
title: Titolo
|
58
|
+
assets:
|
59
|
+
controller:
|
60
|
+
asset_successfully_create: Asset creato con successo
|
61
|
+
asset_successfully_update: Asset modificato con successo
|
62
|
+
edit:
|
63
|
+
title: Modifica Asset
|
64
|
+
show: Visualizza Asset
|
65
|
+
form:
|
66
|
+
files: Files
|
67
|
+
general: Generale
|
68
|
+
multiple: Multiplo
|
69
|
+
single: Singolo
|
70
|
+
translations: Traduzioni
|
71
|
+
destroy: Elimina
|
72
|
+
add_asset_instance: Aggiungi
|
73
|
+
index:
|
74
|
+
actions: Azioni
|
75
|
+
are_you_sure: Sei sicuro?
|
76
|
+
asset_category: Categorie
|
77
|
+
asset_category_equal: Categoria uguale a
|
78
|
+
asset_instances: "Instanze dell'Asset"
|
79
|
+
assets: Assets
|
80
|
+
asset_title: Titolo
|
81
|
+
clear: Annulla
|
82
|
+
description: Descrizione
|
83
|
+
destroy: Elimina
|
84
|
+
edit: Modifica
|
85
|
+
file_type_equal: Tipologia file uguale a
|
86
|
+
file_type: Tipologia file
|
87
|
+
id: Id
|
88
|
+
no_results: Nessun risultato
|
89
|
+
private: Privato
|
90
|
+
public_equal: Pubblico uguale a
|
91
|
+
public: Pubblico
|
92
|
+
search: Cerca
|
93
|
+
show: Visualizza
|
94
|
+
tags: Tags
|
95
|
+
title_assets: Assets
|
96
|
+
title_or_description_contains: Titolo o descrizione contiene
|
97
|
+
new:
|
98
|
+
title: Nuovo Asset
|
99
|
+
new_actions:
|
100
|
+
new_asset: Nuovo Asset
|
101
|
+
new_private_asset: Nuovo Asset Privato
|
102
|
+
new_public_asset: Nuovo Asset Pubblico
|
103
|
+
select:
|
104
|
+
cancel: Annulla
|
105
|
+
search: Cerca
|
106
|
+
select: Seleziona
|
107
|
+
filter:
|
108
|
+
title_contains: Titolo contiene
|
109
|
+
asset_categories: Categorie
|
110
|
+
tags: Tags
|
111
|
+
file_types: Tipologie file
|
112
|
+
show:
|
113
|
+
general: Generale
|
114
|
+
details: Dettagli
|
115
|
+
id: Id
|
116
|
+
created_at: Creato il
|
117
|
+
updated_at: Modificato il
|
118
|
+
asset_category: Categoria
|
119
|
+
asset_instances: "Instanze dell'Asset"
|
120
|
+
description: Descrizione
|
121
|
+
edit: Modifica
|
122
|
+
file_type: Tipologia file
|
123
|
+
public: Pubblico
|
124
|
+
tags: Tags
|
125
|
+
title: Titolo
|
126
|
+
quick_upload:
|
127
|
+
quick_upload: Caricamento rapido
|
128
|
+
asset_instance_fields:
|
129
|
+
instance_context: Contesto
|
130
|
+
remove_asset_instance: Rimuovi
|
131
|
+
index:
|
132
|
+
index:
|
133
|
+
title: Benvenuto
|
134
|
+
partials:
|
135
|
+
form_errors:
|
136
|
+
errors: Errori
|
137
|
+
|
138
|
+
formtastic:
|
139
|
+
labels:
|
140
|
+
asset:
|
141
|
+
asset_category: Categoria
|
142
|
+
description: Descrizione
|
143
|
+
file_type: Tipo file
|
144
|
+
public: Publico
|
145
|
+
tag_list: Lista tag
|
146
|
+
title: Titolo
|
147
|
+
asset_category:
|
148
|
+
title: Titolo
|
149
|
+
titles:
|
150
|
+
asset:
|
151
|
+
hints:
|
152
|
+
asset:
|
153
|
+
placeholders:
|
154
|
+
asset:
|
155
|
+
actions:
|
156
|
+
cancel: "Annulla e torna indietro"
|
157
|
+
create: "Crea %{model}"
|
158
|
+
reset: "Reset form"
|
159
|
+
update: "Salva modifiche"
|
160
|
+
|
161
|
+
layouts:
|
162
|
+
asset_manager:
|
163
|
+
partials:
|
164
|
+
header:
|
165
|
+
assets: Assets
|
166
|
+
asset_categories: Categorie
|
167
|
+
|
168
|
+
pagination: "Pagina %{current_page} di %{total_pages} :: %{num_records} record su un totale di %{total_records}"
|
169
|
+
search_results:
|
170
|
+
all: Tutti
|
171
|
+
results: Resultati
|
172
|
+
|
173
|
+
views:
|
174
|
+
pagination:
|
175
|
+
bootstrap:
|
176
|
+
previous: Precedente
|
177
|
+
next: Successiva
|
178
|
+
labels:
|
179
|
+
filters: Filtri
|
180
|
+
|
181
|
+
|