intesys_asset_manager 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (339) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +127 -0
  4. data/Rakefile +31 -0
  5. data/app/assets/images/loader.gif +0 -0
  6. data/app/assets/javascripts/asset_manager.js.coffee +149 -0
  7. data/app/assets/stylesheets/asset_manager.css.sass +85 -0
  8. data/app/assets/stylesheets/asset_manager/base/colors.css.sass +0 -0
  9. data/app/assets/stylesheets/asset_manager/base/fonts.css.sass +0 -0
  10. data/app/assets/stylesheets/asset_manager/controllers/asset_categories.css.sass +0 -0
  11. data/app/assets/stylesheets/asset_manager/controllers/assets.css.sass +104 -0
  12. data/app/assets/stylesheets/asset_manager/controllers/index.css.sass +0 -0
  13. data/app/assets/stylesheets/asset_manager/layout/footer.css.sass +0 -0
  14. data/app/assets/stylesheets/asset_manager/layout/generic.css.sass +17 -0
  15. data/app/assets/stylesheets/asset_manager/layout/header.css.sass +0 -0
  16. data/app/assets/stylesheets/asset_manager/layout/main.css.sass +26 -0
  17. data/app/assets/stylesheets/asset_manager/modules/alerts.css.sass +3 -0
  18. data/app/assets/stylesheets/asset_manager/modules/btn_group.css.sass +3 -0
  19. data/app/assets/stylesheets/asset_manager/modules/page_header.sass +12 -0
  20. data/app/assets/stylesheets/asset_manager/modules/quick_upload.css.sass +26 -0
  21. data/app/assets/stylesheets/asset_manager/modules/translations.css.sass +4 -0
  22. data/app/assets/stylesheets/asset_manager/plugins/plugins.css.sass +7 -0
  23. data/app/assets/stylesheets/asset_manager/resources/asset_categories/asset_category.css.sass +0 -0
  24. data/app/assets/stylesheets/asset_manager/resources/asset_instances/asset_instance.css.sass +4 -0
  25. data/app/assets/stylesheets/asset_manager/resources/assets/asset.css.sass +35 -0
  26. data/app/assets/stylesheets/asset_manager/resources/resource/resource.css.sass +0 -0
  27. data/app/controllers/asset_manager/application_controller.rb +4 -0
  28. data/app/controllers/asset_manager/asset_categories_controller.rb +56 -0
  29. data/app/controllers/asset_manager/asset_instances_controller.rb +22 -0
  30. data/app/controllers/asset_manager/assets_controller.rb +122 -0
  31. data/app/controllers/asset_manager/index_controller.rb +8 -0
  32. data/app/helpers/asset_manager/application_helper.rb +9 -0
  33. data/app/helpers/asset_manager/asset_instances_helper.rb +59 -0
  34. data/app/helpers/asset_manager/assets_helper.rb +145 -0
  35. data/app/helpers/asset_manager/links_helper.rb +21 -0
  36. data/app/inputs/asset_manager_input.rb +27 -0
  37. data/app/models/asset_manager/asset.rb +99 -0
  38. data/app/models/asset_manager/asset_association.rb +15 -0
  39. data/app/models/asset_manager/asset_category.rb +22 -0
  40. data/app/models/asset_manager/asset_instance.rb +33 -0
  41. data/app/models/asset_manager/asset_private_instance.rb +6 -0
  42. data/app/models/asset_manager/asset_public_instance.rb +6 -0
  43. data/app/uploaders/asset_manager/asset_private_uploader.rb +9 -0
  44. data/app/uploaders/asset_manager/asset_public_uploader.rb +12 -0
  45. data/app/uploaders/asset_manager/asset_uploader.rb +36 -0
  46. data/app/views/admin/asset_manager/assets/_asset.html.haml +7 -0
  47. data/app/views/admin/asset_manager/assets/_assets.html.haml +2 -0
  48. data/app/views/asset_manager/asset_categories/_form.html.haml +10 -0
  49. data/app/views/asset_manager/asset_categories/_translated_fields.html.haml +3 -0
  50. data/app/views/asset_manager/asset_categories/edit.html.haml +8 -0
  51. data/app/views/asset_manager/asset_categories/index.html.haml +43 -0
  52. data/app/views/asset_manager/asset_categories/new.html.haml +4 -0
  53. data/app/views/asset_manager/asset_categories/show.html.haml +30 -0
  54. data/app/views/asset_manager/asset_instances/_asset_instance.html.haml +14 -0
  55. data/app/views/asset_manager/asset_instances/_asset_instance_as_flag.html.haml +3 -0
  56. data/app/views/asset_manager/asset_instances/_asset_instances.html.haml +5 -0
  57. data/app/views/asset_manager/asset_instances/_asset_instances_as_flag.html.haml +12 -0
  58. data/app/views/asset_manager/assets/_asset.html.haml +3 -0
  59. data/app/views/asset_manager/assets/_asset_draggable.html.haml +8 -0
  60. data/app/views/asset_manager/assets/_asset_group_by_instance_context.html.haml +7 -0
  61. data/app/views/asset_manager/assets/_asset_instance_fields.haml +10 -0
  62. data/app/views/asset_manager/assets/_assets.html.haml +4 -0
  63. data/app/views/asset_manager/assets/_assets_draggable.html.haml +7 -0
  64. data/app/views/asset_manager/assets/_form.html.haml +63 -0
  65. data/app/views/asset_manager/assets/_new_actions.html.haml +8 -0
  66. data/app/views/asset_manager/assets/_quick_upload.html.haml +20 -0
  67. data/app/views/asset_manager/assets/_translated_fields.html.haml +4 -0
  68. data/app/views/asset_manager/assets/edit.html.haml +6 -0
  69. data/app/views/asset_manager/assets/index.html.haml +68 -0
  70. data/app/views/asset_manager/assets/new.html.haml +4 -0
  71. data/app/views/asset_manager/assets/quick_upload.js.erb +7 -0
  72. data/app/views/asset_manager/assets/select.html.haml +57 -0
  73. data/app/views/asset_manager/assets/select.js.erb +1 -0
  74. data/app/views/asset_manager/assets/show.html.haml +51 -0
  75. data/app/views/asset_manager/index/index.html.haml +6 -0
  76. data/app/views/asset_manager/partials/_form_errors.html.haml +7 -0
  77. data/app/views/asset_manager/partials/_locales_tabs.html.haml +4 -0
  78. data/app/views/asset_manager/partials/_pagination_status.html.haml +2 -0
  79. data/app/views/layouts/asset_manager/_base.html.haml +6 -0
  80. data/app/views/layouts/asset_manager/application.html.haml +15 -0
  81. data/app/views/layouts/asset_manager/partials/_flash_messages.html.haml +4 -0
  82. data/app/views/layouts/asset_manager/partials/_head.html.haml +11 -0
  83. data/app/views/layouts/asset_manager/partials/_header.html.haml +15 -0
  84. data/app/views/layouts/asset_manager/simple.html.haml +4 -0
  85. data/config/locales/en.yml +179 -0
  86. data/config/locales/it.yml +181 -0
  87. data/config/routes.rb +20 -0
  88. data/db/migrate/20120919130657_asset_manager_init.rb +44 -0
  89. data/db/migrate/20121005072255_acts_as_taggable_on_migration.rb +30 -0
  90. data/db/migrate/20121102141009_add_file_type_to_asset.rb +5 -0
  91. data/db/migrate/20130417082644_asset_manager_add_index_to_foreign_keys.rb +5 -0
  92. data/db/migrate/20140512090936_add_missing_unique_indices.acts_as_taggable_on_engine.rb +20 -0
  93. data/db/migrate/20140512090937_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +15 -0
  94. data/lib/asset_manager.rb +57 -0
  95. data/lib/asset_manager/all.rb +5 -0
  96. data/lib/asset_manager/engine.rb +29 -0
  97. data/lib/asset_manager/extensions/active_record.rb +152 -0
  98. data/lib/asset_manager/extensions/all.rb +1 -0
  99. data/lib/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
  100. data/lib/assets/images/bootstrap/glyphicons-halflings.png +0 -0
  101. data/lib/assets/javascripts/bootstrap2/bootstrap.js +2280 -0
  102. data/lib/assets/stylesheets/bootstrap2/bootstrap-responsive.css +1109 -0
  103. data/lib/assets/stylesheets/bootstrap2/bootstrap.css.erb +6167 -0
  104. data/lib/custom_versions.rb +20 -0
  105. data/lib/deprecated.rb +61 -0
  106. data/lib/intesys_asset_manager.rb +1 -0
  107. data/lib/intesys_asset_manager/version.rb +3 -0
  108. data/lib/tasks/asset_manager_tasks.rake +32 -0
  109. data/lib/touch_translation.rb +18 -0
  110. data/lib/translations.rb +19 -0
  111. data/spec/controllers/asset_manager/asset_categories_controller_spec.rb +164 -0
  112. data/spec/controllers/asset_manager/assets_controller_spec.rb +164 -0
  113. data/spec/controllers/asset_manager/index_controller_spec.rb +12 -0
  114. data/spec/factories/asset_manager_asset_associations.rb +10 -0
  115. data/spec/factories/asset_manager_asset_categories.rb +7 -0
  116. data/spec/factories/asset_manager_asset_instances.rb +9 -0
  117. data/spec/factories/asset_manager_assets.rb +8 -0
  118. data/spec/helpers/asset_manager/asset_categories_helper_spec.rb +5 -0
  119. data/spec/helpers/asset_manager/assets_helper_spec.rb +5 -0
  120. data/spec/helpers/asset_manager/index_helper_spec.rb +5 -0
  121. data/spec/models/asset_manager/asset_association_spec.rb +5 -0
  122. data/spec/models/asset_manager/asset_category_spec.rb +5 -0
  123. data/spec/models/asset_manager/asset_instance_spec.rb +7 -0
  124. data/spec/models/asset_manager/asset_spec.rb +5 -0
  125. data/spec/requests/asset_manager/asset_manager_asset_categories_spec.rb +11 -0
  126. data/spec/requests/asset_manager/asset_manager_assets_spec.rb +11 -0
  127. data/spec/routing/asset_manager/asset_categories_routing_spec.rb +35 -0
  128. data/spec/routing/asset_manager/assets_routing_spec.rb +35 -0
  129. data/spec/spec_helper.rb +18 -0
  130. data/spec/support/capybara.rb +8 -0
  131. data/spec/views/asset_manager/asset_categories/edit.html.haml_spec.rb +15 -0
  132. data/spec/views/asset_manager/asset_categories/index.html.haml_spec.rb +15 -0
  133. data/spec/views/asset_manager/asset_categories/new.html.haml_spec.rb +15 -0
  134. data/spec/views/asset_manager/asset_categories/show.html.haml_spec.rb +12 -0
  135. data/spec/views/asset_manager/assets/edit.html.haml_spec.rb +20 -0
  136. data/spec/views/asset_manager/assets/index.html.haml_spec.rb +23 -0
  137. data/spec/views/asset_manager/assets/new.html.haml_spec.rb +20 -0
  138. data/spec/views/asset_manager/assets/show.html.haml_spec.rb +17 -0
  139. data/spec/views/asset_manager/index/index.html.haml_spec.rb +5 -0
  140. data/vendor/assets/images/asset_manager/file_icons/16x16/aac.png +0 -0
  141. data/vendor/assets/images/asset_manager/file_icons/16x16/ai.png +0 -0
  142. data/vendor/assets/images/asset_manager/file_icons/16x16/aif.png +0 -0
  143. data/vendor/assets/images/asset_manager/file_icons/16x16/asp.png +0 -0
  144. data/vendor/assets/images/asset_manager/file_icons/16x16/aspx.png +0 -0
  145. data/vendor/assets/images/asset_manager/file_icons/16x16/avi.png +0 -0
  146. data/vendor/assets/images/asset_manager/file_icons/16x16/bin.png +0 -0
  147. data/vendor/assets/images/asset_manager/file_icons/16x16/bmp.png +0 -0
  148. data/vendor/assets/images/asset_manager/file_icons/16x16/css.png +0 -0
  149. data/vendor/assets/images/asset_manager/file_icons/16x16/db.png +0 -0
  150. data/vendor/assets/images/asset_manager/file_icons/16x16/default.png +0 -0
  151. data/vendor/assets/images/asset_manager/file_icons/16x16/dll.png +0 -0
  152. data/vendor/assets/images/asset_manager/file_icons/16x16/dll2.png +0 -0
  153. data/vendor/assets/images/asset_manager/file_icons/16x16/doc.png +0 -0
  154. data/vendor/assets/images/asset_manager/file_icons/16x16/eps.png +0 -0
  155. data/vendor/assets/images/asset_manager/file_icons/16x16/exe1.png +0 -0
  156. data/vendor/assets/images/asset_manager/file_icons/16x16/exe2.png +0 -0
  157. data/vendor/assets/images/asset_manager/file_icons/16x16/fav.png +0 -0
  158. data/vendor/assets/images/asset_manager/file_icons/16x16/genericBlue.png +0 -0
  159. data/vendor/assets/images/asset_manager/file_icons/16x16/genericGray.png +0 -0
  160. data/vendor/assets/images/asset_manager/file_icons/16x16/genericOrange.png +0 -0
  161. data/vendor/assets/images/asset_manager/file_icons/16x16/genericRed.png +0 -0
  162. data/vendor/assets/images/asset_manager/file_icons/16x16/genericTurquesa.png +0 -0
  163. data/vendor/assets/images/asset_manager/file_icons/16x16/gif.png +0 -0
  164. data/vendor/assets/images/asset_manager/file_icons/16x16/gz.png +0 -0
  165. data/vendor/assets/images/asset_manager/file_icons/16x16/help.png +0 -0
  166. data/vendor/assets/images/asset_manager/file_icons/16x16/help2.png +0 -0
  167. data/vendor/assets/images/asset_manager/file_icons/16x16/hqx.png +0 -0
  168. data/vendor/assets/images/asset_manager/file_icons/16x16/html.png +0 -0
  169. data/vendor/assets/images/asset_manager/file_icons/16x16/htmlFirefox.png +0 -0
  170. data/vendor/assets/images/asset_manager/file_icons/16x16/htmlIE.png +0 -0
  171. data/vendor/assets/images/asset_manager/file_icons/16x16/htmlSafari1.png +0 -0
  172. data/vendor/assets/images/asset_manager/file_icons/16x16/htmlSafari2.png +0 -0
  173. data/vendor/assets/images/asset_manager/file_icons/16x16/jpg.png +0 -0
  174. data/vendor/assets/images/asset_manager/file_icons/16x16/js.png +0 -0
  175. data/vendor/assets/images/asset_manager/file_icons/16x16/mov.png +0 -0
  176. data/vendor/assets/images/asset_manager/file_icons/16x16/mov2.png +0 -0
  177. data/vendor/assets/images/asset_manager/file_icons/16x16/mp2.png +0 -0
  178. data/vendor/assets/images/asset_manager/file_icons/16x16/mp3.png +0 -0
  179. data/vendor/assets/images/asset_manager/file_icons/16x16/mp4.png +0 -0
  180. data/vendor/assets/images/asset_manager/file_icons/16x16/mpg.png +0 -0
  181. data/vendor/assets/images/asset_manager/file_icons/16x16/pdf.png +0 -0
  182. data/vendor/assets/images/asset_manager/file_icons/16x16/php.png +0 -0
  183. data/vendor/assets/images/asset_manager/file_icons/16x16/pic.png +0 -0
  184. data/vendor/assets/images/asset_manager/file_icons/16x16/png.png +0 -0
  185. data/vendor/assets/images/asset_manager/file_icons/16x16/pps.png +0 -0
  186. data/vendor/assets/images/asset_manager/file_icons/16x16/ppt.png +0 -0
  187. data/vendor/assets/images/asset_manager/file_icons/16x16/psd.png +0 -0
  188. data/vendor/assets/images/asset_manager/file_icons/16x16/rar.png +0 -0
  189. data/vendor/assets/images/asset_manager/file_icons/16x16/rb.png +0 -0
  190. data/vendor/assets/images/asset_manager/file_icons/16x16/rtf.png +0 -0
  191. data/vendor/assets/images/asset_manager/file_icons/16x16/template.png +0 -0
  192. data/vendor/assets/images/asset_manager/file_icons/16x16/tif.png +0 -0
  193. data/vendor/assets/images/asset_manager/file_icons/16x16/ttf.png +0 -0
  194. data/vendor/assets/images/asset_manager/file_icons/16x16/txt.png +0 -0
  195. data/vendor/assets/images/asset_manager/file_icons/16x16/vbs.png +0 -0
  196. data/vendor/assets/images/asset_manager/file_icons/16x16/vbs2.png +0 -0
  197. data/vendor/assets/images/asset_manager/file_icons/16x16/warning.png +0 -0
  198. data/vendor/assets/images/asset_manager/file_icons/16x16/wav.png +0 -0
  199. data/vendor/assets/images/asset_manager/file_icons/16x16/xls.png +0 -0
  200. data/vendor/assets/images/asset_manager/file_icons/16x16/xml.png +0 -0
  201. data/vendor/assets/images/asset_manager/file_icons/16x16/zip.png +0 -0
  202. data/vendor/assets/images/asset_manager/file_icons/16x16/zip2.png +0 -0
  203. data/vendor/assets/images/asset_manager/file_icons/20x20/aac.png +0 -0
  204. data/vendor/assets/images/asset_manager/file_icons/20x20/ai.png +0 -0
  205. data/vendor/assets/images/asset_manager/file_icons/20x20/aif.png +0 -0
  206. data/vendor/assets/images/asset_manager/file_icons/20x20/asp.png +0 -0
  207. data/vendor/assets/images/asset_manager/file_icons/20x20/aspx.png +0 -0
  208. data/vendor/assets/images/asset_manager/file_icons/20x20/avi.png +0 -0
  209. data/vendor/assets/images/asset_manager/file_icons/20x20/bin.png +0 -0
  210. data/vendor/assets/images/asset_manager/file_icons/20x20/bmp.png +0 -0
  211. data/vendor/assets/images/asset_manager/file_icons/20x20/css.png +0 -0
  212. data/vendor/assets/images/asset_manager/file_icons/20x20/db.png +0 -0
  213. data/vendor/assets/images/asset_manager/file_icons/20x20/default.png +0 -0
  214. data/vendor/assets/images/asset_manager/file_icons/20x20/dll.png +0 -0
  215. data/vendor/assets/images/asset_manager/file_icons/20x20/dll2.png +0 -0
  216. data/vendor/assets/images/asset_manager/file_icons/20x20/doc.png +0 -0
  217. data/vendor/assets/images/asset_manager/file_icons/20x20/eps.png +0 -0
  218. data/vendor/assets/images/asset_manager/file_icons/20x20/exe1.png +0 -0
  219. data/vendor/assets/images/asset_manager/file_icons/20x20/exe2.png +0 -0
  220. data/vendor/assets/images/asset_manager/file_icons/20x20/fav.png +0 -0
  221. data/vendor/assets/images/asset_manager/file_icons/20x20/genericBlue.png +0 -0
  222. data/vendor/assets/images/asset_manager/file_icons/20x20/genericGray.png +0 -0
  223. data/vendor/assets/images/asset_manager/file_icons/20x20/genericOrange.png +0 -0
  224. data/vendor/assets/images/asset_manager/file_icons/20x20/genericRed.png +0 -0
  225. data/vendor/assets/images/asset_manager/file_icons/20x20/genericTurquesa.png +0 -0
  226. data/vendor/assets/images/asset_manager/file_icons/20x20/gif.png +0 -0
  227. data/vendor/assets/images/asset_manager/file_icons/20x20/gz.png +0 -0
  228. data/vendor/assets/images/asset_manager/file_icons/20x20/help.png +0 -0
  229. data/vendor/assets/images/asset_manager/file_icons/20x20/help2.png +0 -0
  230. data/vendor/assets/images/asset_manager/file_icons/20x20/hqx.png +0 -0
  231. data/vendor/assets/images/asset_manager/file_icons/20x20/html.png +0 -0
  232. data/vendor/assets/images/asset_manager/file_icons/20x20/htmlFirefox.png +0 -0
  233. data/vendor/assets/images/asset_manager/file_icons/20x20/htmlIE.png +0 -0
  234. data/vendor/assets/images/asset_manager/file_icons/20x20/htmlSafari1.png +0 -0
  235. data/vendor/assets/images/asset_manager/file_icons/20x20/htmlSafari2.png +0 -0
  236. data/vendor/assets/images/asset_manager/file_icons/20x20/jpg.png +0 -0
  237. data/vendor/assets/images/asset_manager/file_icons/20x20/js.png +0 -0
  238. data/vendor/assets/images/asset_manager/file_icons/20x20/mov.png +0 -0
  239. data/vendor/assets/images/asset_manager/file_icons/20x20/mov2.png +0 -0
  240. data/vendor/assets/images/asset_manager/file_icons/20x20/mp2.png +0 -0
  241. data/vendor/assets/images/asset_manager/file_icons/20x20/mp3.png +0 -0
  242. data/vendor/assets/images/asset_manager/file_icons/20x20/mp4.png +0 -0
  243. data/vendor/assets/images/asset_manager/file_icons/20x20/mpg.png +0 -0
  244. data/vendor/assets/images/asset_manager/file_icons/20x20/pdf.png +0 -0
  245. data/vendor/assets/images/asset_manager/file_icons/20x20/php.png +0 -0
  246. data/vendor/assets/images/asset_manager/file_icons/20x20/pic.png +0 -0
  247. data/vendor/assets/images/asset_manager/file_icons/20x20/png.png +0 -0
  248. data/vendor/assets/images/asset_manager/file_icons/20x20/pps.png +0 -0
  249. data/vendor/assets/images/asset_manager/file_icons/20x20/ppt.png +0 -0
  250. data/vendor/assets/images/asset_manager/file_icons/20x20/psd.png +0 -0
  251. data/vendor/assets/images/asset_manager/file_icons/20x20/rar.png +0 -0
  252. data/vendor/assets/images/asset_manager/file_icons/20x20/rb.png +0 -0
  253. data/vendor/assets/images/asset_manager/file_icons/20x20/rtf.png +0 -0
  254. data/vendor/assets/images/asset_manager/file_icons/20x20/template.png +0 -0
  255. data/vendor/assets/images/asset_manager/file_icons/20x20/tif.png +0 -0
  256. data/vendor/assets/images/asset_manager/file_icons/20x20/ttf.png +0 -0
  257. data/vendor/assets/images/asset_manager/file_icons/20x20/txt.png +0 -0
  258. data/vendor/assets/images/asset_manager/file_icons/20x20/vbs.png +0 -0
  259. data/vendor/assets/images/asset_manager/file_icons/20x20/vbs2.png +0 -0
  260. data/vendor/assets/images/asset_manager/file_icons/20x20/warning.png +0 -0
  261. data/vendor/assets/images/asset_manager/file_icons/20x20/wav.png +0 -0
  262. data/vendor/assets/images/asset_manager/file_icons/20x20/xls.png +0 -0
  263. data/vendor/assets/images/asset_manager/file_icons/20x20/xml.png +0 -0
  264. data/vendor/assets/images/asset_manager/file_icons/20x20/zip.png +0 -0
  265. data/vendor/assets/images/asset_manager/file_icons/20x20/zip2.png +0 -0
  266. data/vendor/assets/images/asset_manager/file_icons/32x32/aac.png +0 -0
  267. data/vendor/assets/images/asset_manager/file_icons/32x32/ai.png +0 -0
  268. data/vendor/assets/images/asset_manager/file_icons/32x32/aif.png +0 -0
  269. data/vendor/assets/images/asset_manager/file_icons/32x32/asp.png +0 -0
  270. data/vendor/assets/images/asset_manager/file_icons/32x32/aspx.png +0 -0
  271. data/vendor/assets/images/asset_manager/file_icons/32x32/avi.png +0 -0
  272. data/vendor/assets/images/asset_manager/file_icons/32x32/bin.png +0 -0
  273. data/vendor/assets/images/asset_manager/file_icons/32x32/bmp.png +0 -0
  274. data/vendor/assets/images/asset_manager/file_icons/32x32/css.png +0 -0
  275. data/vendor/assets/images/asset_manager/file_icons/32x32/db.png +0 -0
  276. data/vendor/assets/images/asset_manager/file_icons/32x32/default.png +0 -0
  277. data/vendor/assets/images/asset_manager/file_icons/32x32/dll.png +0 -0
  278. data/vendor/assets/images/asset_manager/file_icons/32x32/dll2.png +0 -0
  279. data/vendor/assets/images/asset_manager/file_icons/32x32/doc.png +0 -0
  280. data/vendor/assets/images/asset_manager/file_icons/32x32/eps.png +0 -0
  281. data/vendor/assets/images/asset_manager/file_icons/32x32/exe1.png +0 -0
  282. data/vendor/assets/images/asset_manager/file_icons/32x32/exe2.png +0 -0
  283. data/vendor/assets/images/asset_manager/file_icons/32x32/fav.png +0 -0
  284. data/vendor/assets/images/asset_manager/file_icons/32x32/genericBlue.png +0 -0
  285. data/vendor/assets/images/asset_manager/file_icons/32x32/genericGray.png +0 -0
  286. data/vendor/assets/images/asset_manager/file_icons/32x32/genericOrange.png +0 -0
  287. data/vendor/assets/images/asset_manager/file_icons/32x32/genericRed.png +0 -0
  288. data/vendor/assets/images/asset_manager/file_icons/32x32/genericTurquesa.png +0 -0
  289. data/vendor/assets/images/asset_manager/file_icons/32x32/gif.png +0 -0
  290. data/vendor/assets/images/asset_manager/file_icons/32x32/gz.png +0 -0
  291. data/vendor/assets/images/asset_manager/file_icons/32x32/help.png +0 -0
  292. data/vendor/assets/images/asset_manager/file_icons/32x32/help2.png +0 -0
  293. data/vendor/assets/images/asset_manager/file_icons/32x32/hqx.png +0 -0
  294. data/vendor/assets/images/asset_manager/file_icons/32x32/html.png +0 -0
  295. data/vendor/assets/images/asset_manager/file_icons/32x32/htmlFirefox.png +0 -0
  296. data/vendor/assets/images/asset_manager/file_icons/32x32/htmlIE.png +0 -0
  297. data/vendor/assets/images/asset_manager/file_icons/32x32/htmlSafari1.png +0 -0
  298. data/vendor/assets/images/asset_manager/file_icons/32x32/htmlSafari2.png +0 -0
  299. data/vendor/assets/images/asset_manager/file_icons/32x32/jpg.png +0 -0
  300. data/vendor/assets/images/asset_manager/file_icons/32x32/js.png +0 -0
  301. data/vendor/assets/images/asset_manager/file_icons/32x32/mov.png +0 -0
  302. data/vendor/assets/images/asset_manager/file_icons/32x32/mov2.png +0 -0
  303. data/vendor/assets/images/asset_manager/file_icons/32x32/mp2.png +0 -0
  304. data/vendor/assets/images/asset_manager/file_icons/32x32/mp3.png +0 -0
  305. data/vendor/assets/images/asset_manager/file_icons/32x32/mp4.png +0 -0
  306. data/vendor/assets/images/asset_manager/file_icons/32x32/mpg.png +0 -0
  307. data/vendor/assets/images/asset_manager/file_icons/32x32/pdf.png +0 -0
  308. data/vendor/assets/images/asset_manager/file_icons/32x32/php.png +0 -0
  309. data/vendor/assets/images/asset_manager/file_icons/32x32/pic.png +0 -0
  310. data/vendor/assets/images/asset_manager/file_icons/32x32/png.png +0 -0
  311. data/vendor/assets/images/asset_manager/file_icons/32x32/pps.png +0 -0
  312. data/vendor/assets/images/asset_manager/file_icons/32x32/ppt.png +0 -0
  313. data/vendor/assets/images/asset_manager/file_icons/32x32/psd.png +0 -0
  314. data/vendor/assets/images/asset_manager/file_icons/32x32/rar.png +0 -0
  315. data/vendor/assets/images/asset_manager/file_icons/32x32/rb.png +0 -0
  316. data/vendor/assets/images/asset_manager/file_icons/32x32/rtf.png +0 -0
  317. data/vendor/assets/images/asset_manager/file_icons/32x32/tif.png +0 -0
  318. data/vendor/assets/images/asset_manager/file_icons/32x32/ttf.png +0 -0
  319. data/vendor/assets/images/asset_manager/file_icons/32x32/txt.png +0 -0
  320. data/vendor/assets/images/asset_manager/file_icons/32x32/vbs.png +0 -0
  321. data/vendor/assets/images/asset_manager/file_icons/32x32/vbs2.png +0 -0
  322. data/vendor/assets/images/asset_manager/file_icons/32x32/warning.png +0 -0
  323. data/vendor/assets/images/asset_manager/file_icons/32x32/wav.png +0 -0
  324. data/vendor/assets/images/asset_manager/file_icons/32x32/xls.png +0 -0
  325. data/vendor/assets/images/asset_manager/file_icons/32x32/xml.png +0 -0
  326. data/vendor/assets/images/asset_manager/file_icons/32x32/zip.png +0 -0
  327. data/vendor/assets/images/asset_manager/file_icons/32x32/zip2.png +0 -0
  328. data/vendor/assets/images/blank.gif +0 -0
  329. data/vendor/assets/images/clippy.swf +0 -0
  330. data/vendor/assets/images/fancybox_buttons.png +0 -0
  331. data/vendor/assets/images/fancybox_loading.gif +0 -0
  332. data/vendor/assets/images/fancybox_loading@2x.gif +0 -0
  333. data/vendor/assets/images/fancybox_overlay.png +0 -0
  334. data/vendor/assets/images/fancybox_sprite.png +0 -0
  335. data/vendor/assets/images/fancybox_sprite@2x.png +0 -0
  336. data/vendor/assets/images/ias/loader.gif +0 -0
  337. data/vendor/assets/javascripts/ias/jquery.ias.js +620 -0
  338. data/vendor/assets/stylesheets/ias/jquery.ias.css +8 -0
  339. metadata +748 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2a1cb98b922dade5b2ba917b8abd26d895c2c875
4
+ data.tar.gz: 17b3fcd866ff20117a30abb55d82e061846f043d
5
+ SHA512:
6
+ metadata.gz: f70c5c69fa38af77c997f7c07c09c5718e3c5b9f4c6cff16c54a7055f17589bbe351a9ae8477020d0c972376d2020b3097246ec14af3f7921a0b464c1bcaffeb
7
+ data.tar.gz: 34350867b152064406b76d7d916e47c752e1f338ea0f51a7f93f19a82b7b59155c0dd0d2ad08bad35fa2b27790bff5d5399f571d06fe7658eb2e962ef27445b9
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012-2014 Intesys S.r.l.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,127 @@
1
+ = Asset Manager
2
+
3
+ Asset Manager is a Ruby on Rails gem that allows you to:
4
+ - Manage all your assets (images, pdf, zip, ecc.) in a central repository
5
+ - Quickly connect instances of your models with this repository, through a nice graphical interface
6
+ - Generate markup for your assets in your views with a series of helper methods
7
+ To give you a practical example, you can upload an image through the Asset Manager and then associate it to a product and a news article without having to upload it twice. You just make your selection from the central repository.
8
+ Asset Manager is generally included in an administration interface where the user manages all her assets and associates them with various application specific model instances. Then, on the frontend side, to present these assets to the end-user.
9
+
10
+ Please note: Asset Manager doesn't have anything to do with Rails' asset pipeline!
11
+
12
+ == Installation
13
+ Add it to your Gemfile:
14
+ gem 'intesys_asset_manager'
15
+
16
+ Install the migrations:
17
+ rake asset_manager:install:migrations
18
+ rake db:migrate
19
+
20
+ == Usage
21
+ Since Asset Manager is a Rails engine you need to mount it in your application:
22
+
23
+ in config/routes.rb:
24
+
25
+ Rails::Application.routes.draw do
26
+ mount AssetManager::Engine => '/asset_manager'
27
+ end
28
+
29
+ Once mounted you can access the administration interface by visiting /asset_manager in a browser.
30
+
31
+ {http://www.intesys.it/asset_manager/docs/am-repository.jpg}[http://www.intesys.it/asset_manager/docs/am-repository.jpg]
32
+
33
+ From here you can manage all your application's assets: jpg, png, pdf, zip, etc.
34
+ For the images that you upload a series of (customizable) versions will be created automatically.
35
+
36
+ Next you need to specify which of your models will be connected to the Asset Manager.
37
+ If, for example, we have a Product that has a main image and a series of pictures and downloads we add the following to our Product model:
38
+
39
+ class Product < ActiveRecord::Base
40
+ has_image :main_image
41
+ has_images :pictures, max: 10
42
+ has_files :downloads
43
+ end
44
+
45
+ You have two methods to choose from: has_file when the association is singular and has_files when multiple files need to be associated. These methods accept a series of parameters to specify which file types are accepted, how many files can be associated (for has_files), etc.
46
+
47
+ Once you have your models configured you can connect assets with your records. Asset Manager provides a Formtastic input type to make it easier for you to manage your forms (we will add support for Simpleform in the future):
48
+ = semantic_form_for @product do |f|
49
+ = f.inputs do
50
+ = f.input :title
51
+ = f.input :description
52
+ = f.inputs
53
+ = f.input :main_image, as: :asset_manager
54
+ = f.input :pictures, as: :asset_manager
55
+ = f.input :downloads, as: :asset_manager
56
+
57
+ The Asset Manager will be opened in a modal window so you application needs to provide one. For example, if you're using Fancybox you need to add the following to your application.js:
58
+ //= require fancybox2
59
+ $ ->
60
+ $(".asset_manager_iframe").fancybox
61
+ type: 'iframe'
62
+ width: '100%'
63
+ height: '100%'
64
+ autoSize: false
65
+ helpers:
66
+ title:
67
+ type: 'outside'
68
+
69
+ Then you will have something similar to:
70
+
71
+ {http://www.intesys.it/asset_manager/docs/am-main_image-ass.jpg}[http://www.intesys.it/asset_manager/docs/am-main_image-ass.jpg]
72
+ {http://www.intesys.it/asset_manager/docs/am-pictures-ass.jpg}[http://www.intesys.it/asset_manager/docs/am-pictures-ass.jpg]
73
+ {http://www.intesys.it/asset_manager/docs/am-downloads-ass.jpg}[http://www.intesys.it/asset_manager/docs/am-downloads-ass.jpg]
74
+
75
+ Now that we have associated assets with our records we can use one of the view helpers provided by Asset Manager to present them to the end-user:
76
+ = am_render(@product, :main_image)
77
+ = am_render(@product, :pictures)
78
+ = am_render(@product, :download)
79
+
80
+ == Options
81
+
82
+ Asset Manager can be configured through an initializer <b>config/initializers/asset_manager.rb</b>
83
+ AssetManager.configure do |config|
84
+ ...
85
+ end
86
+
87
+ === Private/Public Assets
88
+ By default all your assets will be public. It's also possible to have private assets or a mix of both.
89
+ config.asset_types = [:public, :private]
90
+
91
+ === Categories and Tags
92
+ Assets can be categoriezed and tagged to keep things organized.
93
+ config.with_categories = false
94
+ config.with_tags = false
95
+
96
+ === Image processing
97
+ Asset Manager relies on ImageMagick to process images (for thumbnails etc.). To specify how the processing is done and which formats are created you can redefine <b>custom_versions</b>:
98
+ module AssetManager
99
+ module CustomVersions
100
+
101
+ # For a list of possible options, take a look at:
102
+ # http://carrierwave.rubyforge.org/rdoc/classes/CarrierWave/RMagick.html
103
+ def custom_versions
104
+ version :thumb, :if => :image? do
105
+ process :resize_and_pad => [50, 50]
106
+ end
107
+ end
108
+
109
+ end
110
+ end
111
+
112
+ There is also a rake task to re-process already existing images when you add a new format:
113
+ rake asset_manager:recreate_versions
114
+
115
+ == Project Roadmap
116
+
117
+ - FCKEditor (Rich) integration
118
+ - Input for SimpleForm
119
+ - Evaluate dragonfly
120
+ - Test :)
121
+
122
+ == Project Info
123
+ Asset Manager was created by {Federico Bonomi}[https://github.com/fbonomi] with contributions from {Nicola Prando}[https://github.com/pranik], {Daniel Jonasson}[https://github.com/djonasson] and {Umberto Gariggio}[https://github.com/gariggio]
124
+
125
+ The project is hosted on Github: http://github.com/intesys/asset_manager, where your contributions, forkings, comments, issues and feedback are greatly welcomed.
126
+
127
+ Copyright © 2012-2014 Intesys S.r.l., released under the MIT license.
data/Rakefile ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'AssetManager'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+ Bundler::GemHelper.install_tasks
27
+
28
+ require 'rspec/core/rake_task'
29
+ RSpec::Core::RakeTask.new(:spec)
30
+ task :default => :spec
31
+
Binary file
@@ -0,0 +1,149 @@
1
+ #= require jquery
2
+ #= require jquery_ujs
3
+ #= require jquery.ui.all
4
+ #= require bootstrap2/bootstrap
5
+ #= require chosen-jquery
6
+ #= require ias/jquery.ias
7
+ #= require fancybox
8
+ #= require jquery-fileupload/basic
9
+ #= require jquery-fileupload/vendor/tmpl
10
+ #= require cocoon
11
+
12
+ $ ->
13
+ $(window).load ->
14
+ if $('body').hasClass('assets select')
15
+ setTimeout ->
16
+ $('form#search').find('select').chosen()
17
+ , 100
18
+
19
+ $(document).ready ->
20
+
21
+ # Overlay gallery
22
+ $('a.overlay').fancybox
23
+ maxWidth: 800
24
+ maxHeight: 600
25
+ fitToView: false
26
+ width: '70%'
27
+ height: '70%'
28
+ autoSize: false
29
+ closeClick: false
30
+ openEffect: 'none'
31
+ closeEffect: 'none'
32
+ type: 'image'
33
+
34
+ # Fast upload
35
+ $quickUpload = $('#quick_upload')
36
+ if $quickUpload.length
37
+ $quickUpload.find('.link-upload').click ->
38
+ $quickUpload.toggleClass('open')
39
+ $quickUpload.find('form').fileupload
40
+ dataType: "script"
41
+ add: (e, data) ->
42
+ $('#quick_upload .progress').remove()
43
+ file = data.files[0]
44
+ data.context = $(tmpl("template-upload", file))
45
+ $('#quick_upload .well').append(data.context)
46
+ data.submit()
47
+ progress: (e, data) ->
48
+ if data.context
49
+ progress = parseInt(data.loaded / data.total * 100, 10)
50
+ data.context.find('.bar').css('width', progress + '%')
51
+
52
+ if $('body').hasClass('assets select')
53
+ # Ias - Infinite scroll
54
+ $.ias
55
+ container: "#sortable1.connectedSortable"
56
+ item: ".resource.asset"
57
+ pagination: ".assets-navigation"
58
+ next: "a[rel=next]"
59
+ loader: '<img src="/assets/ias/loader.gif" alt="Loading..." />'
60
+
61
+ # Params
62
+ param_max = parseInt($('.param-max').html())
63
+ param_multiple = $('.param-multiple').html()
64
+ param_field = $('.param-field').html()
65
+ param_field_name = $('.param-field-name').html()
66
+ param_save = $('.param-save').html() == 'true'
67
+ param_resource_id = $('.param-resource-id').html()
68
+ $form_search = $('form#search')
69
+ $dinamyc_assets_field = parent.$("#dinamyc_assets_" + param_field + (if param_save then param_resource_id else ''))
70
+ param_update_url = $dinamyc_assets_field.attr('data-update-url')
71
+
72
+ # Submit form
73
+ $form_search.submit ->
74
+ $(this).addClass('loading')
75
+ $("#sortable2 .resource.asset").each ->
76
+ $form_search.append('<input type="hidden" name="ids[]" value="' + $(this).attr('data-id') + '" />')
77
+
78
+ # Sortable - Drag and Drop
79
+ $("#sortable1, #sortable2").sortable
80
+ connectWith: ".connectedSortable"
81
+ .disableSelection()
82
+ $("#sortable2").bind "sortreceive", (event, ui)->
83
+ if $(this).find(".resource.asset").length > param_max
84
+ $(ui.sender).sortable('cancel')
85
+ alert "Limite massimo superato"
86
+
87
+ # Action Cancel
88
+ $('button.cancel').click ->
89
+ closeModal()
90
+
91
+ # Action Select
92
+ $('button.select').click ->
93
+ ids = []
94
+ $("#sortable2 .resource.asset:lt(" + param_max + ")").each ->
95
+ ids.push($(this).attr('data-id'))
96
+ if (ids.length == 0)
97
+ if param_save
98
+ saveSelection('', [])
99
+ else
100
+ endSelection('', [])
101
+ else
102
+ $.ajax
103
+ url: "/asset_manager/managed_assets/preview"
104
+ data: { ids: ids }
105
+ dataType: "html"
106
+ success: (result)->
107
+ if param_save
108
+ saveSelection(result, ids)
109
+ else
110
+ endSelection(result, ids)
111
+
112
+ # Save Selection
113
+ saveSelection = (xhtml, ids) ->
114
+ data = {}
115
+ if (param_multiple == 'true')
116
+ value = if (ids.length > 0) then ids else 'no'
117
+ else
118
+ value = if (ids.length > 0) then ids[0] else 'no'
119
+ #data[param_field_name] = if (param_multiple == true) then ids else ids[0]
120
+ data[param_field_name] = value
121
+ $.ajax
122
+ url: param_update_url
123
+ type: 'PUT'
124
+ data: data
125
+ dataType: "html"
126
+ #success: (result)->
127
+ # alert result
128
+ $dinamyc_assets_field.html(xhtml)
129
+ closeModal()
130
+
131
+ # End Selection
132
+ endSelection = (xhtml, ids) ->
133
+ $link_select = $dinamyc_assets_field.siblings("a")
134
+ original_href = $link_select.attr('data-href')
135
+ if ids.length > 0
136
+ $.each ids, (key, value) ->
137
+ xhtml += '<input type="hidden" name="' + param_field_name + '" value="' + value + '" />'
138
+ $.each ids, (key, value) ->
139
+ original_href += '&ids[]=' + value
140
+ else
141
+ xhtml += '<input type="hidden" name="' + param_field_name + '" value="" />' + $dinamyc_assets_field.attr('no_items_label')
142
+ original_href += '&ids[]=no'
143
+ $dinamyc_assets_field.html(xhtml)
144
+ $link_select.attr('href', original_href)
145
+ closeModal()
146
+
147
+ # Close Modal
148
+ closeModal = ->
149
+ parent.$.fancybox.close()
@@ -0,0 +1,85 @@
1
+ /* The plugins folder contains a plugins.css.sass file that we use to include
2
+ * all the plugins necessary for our application. In this folder we can also
3
+ * put configuration files for individual plugins.
4
+ *
5
+ * Structure example:
6
+ * plugins/
7
+ * |--plugins.css.sass
8
+ * |--my_plugin.css.sass
9
+ * |--my_complex_plugin/
10
+ * | |--fonts.css.sass
11
+ * | |--colors.css.sass
12
+ */
13
+ @import "asset_manager/plugins/**/*"
14
+
15
+ /* In base we keep things like CSS resets, element defaults (e.g. link colors),
16
+ * font settings etc. The category is largely dominated by element selectors.
17
+ * We try to be very careful about what we put in this folder in order not to
18
+ * not loose flexibility down the road.
19
+ *
20
+ * Structure example:
21
+ * base/
22
+ * |--fonts.css.sass
23
+ * |--colors.css.sass
24
+ */
25
+ @import "asset_manager/base/**/*"
26
+
27
+ /* The files for layout elements such as "header", "footer", "sidebar", etc.
28
+ * are kept in the layout folder.
29
+ *
30
+ * Structure example:
31
+ * layout/
32
+ * |--header.css.sass
33
+ * |--footer.css.sass
34
+ */
35
+ @import "asset_manager/layout/**/*"
36
+
37
+ /* This folder is made up of independent modules and submodules. Examples for
38
+ * modules could be things like: search-box, dialog, navigation, menu,
39
+ * content-box. While submodules are more specific versions of these modules
40
+ * such as: dialog-wide, navigation-tabbed, menu-dropdown.
41
+ *
42
+ * The ideal module is completely independent of its context and should work
43
+ * within any layout container or other module. If a specific context requires
44
+ * changes to a module you rather create a submodule that describes the
45
+ * context, instead changing styles based on the parent (e.g.
46
+ * .content-box-narrow instead of #sidebar .content-box).
47
+ *
48
+ * Structure example:
49
+ * modules/
50
+ * |--search-box.css.sass
51
+ * |--dialog.css.sass
52
+ */
53
+ @import "asset_manager/modules/**/*"
54
+
55
+ /* The resources folder is an important one and should contain various
56
+ * representations of your resources. A blog post, for example, probably should
57
+ * look slightly different as a search result than in a "latest posts" list on
58
+ * the home page.
59
+ *
60
+ * In order to avoid duplication and to uniform presentation we try to define
61
+ * as much as possible of our resources' styling in the "resource" classes.
62
+ *
63
+ * Structure example:
64
+ * resources/
65
+ * |--resource/
66
+ * | |--resource.css.sass
67
+ * | |--excerpt_resource.css.sass
68
+ * |--posts/
69
+ * | |--post.css.sass
70
+ * | |--excerpt_post.css.sass
71
+ * | |--link_post.css.sass
72
+ *
73
+ */
74
+ @import "asset_manager/resources/**/*"
75
+
76
+ /* Sometimes it can be useful to make a small customization to a particular
77
+ * controller/view. NOTE: Care should be taken to avoid putting styling in
78
+ * these files unless it really depends on the context.
79
+ *
80
+ * Structure example:
81
+ * controllers/
82
+ * |--news.css.sass
83
+ * |--pages.css.sass
84
+ */
85
+ @import "asset_manager/controllers/**/*"
@@ -0,0 +1,104 @@
1
+ $sx-width: 80%
2
+ $dx-width: 100% - $sx-width
3
+
4
+ body
5
+ &.assets, &.asset_categories
6
+ .filters
7
+ +box-shadow(0 0 0)
8
+ padding: 10px
9
+ .filters-title
10
+ margin-bottom: 15px
11
+ font:
12
+ size: 14px
13
+ weight: bold
14
+ form
15
+ label
16
+ font-size: 13px
17
+ input[type=text]
18
+ width: 100%
19
+ padding-left: 0
20
+ padding-right: 0
21
+ select
22
+ width: 100%
23
+ &.show
24
+ table
25
+ thead
26
+ tr
27
+ th
28
+ background: #e5e5e5
29
+ color: #333
30
+ tbody
31
+ tr
32
+ td
33
+ &:first-child
34
+ width: 20%
35
+ font-style: italic
36
+
37
+
38
+ body.assets
39
+ &.index
40
+ .nav-pills
41
+ margin-bottom: 10px
42
+ &.select
43
+ padding: 0
44
+ .sx
45
+ $sx-internal-width: 95%
46
+ float: left
47
+ width: $sx-width
48
+ .search
49
+ z-index: 10
50
+ position: fixed
51
+ width: $sx-width
52
+ background: white
53
+ .top
54
+ width: $sx-internal-width
55
+ .well
56
+ margin-bottom: 0
57
+ form
58
+ margin: 0
59
+ select
60
+ width: 100%
61
+ .chzn-container
62
+ width: 100% !important
63
+ &.loading
64
+ background: url(/assets/loader.gif) no-repeat right center
65
+ .collection
66
+ padding-top: 107px
67
+ #quick_upload
68
+ width: $sx-internal-width
69
+ margin-bottom: 12px
70
+ .resources.assets
71
+ min-height: 200px
72
+ #infscr-loading
73
+ clear: both
74
+ padding: 1em 0
75
+ width: $sx-internal-width
76
+ text-align: center
77
+ .dx
78
+ float: right
79
+ width: $dx-width
80
+ .associations
81
+ position: fixed
82
+ top: 0
83
+ bottom: 0
84
+ width: $dx-width
85
+ .assets-container-drag
86
+ border: 1px dotted #ccc
87
+ padding: 10px
88
+ margin-bottom: 1em
89
+ height: 80%
90
+ #sortable2
91
+ height: 100%
92
+ overflow: auto
93
+ .form-horizontal
94
+ #asset_instances
95
+ .control-group
96
+ margin-bottom: 0
97
+ .item
98
+ margin: 2px 0 20px 180px
99
+ .resource.asset-instance
100
+ table
101
+ margin-bottom: 0
102
+ td
103
+ .controls
104
+ margin-left: 0