trusty-clipped-extension 2.0.2.pre.beta → 2.0.3.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +5 -13
  2. data/Gemfile +45 -1
  3. data/Gemfile.lock +88 -11
  4. data/Rakefile +26 -110
  5. data/app/assets/javascripts/admin/assets.js +4 -4
  6. data/app/assets/stylesheets/admin/assets.sass +2 -4
  7. data/app/controllers/admin/assets_controller.rb +3 -1
  8. data/app/views/admin/assets/_asset_table.html.haml +1 -0
  9. data/app/views/admin/assets/_form.html.haml +3 -3
  10. data/app/views/admin/assets/_page_assets.html.haml +1 -1
  11. data/app/views/admin/assets/edit.html.haml +3 -3
  12. data/app/views/admin/assets/index.html.haml +2 -3
  13. data/app/views/admin/assets/new.html.haml +18 -18
  14. data/app/views/admin/assets/remove.html.haml +1 -1
  15. data/app/views/admin/pages/_assets.html.haml +7 -5
  16. data/config/application.rb +136 -0
  17. data/config/boot.rb +8 -0
  18. data/config/environment.rb +5 -0
  19. data/config/locales/en.yml +1 -1
  20. data/lib/trusty-clipped-extension.rb +1 -1
  21. data/rebuild +5 -0
  22. data/spec/ci/database.mysql.yml +27 -0
  23. data/spec/dummy/README.rdoc +28 -0
  24. data/spec/dummy/Rakefile +5 -0
  25. data/spec/dummy/bin/bundle +3 -0
  26. data/spec/dummy/bin/rails +4 -0
  27. data/spec/dummy/bin/rake +4 -0
  28. data/spec/dummy/bin/setup +29 -0
  29. data/spec/dummy/config/application.rb +152 -0
  30. data/spec/dummy/config/boot.rb +6 -0
  31. data/spec/dummy/config/database.yml +28 -0
  32. data/spec/dummy/config/environment.rb +5 -0
  33. data/spec/dummy/config/environments/development.rb +49 -0
  34. data/spec/dummy/config/environments/production.rb +79 -0
  35. data/spec/dummy/config/environments/test.rb +42 -0
  36. data/spec/dummy/config/initializers/assets.rb +11 -0
  37. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  39. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  40. data/spec/dummy/config/initializers/inflections.rb +16 -0
  41. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  42. data/spec/dummy/config/initializers/session_store.rb +3 -0
  43. data/spec/dummy/config/initializers/trusty_cms_config.rb +20 -0
  44. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/spec/dummy/config/locales/en.yml +23 -0
  46. data/spec/dummy/config/routes.rb +0 -0
  47. data/spec/dummy/config/secrets.yml +22 -0
  48. data/spec/dummy/config.ru +4 -0
  49. data/spec/dummy/db/schema.rb +144 -0
  50. data/spec/dummy/public/404.html +67 -0
  51. data/spec/dummy/public/422.html +67 -0
  52. data/spec/dummy/public/500.html +66 -0
  53. data/spec/dummy/public/favicon.ico +0 -0
  54. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  55. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +0 -0
  56. data/spec/dummy/tmp/cache/assets/test/sass/4efd780dc9118042804451835b878259e2afc5d1/_base.scssc +0 -0
  57. data/spec/dummy/tmp/cache/assets/test/sass/4efd780dc9118042804451835b878259e2afc5d1/main.scssc +0 -0
  58. data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_boxes.scssc +0 -0
  59. data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_gradients.scssc +0 -0
  60. data/spec/dummy/tmp/cache/assets/test/sass/66b1a0010012929c45ead4236f8cf67ab5e3ad10/_links.scssc +0 -0
  61. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_actions.scssc +0 -0
  62. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_avatars.scssc +0 -0
  63. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_content.scssc +0 -0
  64. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_dateinput.scssc +0 -0
  65. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_deprecated.scssc +0 -0
  66. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_dropdown.scssc +0 -0
  67. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_footer.scssc +0 -0
  68. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_forms.scssc +0 -0
  69. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_header.scssc +0 -0
  70. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_index.scssc +0 -0
  71. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui-structure.scssc +0 -0
  72. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui-theme.scssc +0 -0
  73. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_jquery-ui.scssc +0 -0
  74. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_layout.scssc +0 -0
  75. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_messages.scssc +0 -0
  76. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_popup.scssc +0 -0
  77. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_tabcontrol.scssc +0 -0
  78. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_toolbar.scssc +0 -0
  79. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_treetable.scssc +0 -0
  80. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_typography.scssc +0 -0
  81. data/spec/dummy/tmp/cache/assets/test/sass/8d307e13c2e74a3d7d4d0eecd3e5daf9e7b1293d/_validations.scssc +0 -0
  82. data/spec/dummy/tmp/cache/assets/test/sprockets/0253c2b6b6b5d225c38e795a508043e3 +0 -0
  83. data/spec/dummy/tmp/cache/assets/test/sprockets/05634c84f3e97c2e300a0988e9c571b4 +0 -0
  84. data/spec/dummy/tmp/cache/assets/test/sprockets/07c2bf9b54e44d186c3dc4fe775bf217 +0 -0
  85. data/spec/dummy/tmp/cache/assets/test/sprockets/0a5bab0f5c49aafe2bef1ad4f0fdaa95 +0 -0
  86. data/spec/dummy/tmp/cache/assets/test/sprockets/0b12b1d454f82ce157eba2a99c57b1c5 +0 -0
  87. data/spec/dummy/tmp/cache/assets/test/sprockets/0d0f578e1d526a5592454fd915f28722 +0 -0
  88. data/spec/dummy/tmp/cache/assets/test/sprockets/118a0efcdfc1be878d85967fb9eab9ab +0 -0
  89. data/spec/dummy/tmp/cache/assets/test/sprockets/126b3a20fbb3ee31f8d29ce1c0a3bae1 +0 -0
  90. data/spec/dummy/tmp/cache/assets/test/sprockets/128df4bcf253b7dbb8bb8b6bd40b92d5 +0 -0
  91. data/spec/dummy/tmp/cache/assets/test/sprockets/133ae3a6ec8ce5c435266446d406c497 +0 -0
  92. data/spec/dummy/tmp/cache/assets/test/sprockets/13da4e71b104d636208b7ea380c9028b +0 -0
  93. data/spec/dummy/tmp/cache/assets/test/sprockets/1a0cf8baad9957cea0290cac02ee4324 +0 -0
  94. data/spec/dummy/tmp/cache/assets/test/sprockets/22a8f218bcf0b68fecca4d5aa7b728b9 +0 -0
  95. data/spec/dummy/tmp/cache/assets/test/sprockets/276aad4896e9ee6929626bcea973ec2f +0 -0
  96. data/spec/dummy/tmp/cache/assets/test/sprockets/27977269178c1332d1b0085b9830c8c7 +0 -0
  97. data/spec/dummy/tmp/cache/assets/test/sprockets/2960553254e8b34684bd62fcd9ebcc88 +0 -0
  98. data/spec/dummy/tmp/cache/assets/test/sprockets/298838d1f354a7ce98875c7225e6a6a7 +0 -0
  99. data/spec/dummy/tmp/cache/assets/test/sprockets/29d248927769199391aa7c6b060730f2 +0 -0
  100. data/spec/dummy/tmp/cache/assets/test/sprockets/2b29e5c4175ed37eae13bb9445cd0398 +0 -0
  101. data/spec/dummy/tmp/cache/assets/test/sprockets/2c6aad6774b77dd0212ff0921a552fda +0 -0
  102. data/spec/dummy/tmp/cache/assets/test/sprockets/2e05b1c8f1f2eaa2c143c1097921fbaf +0 -0
  103. data/spec/dummy/tmp/cache/assets/test/sprockets/30f472e5b1cb95fcada64f956701fcfe +0 -0
  104. data/spec/dummy/tmp/cache/assets/test/sprockets/3722e239d8e0fc45691762190af60480 +0 -0
  105. data/spec/dummy/tmp/cache/assets/test/sprockets/3cc3bb17b7fbe5eeeb9e2fd59f353ac2 +0 -0
  106. data/spec/dummy/tmp/cache/assets/test/sprockets/4036e4e74ec8caaf31ebfa8200b11fc6 +0 -0
  107. data/spec/dummy/tmp/cache/assets/test/sprockets/4bde469b10d79020fae3d263ac3d7c41 +0 -0
  108. data/spec/dummy/tmp/cache/assets/test/sprockets/4dba5139e0cb793331971197e100dab7 +0 -0
  109. data/spec/dummy/tmp/cache/assets/test/sprockets/50340e99333efe25311ff69d804d0044 +0 -0
  110. data/spec/dummy/tmp/cache/assets/test/sprockets/566ea75053eeef9a45333422ebe11758 +0 -0
  111. data/spec/dummy/tmp/cache/assets/test/sprockets/57ba3771151e2d17eb1f1df421fe8a96 +0 -0
  112. data/spec/dummy/tmp/cache/assets/test/sprockets/5a8e4705d0930604da5dad00d49e7f49 +0 -0
  113. data/spec/dummy/tmp/cache/assets/test/sprockets/5eed3bf8cfe6dcb764bea5c574d2d9c9 +0 -0
  114. data/spec/dummy/tmp/cache/assets/test/sprockets/5f879c30ff953be36c9bd3bc12c58b15 +0 -0
  115. data/spec/dummy/tmp/cache/assets/test/sprockets/649393b36e60cee5747d66aa96862184 +0 -0
  116. data/spec/dummy/tmp/cache/assets/test/sprockets/649cb21e9d0e916026c8ff574f21cb7d +0 -0
  117. data/spec/dummy/tmp/cache/assets/test/sprockets/65aef06e5485abe748ec0f8ab5e83fa5 +0 -0
  118. data/spec/dummy/tmp/cache/assets/test/sprockets/6745248fbc6beb42d1ab2b04b63c5c1a +0 -0
  119. data/spec/dummy/tmp/cache/assets/test/sprockets/6781fb6027c64b314bd774aa672574f6 +0 -0
  120. data/spec/dummy/tmp/cache/assets/test/sprockets/6b3ab0bc5c8316baa291af39f5c44038 +0 -0
  121. data/spec/dummy/tmp/cache/assets/test/sprockets/6da37e398c8c9f006f6b544cd714d834 +0 -0
  122. data/spec/dummy/tmp/cache/assets/test/sprockets/72ce50f2edca010cee5ad75904a615c9 +0 -0
  123. data/spec/dummy/tmp/cache/assets/test/sprockets/74021cd8376ee1203af17bed0d2bf27f +0 -0
  124. data/spec/dummy/tmp/cache/assets/test/sprockets/76d535649eb9bd798d9e1e9f64860451 +0 -0
  125. data/spec/dummy/tmp/cache/assets/test/sprockets/7b3ae6ac77163f1d1c0bac4b66d0d910 +0 -0
  126. data/spec/dummy/tmp/cache/assets/test/sprockets/7e97394489bc5dd3989b7dcdbd33d080 +0 -0
  127. data/spec/dummy/tmp/cache/assets/test/sprockets/7eaf5a863f069a5571b3b0e12f2167fb +0 -0
  128. data/spec/dummy/tmp/cache/assets/test/sprockets/8117019177512a419d0852f3d871604e +0 -0
  129. data/spec/dummy/tmp/cache/assets/test/sprockets/8211e5da25cd8db999f3e83acc70b884 +0 -0
  130. data/spec/dummy/tmp/cache/assets/test/sprockets/82426bfd2b08cc8ec14a62d560643a8c +0 -0
  131. data/spec/dummy/tmp/cache/assets/test/sprockets/83eee805228b7b26a9e9027d05b95402 +0 -0
  132. data/spec/dummy/tmp/cache/assets/test/sprockets/858821775db3375fa2cdcfb2e1efe3cd +0 -0
  133. data/spec/dummy/tmp/cache/assets/test/sprockets/8cdfbf142f9e5dcb6785a6e61ca4861e +0 -0
  134. data/spec/dummy/tmp/cache/assets/test/sprockets/9316fc95ea7bd5108f6838f6c7e7be4e +0 -0
  135. data/spec/dummy/tmp/cache/assets/test/sprockets/95e0849d56a2a9e1e55d874be2c04ae2 +0 -0
  136. data/spec/dummy/tmp/cache/assets/test/sprockets/965a1812be0bfc82e220e7f22ae384dc +0 -0
  137. data/spec/dummy/tmp/cache/assets/test/sprockets/a1832984208c42e9a47980b4d6ac2dc9 +0 -0
  138. data/spec/dummy/tmp/cache/assets/test/sprockets/a1e86c22b2e6cfbcdf9d68792bcedb7f +0 -0
  139. data/spec/dummy/tmp/cache/assets/test/sprockets/ad62c91ea509a5e8e4caf11c4922f392 +0 -0
  140. data/spec/dummy/tmp/cache/assets/test/sprockets/b06ccd7385c6bd56ee7c6562a97e6b85 +0 -0
  141. data/spec/dummy/tmp/cache/assets/test/sprockets/b2f5b7fb5cbed27d897a0368d4a6d5d2 +0 -0
  142. data/spec/dummy/tmp/cache/assets/test/sprockets/b7505543b40b8ab466e9efe586d95346 +0 -0
  143. data/spec/dummy/tmp/cache/assets/test/sprockets/bab4140b592b87efaf49c7bf60598425 +0 -0
  144. data/spec/dummy/tmp/cache/assets/test/sprockets/baf8b56ddb9ca0245e093e29ade35c0a +0 -0
  145. data/spec/dummy/tmp/cache/assets/test/sprockets/be3cf8499757ed7678ee0a25d4aa3112 +0 -0
  146. data/spec/dummy/tmp/cache/assets/test/sprockets/be5b781b3de58aa915133b4d41b76a0b +0 -0
  147. data/spec/dummy/tmp/cache/assets/test/sprockets/c0fc05e9c36943a5437ef516f58ebcd8 +0 -0
  148. data/spec/dummy/tmp/cache/assets/test/sprockets/cb78e79ec2dd8bccf18927386de178ae +0 -0
  149. data/spec/dummy/tmp/cache/assets/test/sprockets/d2b5bbda0041b5ef56873dc8941d5ad9 +0 -0
  150. data/spec/dummy/tmp/cache/assets/test/sprockets/dcc163a0f3096123d374f5632ad48d4b +0 -0
  151. data/spec/dummy/tmp/cache/assets/test/sprockets/df7b2d1131b58c69eef783a1ab4be24e +0 -0
  152. data/spec/dummy/tmp/cache/assets/test/sprockets/e1f5e19236dcdd3e73c8b8dedb8e3daf +0 -0
  153. data/spec/dummy/tmp/cache/assets/test/sprockets/e57bae9b7a4c75c1d0c2a3e1c1aae160 +0 -0
  154. data/spec/dummy/tmp/cache/assets/test/sprockets/e63e2d8b377101ea8de761b46eb0f50f +0 -0
  155. data/spec/dummy/tmp/cache/assets/test/sprockets/ea25d11b296786fb90debfd6972d97d8 +0 -0
  156. data/spec/dummy/tmp/cache/assets/test/sprockets/ec5a73c71a7a240d83eab2b121328bcd +0 -0
  157. data/spec/dummy/tmp/cache/assets/test/sprockets/efd49fd3ad186d8dce200e0ca411e35d +0 -0
  158. data/spec/dummy/tmp/cache/assets/test/sprockets/f35adec61f96a28e6d188caddee1fd4b +0 -0
  159. data/spec/dummy/tmp/cache/assets/test/sprockets/f5855ddab883d0ee58146d0369cc8227 +0 -0
  160. data/spec/dummy/tmp/cache/assets/test/sprockets/f58cd07201e2fffd12f2e1829869c350 +0 -0
  161. data/spec/dummy/tmp/cache/assets/test/sprockets/f657dcaacbf72b65af3abd6b22bf68b3 +0 -0
  162. data/spec/dummy/tmp/cache/assets/test/sprockets/f91592d9720c5a81657c3198d7d525ac +0 -0
  163. data/spec/features/admin_login_spec.rb +92 -0
  164. data/spec/fixtures/users.yml +16 -0
  165. data/spec/lib/asset_tags_spec.rb +107 -107
  166. data/spec/lib/frame_grab_spec.rb +17 -17
  167. data/spec/lib/geometry_transformation_spec.rb +63 -63
  168. data/spec/rails_helper.rb +73 -0
  169. data/spec/spec_helper.rb +13 -35
  170. data/spec/support/custom_actions.rb +9 -0
  171. data/trusty-clipped-extension.gemspec +1 -1
  172. metadata +309 -31
  173. data/spec/ci/before_script +0 -23
  174. data/spec/ci/script +0 -2
  175. data/spec/controllers/admin/assets_controller_spec.rb +0 -50
  176. data/spec/controllers/admin/page_attachments_controller_spec.rb +0 -50
  177. data/spec/datasets/assets_dataset.rb +0 -36
  178. data/spec/models/asset_spec.rb +0 -72
  179. data/spec/models/asset_type_spec.rb +0 -70
  180. data/spec/models/post_processing_spec.rb +0 -62
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTg2YjAwZThjYjFiNGFlY2IwMWY3YmYwOWQwZmYwMWQ5MGU3YWFlMw==
5
- data.tar.gz: !binary |-
6
- ZWM4NzY0MWFkYWNjZTlmMzJjMDNkY2M5ZGFmYmQyYmQ5ZTM5NmM1OA==
2
+ SHA1:
3
+ metadata.gz: c24b980e60b557340856569014e94388fea91ce8
4
+ data.tar.gz: 3b507ddf8f6ef2dc9d055b4bd80283fcc8b14144
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NWYzNWVhNGU4YTMzM2E2YjJjYzQ0ZmZmNjYwMTdhZTJkMzNjNGY5ZWMzMjBl
10
- Nzc4MTQxZGEyMzAwNGE4YTk2NTQxOGZjNmU2YTdhYTU5ZTc2NDUxNWM5MTNk
11
- NDc5MmIyZmJiZjYwMTkwZDFjNjNjNjVmZGUxNDRiZmE3ZDZmNGY=
12
- data.tar.gz: !binary |-
13
- ODVlYmE2MTE2MmQ1MzBiYTk5MDUzNmE3MWRiMTdjZTVkYWNjMDgxY2UzOTk5
14
- OTgxZWFmODNmNzljN2U0MWEwMDRlNjIyZWEwMmNjOTgzNDZhMDY1Y2E3YjBl
15
- ODA4ZDJkNDAxZmU2YjAxOTE0YmJiMTg0YWNiMzNiZjllMGQwODA=
6
+ metadata.gz: 658648393ef70d2e43631a98f5479d1531a64469532547a3b3a766fb872e78c216e28288953e2157e2615353c7cdb12cac39a00bcc55d8fb40daffefc0f41f13
7
+ data.tar.gz: bcc110831ef7c4105a6358aa79c22584c6155b41a0bb40a4bc190d3be8c1c7d3f1df5364d5f18ec3890a20f0e85d7fa312ace981a557b2519db4dd9a9126d02e
data/Gemfile CHANGED
@@ -1,5 +1,49 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'trustygems', '~> 0.1.0'
3
+ # This is the minimum of dependency required to run
4
+ # the trusty-cms instance generator, which is (normally)
5
+ # the only time the trusty gem functions as an
6
+ # application. The instance has its own Gemfile, which
7
+ # requires radiant and therefore pulls in every
8
+ # dependency mentioned in radiant.gemspec.
9
+
10
+ gem 'trustygems', '~> 0.2.0'
4
11
 
5
12
  gemspec
13
+
14
+ # When trusty is installed as a gem you can run all of
15
+ # its tests and specs from an instance. If you're working
16
+ # on trusty itself and you want to run specs from the
17
+ # radiant root directory, uncomment the lines below and
18
+ # run `bundle install`.
19
+
20
+ # gemspec
21
+ # gem "compass-rails", "~> 1.0.3"
22
+
23
+ # gem "radiant-archive-extension", "~> 1.0.7"
24
+ # gem "radiant-clipped-extension", "~> 1.1.0"
25
+ # gem "radiant-debug-extension", "~> 1.0.2"
26
+ # gem "radiant-exporter-extension", "~> 1.1.0"
27
+ # gem "radiant-markdown_filter-extension", "~> 1.0.2"
28
+ # gem "radiant-sheets-extension", "~> 1.1.0.alpha"
29
+ # gem "radiant-snippets-extension", "~> 1.1.0.alpha"
30
+ # gem "radiant-site_templates-extension", "~> 1.0.4"
31
+ # gem "radiant-smarty_pants_filter-extension", "~> 1.0.2"
32
+ # gem "radiant-textile_filter-extension", "~> 1.0.4"
33
+
34
+
35
+ group :development, :test do
36
+ gem "compass-rails", "~> 2.0.1"
37
+ gem 'thin', '~> 1.6.2'
38
+ gem 'pry', '~> 0.10.0'
39
+ gem 'capybara', '~> 2.3.0'
40
+ gem 'rspec-rails', '~> 3.0.0'
41
+ gem 'launchy', '~> 2.4.2'
42
+ gem 'database_cleaner', '~> 1.3.0'
43
+ gem 'poltergeist', '~> 1.5.1'
44
+ gem "ckeditor", "~> 4.1.0"
45
+ gem 'factory_girl_rails', '~> 4.5.0'
46
+ gem 'rails-observers'
47
+ gem "protected_attributes"
48
+ gem "pry-byebug"
49
+ end
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-clipped-extension (2.0.1.pre.beta)
5
- acts_as_list (= 0.4.0)
4
+ trusty-clipped-extension (2.0.3.pre.beta)
5
+ acts_as_list (~> 0.4.0)
6
6
  cocaine (~> 0.5)
7
7
  paperclip (~> 4.2)
8
8
  trusty-cms (~> 2.0.0.pre.beta)
@@ -51,16 +51,28 @@ GEM
51
51
  activerecord (>= 3.0)
52
52
  acts_as_tree (2.2.0)
53
53
  activerecord (>= 3.0.0)
54
- arel (6.0.2)
54
+ addressable (2.3.8)
55
+ arel (6.0.3)
55
56
  builder (3.2.2)
57
+ byebug (5.0.0)
58
+ columnize (= 0.9.0)
59
+ capybara (2.3.0)
60
+ mime-types (>= 1.16)
61
+ nokogiri (>= 1.3.3)
62
+ rack (>= 1.0.0)
63
+ rack-test (>= 0.5.4)
64
+ xpath (~> 2.0)
56
65
  chunky_png (1.3.4)
57
- ckeditor (4.1.2)
66
+ ckeditor (4.1.3)
58
67
  cocaine
59
68
  orm_adapter (~> 0.5.0)
60
69
  climate_control (0.0.3)
61
70
  activesupport (>= 3.0)
71
+ cliver (0.3.2)
62
72
  cocaine (0.5.7)
63
73
  climate_control (>= 0.0.3, < 1.0)
74
+ coderay (1.1.0)
75
+ columnize (0.9.0)
64
76
  compass (1.0.3)
65
77
  chunky_png (~> 1.2)
66
78
  compass-core (~> 1.0.2)
@@ -77,14 +89,23 @@ GEM
77
89
  compass (~> 1.0.0)
78
90
  sass-rails (<= 5.0.1)
79
91
  sprockets (< 2.13)
92
+ daemons (1.2.3)
93
+ database_cleaner (1.3.0)
80
94
  delocalize (0.4.0)
81
95
  rails (>= 3.0)
96
+ diff-lcs (1.2.5)
82
97
  erubis (2.7.0)
98
+ eventmachine (1.0.8)
83
99
  execjs (2.5.2)
100
+ factory_girl (4.5.0)
101
+ activesupport (>= 3.0.0)
102
+ factory_girl_rails (4.5.0)
103
+ factory_girl (~> 4.5.0)
104
+ railties (>= 3.0.0)
84
105
  ffi (1.9.10)
85
- globalid (0.3.5)
106
+ globalid (0.3.6)
86
107
  activesupport (>= 4.1.0)
87
- haml (4.0.6)
108
+ haml (4.0.7)
88
109
  tilt
89
110
  haml-rails (0.9.0)
90
111
  actionpack (>= 4.0.1)
@@ -104,15 +125,18 @@ GEM
104
125
  railties (>= 3.0, < 5.0)
105
126
  thor (>= 0.14, < 2.0)
106
127
  json (1.8.3)
128
+ launchy (2.4.3)
129
+ addressable (~> 2.3)
107
130
  libv8 (3.16.14.11)
108
131
  loofah (2.0.2)
109
132
  nokogiri (>= 1.5.9)
110
133
  mail (2.6.3)
111
134
  mime-types (>= 1.16, < 3)
135
+ method_source (0.8.2)
112
136
  mime-types (2.6.1)
113
137
  mimemagic (0.3.0)
114
138
  mini_portile (0.6.2)
115
- minitest (5.7.0)
139
+ minitest (5.8.0)
116
140
  multi_json (1.11.2)
117
141
  mysql (2.9.1)
118
142
  nokogiri (1.6.6.2)
@@ -124,8 +148,20 @@ GEM
124
148
  cocaine (~> 0.5.5)
125
149
  mime-types
126
150
  mimemagic (= 0.3.0)
151
+ poltergeist (1.5.1)
152
+ capybara (~> 2.1)
153
+ cliver (~> 0.3.1)
154
+ multi_json (~> 1.0)
155
+ websocket-driver (>= 0.2.0)
127
156
  protected_attributes (1.0.9)
128
157
  activemodel (>= 4.0.1, < 5.0)
158
+ pry (0.10.1)
159
+ coderay (~> 1.1.0)
160
+ method_source (~> 0.8.1)
161
+ slop (~> 3.4)
162
+ pry-byebug (3.2.0)
163
+ byebug (~> 5.0)
164
+ pry (~> 0.10)
129
165
  rack (1.6.4)
130
166
  rack-cache (1.2)
131
167
  rack (>= 0.4)
@@ -151,6 +187,8 @@ GEM
151
187
  rails-deprecated_sanitizer (>= 1.0.1)
152
188
  rails-html-sanitizer (1.0.2)
153
189
  loofah (~> 2.0)
190
+ rails-observers (0.1.2)
191
+ activemodel (~> 4.0)
154
192
  railties (4.2.3)
155
193
  actionpack (= 4.2.3)
156
194
  activesupport (= 4.2.3)
@@ -163,7 +201,23 @@ GEM
163
201
  rdoc (3.12.2)
164
202
  json (~> 1.4)
165
203
  ref (2.0.0)
166
- ruby_parser (3.7.0)
204
+ rspec-core (3.0.4)
205
+ rspec-support (~> 3.0.0)
206
+ rspec-expectations (3.0.4)
207
+ diff-lcs (>= 1.2.0, < 2.0)
208
+ rspec-support (~> 3.0.0)
209
+ rspec-mocks (3.0.4)
210
+ rspec-support (~> 3.0.0)
211
+ rspec-rails (3.0.2)
212
+ actionpack (>= 3.0)
213
+ activesupport (>= 3.0)
214
+ railties (>= 3.0)
215
+ rspec-core (~> 3.0.0)
216
+ rspec-expectations (~> 3.0.0)
217
+ rspec-mocks (~> 3.0.0)
218
+ rspec-support (~> 3.0.0)
219
+ rspec-support (3.0.4)
220
+ ruby_parser (3.7.1)
167
221
  sexp_processor (~> 4.1)
168
222
  sass (3.4.16)
169
223
  sass-rails (5.0.1)
@@ -173,6 +227,7 @@ GEM
173
227
  sprockets-rails (>= 2.0, < 4.0)
174
228
  tilt (~> 1.1)
175
229
  sexp_processor (4.6.0)
230
+ slop (3.6.0)
176
231
  sprockets (2.12.4)
177
232
  hike (~> 1.2)
178
233
  multi_json (~> 1.0)
@@ -186,10 +241,14 @@ GEM
186
241
  therubyracer (0.12.2)
187
242
  libv8 (~> 3.16.14.0)
188
243
  ref
244
+ thin (1.6.3)
245
+ daemons (~> 1.0, >= 1.0.9)
246
+ eventmachine (~> 1.0)
247
+ rack (~> 1.0)
189
248
  thor (0.19.1)
190
249
  thread_safe (0.3.5)
191
250
  tilt (1.4.1)
192
- trusty-cms (2.0.9.pre.beta)
251
+ trusty-cms (2.0.10.pre.beta)
193
252
  RedCloth (~> 4.2)
194
253
  acts_as_tree (~> 2.1)
195
254
  bundler (~> 1.7)
@@ -213,7 +272,7 @@ GEM
213
272
  tzinfo (~> 1.2)
214
273
  uglifier (~> 2.6)
215
274
  will_paginate (~> 3.0)
216
- trustygems (0.1.0)
275
+ trustygems (0.2.1)
217
276
  rake
218
277
  tzinfo (1.2.2)
219
278
  thread_safe (~> 0.1)
@@ -221,11 +280,29 @@ GEM
221
280
  execjs (>= 0.3.0)
222
281
  json (>= 1.8.0)
223
282
  uuidtools (2.1.5)
283
+ websocket-driver (0.6.2)
284
+ websocket-extensions (>= 0.1.0)
285
+ websocket-extensions (0.1.2)
224
286
  will_paginate (3.0.7)
287
+ xpath (2.0.0)
288
+ nokogiri (~> 1.3)
225
289
 
226
290
  PLATFORMS
227
291
  ruby
228
292
 
229
293
  DEPENDENCIES
294
+ capybara (~> 2.3.0)
295
+ ckeditor (~> 4.1.0)
296
+ compass-rails (~> 2.0.1)
297
+ database_cleaner (~> 1.3.0)
298
+ factory_girl_rails (~> 4.5.0)
299
+ launchy (~> 2.4.2)
300
+ poltergeist (~> 1.5.1)
301
+ protected_attributes
302
+ pry (~> 0.10.0)
303
+ pry-byebug
304
+ rails-observers
305
+ rspec-rails (~> 3.0.0)
306
+ thin (~> 1.6.2)
230
307
  trusty-clipped-extension!
231
- trustygems (~> 0.1.0)
308
+ trustygems (~> 0.2.0)
data/Rakefile CHANGED
@@ -1,112 +1,28 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ # require File.expand_path('../config/application', __FILE__)
6
+ # STDOUT.sync = true
7
+ # TrustyCms::Application.load_tasks
8
+
9
+ require 'pry'
10
+ require 'byebug'
1
11
  require 'trustygems'
2
12
 
3
- # # Determine where the RSpec plugin is by loading the boot
4
- # unless defined? TRUSTY_CMS_ROOT
5
- # ENV["RAILS_ENV"] = "test"
6
- # case
7
- # when ENV["RADIANT_ENV_FILE"]
8
- # require File.dirname(ENV["RADIANT_ENV_FILE"]) + "/boot"
9
- # when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
10
- # require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
11
- # else
12
- # require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
13
- # end
14
- # end
15
- #
16
- # require 'rake'
17
- # require 'rdoc/task'
18
- # require 'rake/testtask'
19
- # require 'trustygems'
20
- #
21
- # rspec_base = File.expand_path(TRUSTY_CMS_ROOT + '/vendor/plugins/rspec/lib')
22
- # $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
23
- # require 'spec/rake/spectask'
24
- # require 'cucumber'
25
- # require 'cucumber/rake/task'
26
- #
27
- # # Cleanup the RADIANT_ROOT constant so specs will load the environment
28
- # Object.send(:remove_const, :TRUSTY_CMS_ROOT)
29
- #
30
- # extension_root = File.expand_path(File.dirname(__FILE__))
31
- #
32
- # task :default => [:spec, :features]
33
- # task :stats => "spec:statsetup"
34
- #
35
- # desc "Run all specs in spec directory"
36
- # Spec::Rake::SpecTask.new(:spec) do |t|
37
- # t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
38
- # t.spec_files = FileList['spec/**/*_spec.rb']
39
- # end
40
- #
41
- # task :features => 'spec:integration'
42
- #
43
- # namespace :spec do
44
- # desc "Run all specs in spec directory with RCov"
45
- # Spec::Rake::SpecTask.new(:rcov) do |t|
46
- # t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
47
- # t.spec_files = FileList['spec/**/*_spec.rb']
48
- # t.rcov = true
49
- # t.rcov_opts = ['--exclude', 'spec', '--rails']
50
- # end
51
- #
52
- # desc "Print Specdoc for all specs"
53
- # Spec::Rake::SpecTask.new(:doc) do |t|
54
- # t.spec_opts = ["--format", "specdoc", "--dry-run"]
55
- # t.spec_files = FileList['spec/**/*_spec.rb']
56
- # end
57
- #
58
- # [:models, :controllers, :views, :helpers].each do |sub|
59
- # desc "Run the specs under spec/#{sub}"
60
- # Spec::Rake::SpecTask.new(sub) do |t|
61
- # t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
62
- # t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
63
- # end
64
- # end
65
- #
66
- # desc "Run the Cucumber features"
67
- # Cucumber::Rake::Task.new(:integration) do |t|
68
- # t.fork = true
69
- # t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
70
- # # t.feature_pattern = "#{extension_root}/features/**/*.feature"
71
- # t.profile = "default"
72
- # end
73
- #
74
- # # Setup specs for stats
75
- # task :statsetup do
76
- # require 'code_statistics'
77
- # ::STATS_DIRECTORIES << %w(Model\ specs spec/models)
78
- # ::STATS_DIRECTORIES << %w(View\ specs spec/views)
79
- # ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
80
- # ::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
81
- # ::CodeStatistics::TEST_TYPES << "Model specs"
82
- # ::CodeStatistics::TEST_TYPES << "View specs"
83
- # ::CodeStatistics::TEST_TYPES << "Controller specs"
84
- # ::CodeStatistics::TEST_TYPES << "Helper specs"
85
- # ::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
86
- # end
87
- #
88
- # namespace :db do
89
- # namespace :fixtures do
90
- # desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
91
- # task :load => :environment do
92
- # require 'active_record/fixtures'
93
- # ActiveRecord::Base.establish_connection(Rails.env.to_sym)
94
- # (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(Rails.root, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
95
- # Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
96
- # end
97
- # end
98
- # end
99
- # end
100
- # end
101
- #
102
- # desc 'Generate documentation for the clipped extension.'
103
- # RDoc::Task.new(:rdoc) do |rdoc|
104
- # rdoc.rdoc_dir = 'rdoc'
105
- # rdoc.title = 'ClippedExtension'
106
- # rdoc.options << '--line-numbers' << '--inline-source'
107
- # rdoc.rdoc_files.include('README')
108
- # rdoc.rdoc_files.include('lib/**/*.rb')
109
- # end
110
- #
111
- # # Load any custom rakefiles for extension
112
- # Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
13
+ #!/usr/bin/env rake
14
+ begin
15
+ require 'bundler/setup'
16
+ rescue LoadError
17
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
18
+ end
19
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
20
+ load 'rails/tasks/engine.rake'
21
+ Bundler::GemHelper.install_tasks
22
+ Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
23
+ require 'rspec/core'
24
+ require 'rspec/core/rake_task'
25
+ desc "Run all specs in spec directory (excluding plugin specs)"
26
+ RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
27
+ task :default => :spec
28
+ #TrustyCms::Application.load_tasks
@@ -1,6 +1,6 @@
1
1
  Assets = {
2
2
  attachEvents: function() {
3
- $('a.attach_asset').click(function(e){
3
+ $('a.attach_asset').off('click').click(function(e){
4
4
  e.preventDefault();
5
5
  var link = $(this);
6
6
  var container = link.parents('li.asset');
@@ -16,13 +16,13 @@ Assets = {
16
16
  });
17
17
  });
18
18
 
19
- $('a.detach_asset').click(function(e){
19
+ $('a.detach_asset').off('click').click(function(e){
20
20
  e.preventDefault();
21
21
  var link = $(this);
22
22
  Assets.removeFromList(link.parents('li.asset'));
23
23
  });
24
24
 
25
- $('a.insert_asset').click(function(e){
25
+ $('a.insert_asset').off('click').click(function(e){
26
26
  e.preventDefault();
27
27
  var part_name = $("a.tab.here").children('span').html();
28
28
  if (part_name.indexOf(' ')) part_name = part_name.replace(' ', '-');
@@ -39,7 +39,7 @@ Assets = {
39
39
 
40
40
  });
41
41
 
42
- $(".pagination a").click(function(e){
42
+ $(".pagination a").off('click').click(function(e){
43
43
  e.preventDefault();
44
44
  $.ajax({
45
45
  method: 'get',
@@ -85,7 +85,7 @@ p.asset
85
85
  li.asset
86
86
  display: block
87
87
  float: left
88
- margin: 8px 0 0 8px
88
+ margin: 1em
89
89
  width: 110px
90
90
  height: 110px
91
91
  position: relative
@@ -152,7 +152,6 @@ p.asset
152
152
  opacity: 0.2
153
153
 
154
154
  #attachment_list.assets
155
- background: #7e7e7e
156
155
  +border-bottom-radius
157
156
  margin: -1em 0.5em 1em 0.5em
158
157
  overflow-y: hidden
@@ -160,7 +159,6 @@ p.asset
160
159
  ul.empty
161
160
  display: none
162
161
  p.note
163
- font-size: 80%
164
162
  margin: 0
165
163
  padding: 8px
166
164
  clear: left
@@ -195,7 +193,7 @@ p.asset
195
193
  width: 100%
196
194
  height: 3em
197
195
  padding: 0.5em 0
198
- span, a
196
+ span, a, em
199
197
  display: block
200
198
  float: left
201
199
  padding: 0.25em
@@ -22,7 +22,9 @@ class Admin::AssetsController < Admin::ResourceController
22
22
  @page = Page.find_by_id(params[:page_id])
23
23
  render :partial => 'asset_table', :locals => {:with_pagination => true}
24
24
  }
25
- format.html { render }
25
+ format.html {
26
+ render
27
+ }
26
28
  end
27
29
  end
28
30
 
@@ -28,3 +28,4 @@
28
28
 
29
29
  - if with_pagination && assets.respond_to?(:total_pages) && assets.total_pages > 1
30
30
  = pagination_for(assets, pagination_parameters.merge(:depaginate => false, :param_name => 'p', :params => {:controller => 'admin/assets', :action => 'index', :id => nil, :format => 'js', :page_id => (page && page.id), :pp => assets.per_page }))
31
+ x
@@ -1,10 +1,10 @@
1
1
  = render_region :form_top
2
2
  - render_region :form do |form|
3
3
  - form.edit_title do
4
- %p.title
4
+ %fieldset.title
5
5
  %label{ :for => "asset_title" }
6
6
  = t("clipped_extension.title")
7
- = f.text_field :title, :class => 'textbox', :maxlength => 100
7
+ = f.text_field :title, :class => 'textbox', :maxlength => 100
8
8
  - form.edit_metadata do
9
9
  .drawer
10
10
  .drawer_contents#attributes
@@ -14,7 +14,7 @@
14
14
  %label{ :for => "asset_caption" }
15
15
  = t("clipped_extension.caption")
16
16
  %td.field
17
- = f.text_field :caption, :class => 'textbox', :maxlength => 255
17
+ = f.text_field :caption, :class => 'textbox', :maxlength => 255
18
18
  = render_region :extended_metadata, :locals => {:f => f}
19
19
  .drawer_handle
20
20
  %a.toggle.more{:href=>'#attributes', :rel=>"toggle[attributes]"}
@@ -5,7 +5,7 @@
5
5
  %li
6
6
  %p.note
7
7
  = t("clipped_extension.no_attached_assets")
8
-
8
+
9
9
  %script{ :type => "text/javascript" }
10
10
  Asset.MakeDraggables();
11
11
 
@@ -11,7 +11,7 @@
11
11
  = render :partial => "form", :locals => { :f => f }
12
12
 
13
13
  %div.content
14
- %p
14
+ %fieldset
15
15
  %label.filename
16
16
  = "#{t("clipped_extension.filename")}: #{@asset.asset_file_name unless @asset.new_record?}"
17
17
  %p.asset
@@ -20,7 +20,7 @@
20
20
 
21
21
  = updated_stamp @asset
22
22
 
23
- %p.upload
23
+ %fieldset.upload
24
24
  %label.upload
25
25
  = t("clipped_extension.replace_file")
26
26
  = f.file_field :asset, :class => "", :style => "width: 100%"
@@ -33,7 +33,7 @@
33
33
 
34
34
  - main.edit_regenerate do
35
35
  - if current_user.admin? or current_user.designer?
36
- %p= t("clipped_extension.regenerate_thumbnails")
36
+ %fieldset= t("clipped_extension.regenerate_thumbnails")
37
37
 
38
38
  - form_tag refresh_admin_asset_path(@asset), :method => :put do
39
39
  %p.asset_buttons
@@ -6,11 +6,10 @@
6
6
 
7
7
  .outset
8
8
  #assets_table.assets
9
- = render :partial => 'asset_table', :locals => { :assets => @assets }
10
- %p{:style => 'clear: both; height: 2em'} &nbsp;
9
+ = render :partial => 'asset_table', :locals => { assets: @assets, with_pagination: true }
10
+ %p{style: 'clear: both; height: 2em'} &nbsp;
11
11
 
12
12
  - render_region :bottom do |bottom|
13
13
  #actions
14
- = pagination_for @assets, :depaginate => false
15
14
  %ul
16
15
  %li= link_to((image('upload') + ' ' + t('clipped_extension.upload_asset')), new_admin_asset_path)
@@ -4,21 +4,21 @@
4
4
  - render_region :main do |main|
5
5
  - main.edit_header do
6
6
  %h1= t("clipped_extension.new_asset")
7
-
8
- - main.edit_form do
9
- - form_for :asset, :url => admin_assets_path, :html => { :method => "post", :multipart => true } do |f|
10
-
11
- = render :partial => "form", :locals => { :f => f }
12
-
13
- %p
14
- %label= t("clipped_extension.choose_file")
15
- = f.file_field :asset, :style => "width: 100%", :multiple => true
16
-
17
- .buttons
18
- = save_model_button(@asset)
19
- = save_model_and_continue_editing_button(@asset)
20
- = t("or")
21
- = link_to t("cancel"), admin_assets_path
22
-
23
- - main.edit_regenerate do
24
- &nbsp;
7
+
8
+ - main.edit_form do
9
+ - form_for :asset, :url => admin_assets_path, :html => { :method => "post", :multipart => true } do |f|
10
+
11
+ = render :partial => "form", :locals => { :f => f }
12
+
13
+ %fieldset
14
+ %label= t("clipped_extension.choose_file")
15
+ = f.file_field :asset, :style => "width: 100%", :multiple => true
16
+
17
+ .buttons
18
+ = save_model_button(@asset)
19
+ = save_model_and_continue_editing_button(@asset)
20
+ = t("or")
21
+ = link_to t("cancel"), admin_assets_path
22
+
23
+ - main.edit_regenerate do
24
+ &nbsp;
@@ -1,7 +1,7 @@
1
1
  = stylesheet_link_tag 'admin/assets'
2
2
 
3
3
  %h1= t("clipped_extension.remove_asset")
4
- %p= t("clipped_extension.confirm_remove_asset")
4
+ %p.warning= t("clipped_extension.confirm_remove_asset")
5
5
 
6
6
  %table.index#assets{:cellpadding => "0", :cellspacing => "0", :border => "0"}
7
7
  %tbody
@@ -1,11 +1,13 @@
1
1
  = stylesheet_link_tag 'admin/assets'
2
2
  = javascript_include_tag 'admin/assets_admin'
3
-
4
- #attachment_list.assets
5
- %ul#attachment_fields{:class => @page.page_attachments.empty? ? 'empty' : ''}
6
- = render :partial => 'admin/page_attachments/attachment', :collection => @page.page_attachments
3
+ #content.fieldset
4
+ #attachment_list.assets
5
+ %ul#attachment_fields{:class => @page.page_attachments.empty? ? 'empty' : ''}
6
+ = render :partial => 'admin/page_attachments/attachment', :collection => @page.page_attachments
7
7
  %p.note
8
- = link_to t('clipped_extension.assets'), '#attach_asset', :class => '', :id => "attach_assets"
8
+ = link_to "path/to/page.html" '#attach_asset', :class => 'button', :id => 'attach_assets' do
9
+ %i.fa.fa-image
10
+ = t('clipped_extension.assets')
9
11
  %span.message
10
12
  - if @page.page_attachments.empty?
11
13
  = t('clipped_extension.no_attached_assets')