trusty-cms 5.0.6 → 5.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +60 -59
  3. data/app/models/asset.rb +8 -2
  4. data/app/views/admin/assets/_asset_table.html.haml +1 -1
  5. data/app/views/admin/assets/_search.html.haml +1 -1
  6. data/app/views/admin/assets/_search_results.html.haml +2 -2
  7. data/app/views/admin/assets/edit.html.haml +5 -5
  8. data/app/views/admin/assets/index.html.haml +1 -1
  9. data/app/views/admin/configuration/_clipped_show.html.haml +1 -1
  10. data/app/views/admin/pages/_asset_popups.html.haml +5 -5
  11. data/app/views/admin/removed/_assets_bucket.html.haml +2 -2
  12. data/app/views/admin/removed/_assets_container.html.haml +6 -6
  13. data/app/views/admin/removed/_bucket.html.haml +1 -1
  14. data/app/views/admin/removed/_upload_to_page.html.haml +1 -1
  15. data/app/views/admin/sites/_form.haml +2 -2
  16. data/app/views/admin/snippets/edit.html.haml +1 -1
  17. data/app/views/admin/snippets/new.html.haml +1 -1
  18. data/config/database.yml +4 -0
  19. data/coverage/index.html +154 -154
  20. data/lib/generators/extension_controller/templates/view_spec.rb +1 -1
  21. data/lib/generators/generator_base_extension.rb +0 -1
  22. data/lib/generators/instance/instance_generator.rb +1 -1
  23. data/lib/generators/language_extension/language_extension_generator.rb +0 -1
  24. data/lib/generators/language_extension/templates/test_helper.rb +0 -1
  25. data/lib/generators/trusty_cms/trusty_cms_generator.rb +0 -2
  26. data/lib/trusty_cms.rb +1 -1
  27. data/node_modules/ajv/README.md +158 -72
  28. data/node_modules/ajv/dist/ajv.bundle.js +136 -112
  29. data/node_modules/ajv/dist/ajv.min.js +2 -2
  30. data/node_modules/ajv/dist/ajv.min.js.map +1 -1
  31. data/node_modules/ajv/lib/ajv.d.ts +3 -1
  32. data/node_modules/ajv/lib/compile/equal.js +1 -1
  33. data/node_modules/ajv/lib/compile/formats.js +4 -4
  34. data/node_modules/ajv/lib/compile/index.js +1 -1
  35. data/node_modules/ajv/lib/compile/util.js +9 -44
  36. data/node_modules/ajv/lib/data.js +1 -1
  37. data/node_modules/ajv/lib/definition_schema.js +1 -1
  38. data/node_modules/ajv/lib/dot/_limit.jst +9 -0
  39. data/node_modules/ajv/lib/dot/_limitItems.jst +2 -0
  40. data/node_modules/ajv/lib/dot/_limitLength.jst +2 -0
  41. data/node_modules/ajv/lib/dot/_limitProperties.jst +2 -0
  42. data/node_modules/ajv/lib/dot/allOf.jst +0 -2
  43. data/node_modules/ajv/lib/dot/anyOf.jst +0 -2
  44. data/node_modules/ajv/lib/dot/coerce.def +18 -28
  45. data/node_modules/ajv/lib/dot/contains.jst +0 -2
  46. data/node_modules/ajv/lib/dot/definitions.def +9 -7
  47. data/node_modules/ajv/lib/dot/dependencies.jst +1 -2
  48. data/node_modules/ajv/lib/dot/if.jst +0 -2
  49. data/node_modules/ajv/lib/dot/items.jst +0 -2
  50. data/node_modules/ajv/lib/dot/multipleOf.jst +2 -0
  51. data/node_modules/ajv/lib/dot/properties.jst +6 -5
  52. data/node_modules/ajv/lib/dot/propertyNames.jst +0 -2
  53. data/node_modules/ajv/lib/dot/uniqueItems.jst +1 -1
  54. data/node_modules/ajv/lib/dot/validate.jst +3 -9
  55. data/node_modules/ajv/lib/dotjs/_limit.js +6 -0
  56. data/node_modules/ajv/lib/dotjs/_limitItems.js +3 -0
  57. data/node_modules/ajv/lib/dotjs/_limitLength.js +3 -0
  58. data/node_modules/ajv/lib/dotjs/_limitProperties.js +3 -0
  59. data/node_modules/ajv/lib/dotjs/allOf.js +1 -2
  60. data/node_modules/ajv/lib/dotjs/anyOf.js +1 -2
  61. data/node_modules/ajv/lib/dotjs/contains.js +1 -2
  62. data/node_modules/ajv/lib/dotjs/dependencies.js +2 -2
  63. data/node_modules/ajv/lib/dotjs/if.js +2 -3
  64. data/node_modules/ajv/lib/dotjs/items.js +3 -4
  65. data/node_modules/ajv/lib/dotjs/multipleOf.js +3 -0
  66. data/node_modules/ajv/lib/dotjs/not.js +1 -1
  67. data/node_modules/ajv/lib/dotjs/oneOf.js +1 -1
  68. data/node_modules/ajv/lib/dotjs/properties.js +11 -6
  69. data/node_modules/ajv/lib/dotjs/propertyNames.js +1 -2
  70. data/node_modules/ajv/lib/dotjs/required.js +1 -1
  71. data/node_modules/ajv/lib/dotjs/uniqueItems.js +1 -1
  72. data/node_modules/ajv/lib/dotjs/validate.js +13 -25
  73. data/node_modules/ajv/lib/keyword.js +1 -1
  74. data/node_modules/ajv/lib/refs/data.json +1 -1
  75. data/node_modules/ajv/lib/refs/json-schema-secure.json +1 -1
  76. data/node_modules/ajv/package.json +18 -10
  77. data/node_modules/ajv/scripts/info +0 -0
  78. data/node_modules/ajv/scripts/prepare-tests +0 -0
  79. data/node_modules/ajv/scripts/publish-built-version +1 -1
  80. data/node_modules/ajv/scripts/travis-gh-pages +1 -1
  81. data/node_modules/fast-deep-equal/es6/index.d.ts +1 -1
  82. data/node_modules/fast-deep-equal/es6/react.d.ts +1 -1
  83. data/node_modules/fast-deep-equal/package.json +7 -7
  84. data/node_modules/fast-deep-equal/react.d.ts +1 -1
  85. data/node_modules/uri-js/LICENSE +11 -0
  86. data/node_modules/uri-js/README.md +22 -18
  87. data/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -59
  88. data/node_modules/uri-js/dist/es5/uri.all.js +61 -7
  89. data/node_modules/uri-js/dist/es5/uri.all.js.map +1 -1
  90. data/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -59
  91. data/node_modules/uri-js/dist/es5/uri.all.min.js +2 -2
  92. data/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -1
  93. data/node_modules/uri-js/dist/esnext/index.d.ts +1 -1
  94. data/node_modules/uri-js/dist/esnext/index.js +16 -12
  95. data/node_modules/uri-js/dist/esnext/index.js.map +1 -1
  96. data/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -3
  97. data/node_modules/uri-js/dist/esnext/regexps-iri.js +2 -2
  98. data/node_modules/uri-js/dist/esnext/regexps-iri.js.map +0 -0
  99. data/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -4
  100. data/node_modules/uri-js/dist/esnext/regexps-uri.js +41 -41
  101. data/node_modules/uri-js/dist/esnext/regexps-uri.js.map +0 -0
  102. data/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -3
  103. data/node_modules/uri-js/dist/esnext/schemes/http.js +27 -26
  104. data/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -1
  105. data/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -3
  106. data/node_modules/uri-js/dist/esnext/schemes/https.js +8 -8
  107. data/node_modules/uri-js/dist/esnext/schemes/https.js.map +0 -0
  108. data/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -12
  109. data/node_modules/uri-js/dist/esnext/schemes/mailto.js +0 -0
  110. data/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +0 -0
  111. data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -7
  112. data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +22 -22
  113. data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +0 -0
  114. data/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -10
  115. data/node_modules/uri-js/dist/esnext/schemes/urn.js +48 -48
  116. data/node_modules/uri-js/dist/esnext/schemes/urn.js.map +0 -0
  117. data/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
  118. data/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
  119. data/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
  120. data/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
  121. data/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
  122. data/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
  123. data/node_modules/uri-js/dist/esnext/uri.d.ts +59 -59
  124. data/node_modules/uri-js/dist/esnext/uri.js +2 -2
  125. data/node_modules/uri-js/dist/esnext/uri.js.map +1 -1
  126. data/node_modules/uri-js/dist/esnext/util.d.ts +6 -6
  127. data/node_modules/uri-js/dist/esnext/util.js +35 -35
  128. data/node_modules/uri-js/dist/esnext/util.js.map +0 -0
  129. data/node_modules/uri-js/package.json +19 -7
  130. data/node_modules/uri-js/yarn.lock +1271 -615
  131. data/spec/dummy/log/test.log +635 -0
  132. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  133. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -0
  134. data/trusty_cms.gemspec +2 -1
  135. data/yarn.lock +9 -9
  136. metadata +48 -57
  137. data/node_modules/uri-js/bower.json +0 -47
  138. data/node_modules/uri-js/rollup.config.js +0 -32
  139. data/node_modules/uri-js/src/index.ts +0 -18
  140. data/node_modules/uri-js/src/punycode.d.ts +0 -24
  141. data/node_modules/uri-js/src/regexps-iri.ts +0 -4
  142. data/node_modules/uri-js/src/regexps-uri.ts +0 -89
  143. data/node_modules/uri-js/src/schemes/http.ts +0 -36
  144. data/node_modules/uri-js/src/schemes/https.ts +0 -11
  145. data/node_modules/uri-js/src/schemes/mailto.ts +0 -182
  146. data/node_modules/uri-js/src/schemes/urn-uuid.ts +0 -36
  147. data/node_modules/uri-js/src/schemes/urn.ts +0 -69
  148. data/node_modules/uri-js/src/uri.ts +0 -556
  149. data/node_modules/uri-js/src/util.ts +0 -40
  150. data/node_modules/uri-js/tests/qunit.css +0 -118
  151. data/node_modules/uri-js/tests/qunit.js +0 -1042
  152. data/node_modules/uri-js/tests/test-es5-min.html +0 -17
  153. data/node_modules/uri-js/tests/test-es5.html +0 -17
  154. data/node_modules/uri-js/tests/tests.js +0 -774
  155. data/node_modules/uri-js/tsconfig.json +0 -20
  156. data/spec/dummy/log/development.log +0 -456
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18961c722bc28e643661f536be22bf286898e3c1992cd70dfdaf389828e05991
4
- data.tar.gz: 24fcd6e768d804658d6a5be29f3ac9b637caf54610c564021865d592507a6c23
3
+ metadata.gz: 2fc624969ff70829f656ee9b206b64c2748da39a5a5e4269e4c7487d4d83745e
4
+ data.tar.gz: b0a531ee97199d204b90c8b2ec819e51de205df2cbf5a9ad7d822db5d594395a
5
5
  SHA512:
6
- metadata.gz: 359cb791d303fd26d99fc07591597ed7696f115a7f01fd9066407713083fd412e63feaebccfcd585dc668b0eabef16a41580c54663ae4e9007fa8eb27cf993a4
7
- data.tar.gz: 2edfbce7ddd9b83b912110c2ca94ea985aff8562c2ce5dea59e8aaab2d1d2ef2bee66c91e11a064f5815464255eab0a16bd82127c200a6656b68552388fd781d
6
+ metadata.gz: 0d33321bc5f5e477b5dac327774f3806505df3f247dca235beb0d5cebdd56c72d592b8f52439b49fb7e65f0b5600bc719bff6476137b043b9448c3ea6a275f84
7
+ data.tar.gz: 5e7b09b40558f82de3d61df8ea41c4a77a4d2f45d47afaacf982226ee801c582c26d2ac9238d5713ded572c7580f4cb98677cf478e5364247c0450355f812afb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (5.0.6)
4
+ trusty-cms (5.0.7)
5
5
  RedCloth (= 4.3.2)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.1.0)
@@ -35,62 +35,62 @@ GEM
35
35
  remote: https://rubygems.org/
36
36
  specs:
37
37
  RedCloth (4.3.2)
38
- actioncable (6.1.4.4)
39
- actionpack (= 6.1.4.4)
40
- activesupport (= 6.1.4.4)
38
+ actioncable (6.1.4.6)
39
+ actionpack (= 6.1.4.6)
40
+ activesupport (= 6.1.4.6)
41
41
  nio4r (~> 2.0)
42
42
  websocket-driver (>= 0.6.1)
43
- actionmailbox (6.1.4.4)
44
- actionpack (= 6.1.4.4)
45
- activejob (= 6.1.4.4)
46
- activerecord (= 6.1.4.4)
47
- activestorage (= 6.1.4.4)
48
- activesupport (= 6.1.4.4)
43
+ actionmailbox (6.1.4.6)
44
+ actionpack (= 6.1.4.6)
45
+ activejob (= 6.1.4.6)
46
+ activerecord (= 6.1.4.6)
47
+ activestorage (= 6.1.4.6)
48
+ activesupport (= 6.1.4.6)
49
49
  mail (>= 2.7.1)
50
- actionmailer (6.1.4.4)
51
- actionpack (= 6.1.4.4)
52
- actionview (= 6.1.4.4)
53
- activejob (= 6.1.4.4)
54
- activesupport (= 6.1.4.4)
50
+ actionmailer (6.1.4.6)
51
+ actionpack (= 6.1.4.6)
52
+ actionview (= 6.1.4.6)
53
+ activejob (= 6.1.4.6)
54
+ activesupport (= 6.1.4.6)
55
55
  mail (~> 2.5, >= 2.5.4)
56
56
  rails-dom-testing (~> 2.0)
57
- actionpack (6.1.4.4)
58
- actionview (= 6.1.4.4)
59
- activesupport (= 6.1.4.4)
57
+ actionpack (6.1.4.6)
58
+ actionview (= 6.1.4.6)
59
+ activesupport (= 6.1.4.6)
60
60
  rack (~> 2.0, >= 2.0.9)
61
61
  rack-test (>= 0.6.3)
62
62
  rails-dom-testing (~> 2.0)
63
63
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
64
- actiontext (6.1.4.4)
65
- actionpack (= 6.1.4.4)
66
- activerecord (= 6.1.4.4)
67
- activestorage (= 6.1.4.4)
68
- activesupport (= 6.1.4.4)
64
+ actiontext (6.1.4.6)
65
+ actionpack (= 6.1.4.6)
66
+ activerecord (= 6.1.4.6)
67
+ activestorage (= 6.1.4.6)
68
+ activesupport (= 6.1.4.6)
69
69
  nokogiri (>= 1.8.5)
70
- actionview (6.1.4.4)
71
- activesupport (= 6.1.4.4)
70
+ actionview (6.1.4.6)
71
+ activesupport (= 6.1.4.6)
72
72
  builder (~> 3.1)
73
73
  erubi (~> 1.4)
74
74
  rails-dom-testing (~> 2.0)
75
75
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
76
- activejob (6.1.4.4)
77
- activesupport (= 6.1.4.4)
76
+ activejob (6.1.4.6)
77
+ activesupport (= 6.1.4.6)
78
78
  globalid (>= 0.3.6)
79
- activemodel (6.1.4.4)
80
- activesupport (= 6.1.4.4)
81
- activerecord (6.1.4.4)
82
- activemodel (= 6.1.4.4)
83
- activesupport (= 6.1.4.4)
84
- activestorage (6.1.4.4)
85
- actionpack (= 6.1.4.4)
86
- activejob (= 6.1.4.4)
87
- activerecord (= 6.1.4.4)
88
- activesupport (= 6.1.4.4)
79
+ activemodel (6.1.4.6)
80
+ activesupport (= 6.1.4.6)
81
+ activerecord (6.1.4.6)
82
+ activemodel (= 6.1.4.6)
83
+ activesupport (= 6.1.4.6)
84
+ activestorage (6.1.4.6)
85
+ actionpack (= 6.1.4.6)
86
+ activejob (= 6.1.4.6)
87
+ activerecord (= 6.1.4.6)
88
+ activesupport (= 6.1.4.6)
89
89
  marcel (~> 1.0.0)
90
90
  mini_mime (>= 1.1.0)
91
91
  activestorage-validator (0.1.5)
92
92
  rails (>= 5.2.0)
93
- activesupport (6.1.4.4)
93
+ activesupport (6.1.4.6)
94
94
  concurrent-ruby (~> 1.0, >= 1.0.2)
95
95
  i18n (>= 1.6, < 2)
96
96
  minitest (>= 5.1)
@@ -173,7 +173,7 @@ GEM
173
173
  multi_xml (>= 0.5.2)
174
174
  i18n (1.9.1)
175
175
  concurrent-ruby (~> 1.0)
176
- image_processing (1.12.1)
176
+ image_processing (1.12.2)
177
177
  mini_magick (>= 4.9.5, < 5)
178
178
  ruby-vips (>= 2.0.17, < 3)
179
179
  json (2.6.1)
@@ -186,7 +186,8 @@ GEM
186
186
  addressable (~> 2.7)
187
187
  libv8-node (16.10.0.0-x86_64-darwin)
188
188
  libv8-node (16.10.0.0-x86_64-linux)
189
- loofah (2.13.0)
189
+ libv8-node (16.10.0.0-x86_64-linux-musl)
190
+ loofah (2.14.0)
190
191
  crass (~> 1.0.2)
191
192
  nokogiri (>= 1.5.9)
192
193
  mail (2.7.1)
@@ -230,20 +231,20 @@ GEM
230
231
  rack-test (1.1.0)
231
232
  rack (>= 1.0, < 3)
232
233
  radius (0.7.5)
233
- rails (6.1.4.4)
234
- actioncable (= 6.1.4.4)
235
- actionmailbox (= 6.1.4.4)
236
- actionmailer (= 6.1.4.4)
237
- actionpack (= 6.1.4.4)
238
- actiontext (= 6.1.4.4)
239
- actionview (= 6.1.4.4)
240
- activejob (= 6.1.4.4)
241
- activemodel (= 6.1.4.4)
242
- activerecord (= 6.1.4.4)
243
- activestorage (= 6.1.4.4)
244
- activesupport (= 6.1.4.4)
234
+ rails (6.1.4.6)
235
+ actioncable (= 6.1.4.6)
236
+ actionmailbox (= 6.1.4.6)
237
+ actionmailer (= 6.1.4.6)
238
+ actionpack (= 6.1.4.6)
239
+ actiontext (= 6.1.4.6)
240
+ actionview (= 6.1.4.6)
241
+ activejob (= 6.1.4.6)
242
+ activemodel (= 6.1.4.6)
243
+ activerecord (= 6.1.4.6)
244
+ activestorage (= 6.1.4.6)
245
+ activesupport (= 6.1.4.6)
245
246
  bundler (>= 1.15.0)
246
- railties (= 6.1.4.4)
247
+ railties (= 6.1.4.6)
247
248
  sprockets-rails (>= 2.0.0)
248
249
  rails-dom-testing (2.0.3)
249
250
  activesupport (>= 4.2.0)
@@ -252,9 +253,9 @@ GEM
252
253
  loofah (~> 2.3)
253
254
  rails-observers (0.1.5)
254
255
  activemodel (>= 4.0)
255
- railties (6.1.4.4)
256
- actionpack (= 6.1.4.4)
257
- activesupport (= 6.1.4.4)
256
+ railties (6.1.4.6)
257
+ actionpack (= 6.1.4.6)
258
+ activesupport (= 6.1.4.6)
258
259
  method_source
259
260
  rake (>= 0.13)
260
261
  thor (~> 1.0)
@@ -265,12 +266,12 @@ GEM
265
266
  responders (3.0.1)
266
267
  actionpack (>= 5.0)
267
268
  railties (>= 5.0)
268
- roadie (4.0.0)
269
+ roadie (5.0.0)
269
270
  css_parser (~> 1.4)
270
271
  nokogiri (~> 1.8)
271
- roadie-rails (2.3.0)
272
+ roadie-rails (3.0.0)
272
273
  railties (>= 5.1, < 7.1)
273
- roadie (>= 3.1, < 5.0)
274
+ roadie (~> 5.0)
274
275
  rspec-core (3.10.2)
275
276
  rspec-support (~> 3.10.0)
276
277
  rspec-expectations (3.10.2)
data/app/models/asset.rb CHANGED
@@ -45,16 +45,20 @@ class Asset < ActiveRecord::Base
45
45
  def asset_type
46
46
  AssetType.for(asset)
47
47
  end
48
+
48
49
  delegate :paperclip_processors, :paperclip_styles, :active_storage_styles, :style_dimensions, :style_format,
49
50
  to: :asset_type
50
51
 
51
52
  def thumbnail(style_name = 'original')
52
- return asset.url if style_name.to_s == 'original' || asset.key.include?('culturaldistrict')
53
+ return asset.url if style_name.to_s == 'original' || render_original(style_name)
53
54
  return asset_variant(style_name.to_s).processed.url if asset.variable?
54
55
 
55
56
  asset_type.icon(style_name.to_s)
56
57
  end
57
58
 
59
+ def render_original(style_name)
60
+ style_name.to_s == 'original' && asset.key.include?('culturaldistrict')
61
+ end
58
62
 
59
63
  def asset_variant(style_name)
60
64
  case style_name
@@ -213,7 +217,9 @@ class Asset < ActiveRecord::Base
213
217
 
214
218
  # returns the return value of class << self block, which is self (as defined within that block)
215
219
  def self.eigenclass
216
- class << self; self; end
220
+ class << self
221
+ self;
222
+ end
217
223
  end
218
224
 
219
225
  # for backwards compatibility
@@ -25,6 +25,6 @@
25
25
  - else
26
26
  %li= link_to t('clipped_extension.edit'), admin_asset_path(asset), :class => 'edit'
27
27
  %li= link_to t("clipped_extension.remove"), remove_admin_asset_path(asset), :class => "delete"
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 }))
@@ -12,7 +12,7 @@
12
12
  .asset_search
13
13
  %i.fas.fa-search
14
14
  %input{:type=>"search", :id => 'filesearchforminput', :class=>"search", :name=>"search", :value=>h(params[:search]), :placeholder=>"Search", :results=>0, :size=>30}
15
-
15
+
16
16
  #type_boxes{:style => "display: none"}
17
17
  - AssetType.all.each do |type|
18
18
  = check_box_tag 'filter[]', type.name.to_s, false, :id => "#{type.name}-check", :class => 'selective'
@@ -1,6 +1,6 @@
1
1
  %ul#search_list
2
2
  - unless @assets.empty?
3
- - @assets.each do |asset|
3
+ - @assets.each do |asset|
4
4
  =# render :partial => 'asset', :locals => { :asset => asset, :page => @page }
5
5
  = render :partial => 'admin/assets/asset', :locals => { :asset_url => asset.asset.url, :asset_id => asset.id, :asset_type => 'image', :asset_title => asset.title, :asset_thumbnail => asset.thumbnail(:thumbnail), :page => @page }
6
6
 
@@ -8,7 +8,7 @@
8
8
  %li
9
9
  %p.note
10
10
  = t("clipped_extension.no_assets_found")
11
-
11
+
12
12
  %script
13
13
  Asset.MakeDroppables();
14
14
  Asset.MakeDraggables();
@@ -1,16 +1,16 @@
1
1
  = stylesheet_link_tag 'admin/assets'
2
2
  = javascript_include_tag 'admin/custom_file_upload'
3
- = render_region :top
3
+ = render_region :top
4
4
 
5
5
  - render_region :main do |main|
6
6
  - main.edit_header do
7
7
  %h1= t("clipped_extension.asset_edit_title")
8
-
8
+
9
9
  - main.edit_form do
10
10
  - form_for :asset, :url => admin_asset_path(@asset), :html => { :method => "put", :multipart => true } do |f|
11
11
  .form_area
12
12
  = render :partial => "form", :locals => { :f => f }
13
-
13
+
14
14
  %div.content
15
15
  %fieldset
16
16
  %label.filename
@@ -25,13 +25,13 @@
25
25
  = image_tag @asset.thumbnail("normal"), :class => 'preview'
26
26
 
27
27
  = updated_stamp @asset
28
-
28
+
29
29
  %fieldset.upload
30
30
  %label.custom-file-upload.upload
31
31
  = t("clipped_extension.replace_file")
32
32
  = f.file_field :asset, :style => "width: 100%"
33
33
  %span#file-chosen No file chosen
34
-
34
+
35
35
  .buttons
36
36
  = save_model_button(@asset)
37
37
  = save_model_and_continue_editing_button(@asset)
@@ -9,7 +9,7 @@
9
9
  #assets_table.assets
10
10
  = render :partial => 'asset_table', :locals => { assets: @assets, with_pagination: true }
11
11
  %p{style: 'clear: both; height: 2em'} &nbsp;
12
-
12
+
13
13
  - render_region :bottom do |bottom|
14
14
  #actions
15
15
  = link_to new_admin_asset_path, class: 'button' do
@@ -1,4 +1,4 @@
1
- %h4
1
+ %h4
2
2
  = t('clipped_extension.assets')
3
3
  %p.ruled
4
4
  = show_config 'assets.max_asset_size'
@@ -2,7 +2,7 @@
2
2
  - popups.upload_asset do
3
3
  #upload_asset.popup{:style => 'display: none; width: 28em'}
4
4
  #upload_asset_busy.busy{:style => 'display: none'}= image('spinner.gif', :alt => '')
5
-
5
+
6
6
  .popup_title= t('clipped_extension.upload_asset')
7
7
 
8
8
  = form_for([:admin, Asset.new], :html => {:method => 'post', :multipart => true, :class => 'upload_asset'}) do |f|
@@ -20,16 +20,16 @@
20
20
 
21
21
  - popups.attach_asset do
22
22
  #attach_asset.popup{:style=>'display: none;'}
23
-
23
+
24
24
  .popup_title= t('clipped_extension.find_assets')
25
-
25
+
26
26
  .toolbar
27
27
  = render :partial => 'admin/assets/search'
28
-
28
+
29
29
  #assets_table.assets.viewport
30
30
  - assets = Asset.all.paginate(:per_page => 20, page: params[:p])
31
31
  = render :partial => 'admin/assets/asset_table', :locals => {:assets => assets, :with_pagination => true}
32
-
32
+
33
33
  .busy{:style => 'display: none'}= image('spinner.gif', :alt => '')
34
34
  .buttons
35
35
  %a.cancel.close_popup{:href=>'#'}= t('close')
@@ -1,8 +1,8 @@
1
1
  #asset-bucket{ :style => 'display: none' }
2
2
  = render :partial => '/admin/assets/assets_container'
3
-
3
+
4
4
  %p.note
5
5
  = automatic_size_descriptions
6
6
  = t('clipped_extension.images_automatically_created')
7
- #close-link
7
+ #close-link
8
8
  = link_to t('close'), '#'
@@ -4,7 +4,7 @@
4
4
  #assets-container
5
5
  #asset-tabs
6
6
  - render_region :asset_tabs do |asset_tabs|
7
- - if @page && !@page.new_record?
7
+ - if @page && !@page.new_record?
8
8
  - asset_tabs.attachment_tab do
9
9
  %a.asset-tab{ :href => '#page-attachments', :id => 'tab_page-attachments' }
10
10
  = t('clipped_extension.attached_assets')
@@ -14,25 +14,25 @@
14
14
  - asset_tabs.bucket_tab do
15
15
  %a.asset-tab{ :href => '#bucket', :id => 'tab_bucket' }
16
16
  = t('clipped_extension.bucket')
17
- - asset_tabs.search_tab do
17
+ - asset_tabs.search_tab do
18
18
  %a.asset-tab{ :href => '#search-assets' }
19
19
  = t('clipped_extension.search')
20
20
  - else
21
21
  - asset_tabs.bucket_tab do
22
22
  %a.asset-tab.here{ :href => '#' }
23
23
  = t('clipped_extension.bucket')
24
- - if @page && !@page.new_record?
24
+ - if @page && !@page.new_record?
25
25
  - render_region :asset_panes do |asset_panes|
26
26
 
27
- - asset_panes.page_attachments do
27
+ - asset_panes.page_attachments do
28
28
  #page-attachments.pane
29
29
  %p
30
- %span.note
30
+ %span.note
31
31
  != t('clipped_extension.asset_note')
32
32
  %ul#attachments
33
33
  = render :partial => 'admin/assets/page_assets'
34
34
  .clear
35
-
35
+
36
36
  - asset_panes.upload do
37
37
  #upload_assets.pane
38
38
  %p
@@ -1,6 +1,6 @@
1
1
  %ul#bucket_list
2
2
  - if session[:bucket]
3
- - session[:bucket].each do |url, info|
3
+ - session[:bucket].each do |url, info|
4
4
  = render :partial => 'admin/assets/bucket_asset', :locals => { :asset_url => url, :asset_id => info[:id], :asset_type => info[:type], :asset_title => info[:title], :asset_thumbnail =>info[:thumbnail], :page => @page }
5
5
  - else
6
6
  %li
@@ -8,5 +8,5 @@
8
8
  .upload-buttons
9
9
  = form.submit t('clipped_extension.save_and_upload'), :class => 'button'
10
10
  %div.spinner
11
-
11
+
12
12
  %iframe{:id => 'ulframe', :name => 'ulframe', :src => 'about:blank'}
@@ -39,10 +39,10 @@
39
39
  A new homepage will be created automatically if none is specified.
40
40
  - else
41
41
  If you change the site homepage ID, be sure it is to a page with no parents.
42
-
42
+
43
43
  - render_region :form_bottom do |form_bottom|
44
44
  - form_bottom.edit_timestamp do
45
- = updated_stamp @site
45
+ = updated_stamp @site
46
46
  - form_bottom.edit_buttons do
47
47
  .buttons
48
48
  = save_model_button(@site)
@@ -2,7 +2,7 @@
2
2
 
3
3
  - render_region :main do |main|
4
4
  - main.edit_header do
5
- %h1= t('edit_snippet')
5
+ %h1= t('edit_snippet')
6
6
  - main.edit_form do
7
7
  = render :partial => 'form'
8
8
  - main.edit_popups do
@@ -1,6 +1,6 @@
1
1
  - render_region :main do |main|
2
2
  - main.edit_header do
3
- %h1= t('new_snippet')
3
+ %h1= t('new_snippet')
4
4
  - main.edit_form do
5
5
  = render :partial => 'form'
6
6
  - main.edit_popups do
@@ -0,0 +1,4 @@
1
+ test:
2
+ adapter: mysql2
3
+ database: trusty_cms_test
4
+ username: