noodall-ui 0.3.20 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/Gemfile +8 -3
  2. data/Rakefile +2 -2
  3. data/app/controllers/noodall/admin/nodes_controller.rb +31 -14
  4. data/app/controllers/noodall/admin/versions_controller.rb +13 -0
  5. data/app/controllers/noodall/nodes_controller.rb +11 -1
  6. data/app/views/noodall/admin/nodes/index.html.erb +28 -13
  7. data/app/views/noodall/admin/nodes/show.html.erb +34 -23
  8. data/app/views/noodall/admin/versions/index.html.erb +17 -0
  9. data/config/application.rb +1 -1
  10. data/config/environments/development.rb +2 -5
  11. data/config/environments/test.rb +29 -0
  12. data/demo/initializers/zdragonfly.rb +5 -0
  13. data/demo/models/page_a.rb +1 -1
  14. data/features/choose_node_title.feature +24 -0
  15. data/features/node_filtering.feature +20 -0
  16. data/features/publish_content.feature +1 -1
  17. data/features/save_draft.feature +34 -0
  18. data/features/step_definitions/choose_node_title_steps.rb +7 -0
  19. data/features/step_definitions/cms_node_steps.rb +1 -1
  20. data/features/step_definitions/content_steps.rb +8 -0
  21. data/features/step_definitions/draft_steps.rb +39 -0
  22. data/features/step_definitions/node_steps.rb +4 -1
  23. data/features/step_definitions/pubish_content_steps.rb +3 -3
  24. data/features/step_definitions/web_steps.rb +4 -0
  25. data/features/support/env.rb +3 -1
  26. data/features/support/paths.rb +6 -3
  27. data/lib/noodall/routes.rb +4 -1
  28. data/lib/noodall/ui/version.rb +1 -1
  29. data/noodall-ui.gemspec +2 -2
  30. data/public/images/admin/{draft.png → hidden.png} +0 -0
  31. data/public/images/admin/hide.gif +0 -0
  32. data/public/images/admin/versions.gif +0 -0
  33. data/public/javascripts/admin/application.js +2 -0
  34. data/public/stylesheets/admin/forms.css +32 -2
  35. data/public/stylesheets/admin/layout.css +41 -9
  36. data/public/stylesheets/admin/skin.css +32 -23
  37. data/public/stylesheets/admin/typography.css +3 -0
  38. metadata +112 -76
  39. data/demo/initializers/dragonfly.rb +0 -1
  40. data/lib/noodall/dragonfly.rb +0 -23
  41. data/public/javascripts/tiny_mce/plugins/addvideo/dialog.htm +0 -19
  42. data/public/javascripts/tiny_mce/plugins/addvideo/js/dialog.js +0 -34
  43. data/public/javascripts/tiny_mce/plugins/example/dialog.htm +0 -22
  44. data/public/javascripts/tiny_mce/plugins/example/editor_plugin.js +0 -1
  45. data/public/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +0 -84
  46. data/public/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
  47. data/public/javascripts/tiny_mce/plugins/example/js/dialog.js +0 -19
  48. data/public/javascripts/tiny_mce/plugins/example/langs/en.js +0 -3
  49. data/public/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +0 -3
  50. data/public/stylesheets/sass/forms.scss +0 -7
  51. data/public/stylesheets/sass/ie.scss +0 -12
  52. data/public/stylesheets/sass/ie8.scss +0 -8
  53. data/public/stylesheets/sass/layout.scss +0 -45
  54. data/public/stylesheets/sass/skin.scss +0 -35
  55. data/public/stylesheets/sass/typography.scss +0 -162
@@ -134,12 +134,12 @@ div#content-table {
134
134
  background:#e9e9e9;
135
135
  }
136
136
 
137
- div#content-table table.content {
137
+ table.content {
138
138
  border:1px solid #c2c2c2;
139
139
  background:#fff;
140
140
  }
141
141
 
142
- div#content-table table.content td{
142
+ table.content td{
143
143
  color:#707070;
144
144
  }
145
145
 
@@ -147,8 +147,8 @@ a.edit {
147
147
  color:#106bab;
148
148
  }
149
149
 
150
- div#content-table table.content td a.child-no,
151
- div#content-table table.content td.file a {
150
+ table.content td a.child-no,
151
+ table.content td.file a {
152
152
  color:#707070;
153
153
  }
154
154
 
@@ -157,39 +157,43 @@ a.edit:hover,
157
157
  color:#d4954c;
158
158
  }
159
159
 
160
- div#content-table table.content td a.child-no:hover,
161
- div#content-table table.content td.file a:hover {
160
+ table.content td a.child-no:hover,
161
+ table.content td.file a:hover {
162
162
  color:#83b452;
163
163
  }
164
164
 
165
165
 
166
- div#content-table table.content thead,
167
- div#content-table table.content tfoot,
168
- div#content-table table.content thead a,
169
- div#content-table table.content tfoot a {
166
+ table.content thead,
167
+ table.content tfoot,
168
+ table.content thead a,
169
+ table.content tfoot a {
170
170
  background: #4a4747;
171
171
  color:#fff;
172
172
  }
173
173
 
174
- div#content-table table.content tr.even {
174
+ table.content tr.even {
175
175
  background:#fff6d3;
176
176
  }
177
177
 
178
- div#content-table table.content tbody tr:hover {
179
- background:#e4edff !important;
178
+ table.content tbody tr:hover {
179
+ background:#e4edff;
180
180
  }
181
181
 
182
- div#content-table table.content th {
182
+ table.content tr.active {
183
+ background:#bae8b4!important;
184
+ }
185
+
186
+ table.content th {
183
187
  border-left:1px solid #686666;
184
188
  }
185
189
 
186
- div#content-table table.content td {
190
+ table.content td {
187
191
  border-left:1px solid #D3D3D3 !important;
188
192
  }
189
193
 
190
- div#content-table table.content th:first-child,
191
- div#content-table table.content td:first-child,
192
- div#content-table table.content td.down {
194
+ table.content th:first-child,
195
+ table.content td:first-child,
196
+ table.content td.down {
193
197
  border-left:none !important;
194
198
  }
195
199
 
@@ -393,8 +397,8 @@ span.check {
393
397
  background:url(/images/admin/check.png) no-repeat -1px -4px;
394
398
  }
395
399
 
396
- span.draft {
397
- background:url(/images/admin/draft.png) no-repeat -1px -4px;
400
+ span.hidden {
401
+ background:url(/images/admin/hidden.png) no-repeat -1px -4px;
398
402
  }
399
403
 
400
404
  a.child, a.add{
@@ -413,7 +417,9 @@ a.page_up:hover,
413
417
  a.page_down:hover,
414
418
  a.child:hover,
415
419
  a.add:hover,
416
- a.download:hover {
420
+ a.download:hover,
421
+ a.spam:hover
422
+ {
417
423
  background-position: -1px -36px;
418
424
  }
419
425
 
@@ -632,7 +638,7 @@ a.page_down,
632
638
  a.show,
633
639
  a.add,
634
640
  span.check,
635
- span.draft,
641
+ span.hidden,
636
642
  a.child,
637
643
  .form-save,
638
644
  .form-delete,
@@ -644,7 +650,10 @@ a.child,
644
650
  ul.choices li a,
645
651
  a.download,
646
652
  .edit-item,
647
- a.change {
653
+ a.change,
654
+ a.spam, span.spam,
655
+ .fixed-form input#hide,
656
+ #content form .fixed-form a#versions-button {
648
657
  overflow: hidden;
649
658
  text-align: left;
650
659
  display: block;
@@ -52,6 +52,8 @@ div.flash,
52
52
  #errorExplanation li,
53
53
  div#content-table table.content td,
54
54
  div#content-table table.content th,
55
+ table#versions-list th,
56
+ table#versions-list td,
55
57
  #tags h2,
56
58
  #info h2,
57
59
  #no-tags h2,
@@ -140,6 +142,7 @@ table td.file a,
140
142
  ul.choices li a,
141
143
  #tags a, div.tags a,
142
144
  div#content-table table.content th,
145
+ table#versions-list th,
143
146
  .pagination,
144
147
  #no-tags a,
145
148
  label,
metadata CHANGED
@@ -1,78 +1,111 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: noodall-ui
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.20
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Steve England
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-11-04 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: noodall-core
16
- requirement: &20227360 !ruby/object:Gem::Requirement
17
+
18
+ date: 2011-06-23 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ requirement: &id001 !ruby/object:Gem::Requirement
17
23
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 0.6.0
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 7
28
+ segments:
29
+ - 0
30
+ - 7
31
+ - 2
32
+ version: 0.7.2
22
33
  type: :runtime
34
+ name: noodall-core
23
35
  prerelease: false
24
- version_requirements: *20227360
25
- - !ruby/object:Gem::Dependency
26
- name: thoughtbot-sortable_table
27
- requirement: &20226800 !ruby/object:Gem::Requirement
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ requirement: &id002 !ruby/object:Gem::Requirement
28
39
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
40
+ requirements:
41
+ - - "="
42
+ - !ruby/object:Gem::Version
43
+ hash: 19
44
+ segments:
45
+ - 0
46
+ - 0
47
+ - 6
32
48
  version: 0.0.6
33
49
  type: :runtime
50
+ name: thoughtbot-sortable_table
34
51
  prerelease: false
35
- version_requirements: *20226800
36
- - !ruby/object:Gem::Dependency
37
- name: will_paginate
38
- requirement: &20226220 !ruby/object:Gem::Requirement
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ requirement: &id003 !ruby/object:Gem::Requirement
39
55
  none: false
40
- requirements:
56
+ requirements:
41
57
  - - ~>
42
- - !ruby/object:Gem::Version
58
+ - !ruby/object:Gem::Version
59
+ hash: 270495401
60
+ segments:
61
+ - 3
62
+ - 0
63
+ - pre2
43
64
  version: 3.0.pre2
44
65
  type: :runtime
66
+ name: will_paginate
45
67
  prerelease: false
46
- version_requirements: *20226220
47
- - !ruby/object:Gem::Dependency
48
- name: dynamic_form
49
- requirement: &20225700 !ruby/object:Gem::Requirement
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ requirement: &id004 !ruby/object:Gem::Requirement
50
71
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
55
79
  type: :runtime
80
+ name: dynamic_form
56
81
  prerelease: false
57
- version_requirements: *20225700
58
- - !ruby/object:Gem::Dependency
59
- name: bundler
60
- requirement: &20225180 !ruby/object:Gem::Requirement
82
+ version_requirements: *id004
83
+ - !ruby/object:Gem::Dependency
84
+ requirement: &id005 !ruby/object:Gem::Requirement
61
85
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 23
90
+ segments:
91
+ - 1
92
+ - 0
93
+ - 0
65
94
  version: 1.0.0
66
95
  type: :development
96
+ name: bundler
67
97
  prerelease: false
68
- version_requirements: *20225180
98
+ version_requirements: *id005
69
99
  description: Noodall Rails User Interface Engine. Requires Noodall Core
70
- email:
100
+ email:
71
101
  - steve@wearebeef.co.uk
72
102
  executables: []
103
+
73
104
  extensions: []
105
+
74
106
  extra_rdoc_files: []
75
- files:
107
+
108
+ files:
76
109
  - .document
77
110
  - .gitignore
78
111
  - Gemfile
@@ -84,6 +117,7 @@ files:
84
117
  - app/controllers/noodall/admin/components_controller.rb
85
118
  - app/controllers/noodall/admin/groups_controller.rb
86
119
  - app/controllers/noodall/admin/nodes_controller.rb
120
+ - app/controllers/noodall/admin/versions_controller.rb
87
121
  - app/controllers/noodall/nodes_controller.rb
88
122
  - app/helpers/noodall/admin/assets_helper.rb
89
123
  - app/helpers/noodall/admin/base_helper.rb
@@ -121,6 +155,7 @@ files:
121
155
  - app/views/noodall/admin/nodes/show.html.erb
122
156
  - app/views/noodall/admin/nodes/tree.html.erb
123
157
  - app/views/noodall/admin/nodes/tree.js.erb
158
+ - app/views/noodall/admin/versions/index.html.erb
124
159
  - app/views/noodall/components/_component.erb
125
160
  - app/views/noodall/nodes/search.html.erb
126
161
  - app/views/noodall/nodes/sitemap.html.erb
@@ -136,11 +171,11 @@ files:
136
171
  - config/environments/test.rb
137
172
  - config/locales/en.yml
138
173
  - demo/controllers/application_controller.rb
139
- - demo/initializers/dragonfly.rb
140
174
  - demo/initializers/mongo_mapper.rb
141
175
  - demo/initializers/noodall.rb
142
176
  - demo/initializers/secret_token.rb
143
177
  - demo/initializers/session_store.rb
178
+ - demo/initializers/zdragonfly.rb
144
179
  - demo/models/gallery.rb
145
180
  - demo/models/page_a.rb
146
181
  - demo/models/page_b.rb
@@ -163,22 +198,27 @@ files:
163
198
  - demo/views/nodes/page_b.html.erb
164
199
  - demo/views/nodes/page_c.html.erb
165
200
  - features/change_templates.feature
201
+ - features/choose_node_title.feature
166
202
  - features/content_templates.feature
167
203
  - features/group_access_control.feature
168
204
  - features/manage_assets.feature
169
205
  - features/manage_content_tree.feature
206
+ - features/node_filtering.feature
170
207
  - features/preview.feature
171
208
  - features/promo_component.feature
172
209
  - features/publish_content.feature
173
210
  - features/respond_with_correct_format.feature
211
+ - features/save_draft.feature
174
212
  - features/search.feature
175
213
  - features/sitemap.feature
176
214
  - features/sort_nodes_by_column.feature
177
215
  - features/step_definitions/asset_steps.rb
216
+ - features/step_definitions/choose_node_title_steps.rb
178
217
  - features/step_definitions/cms_node_steps.rb
179
218
  - features/step_definitions/component_steps.rb
180
219
  - features/step_definitions/content_steps.rb
181
220
  - features/step_definitions/date_select_steps.rb
221
+ - features/step_definitions/draft_steps.rb
182
222
  - features/step_definitions/groups_access_steps.rb
183
223
  - features/step_definitions/node_steps.rb
184
224
  - features/step_definitions/preview_steps.rb
@@ -208,7 +248,6 @@ files:
208
248
  - lib/generators/noodall/node/templates/template.html.erb
209
249
  - lib/noodall-ui.rb
210
250
  - lib/noodall/canable.rb
211
- - lib/noodall/dragonfly.rb
212
251
  - lib/noodall/engine.rb
213
252
  - lib/noodall/permalinks.rb
214
253
  - lib/noodall/routes.rb
@@ -241,9 +280,10 @@ files:
241
280
  - public/images/admin/down.png
242
281
  - public/images/admin/download.png
243
282
  - public/images/admin/draft.gif
244
- - public/images/admin/draft.png
245
283
  - public/images/admin/edit.gif
246
284
  - public/images/admin/edit.png
285
+ - public/images/admin/hidden.png
286
+ - public/images/admin/hide.gif
247
287
  - public/images/admin/image.png
248
288
  - public/images/admin/image_choices.png
249
289
  - public/images/admin/image_small.png
@@ -284,6 +324,7 @@ files:
284
324
  - public/images/admin/up.png
285
325
  - public/images/admin/update.gif
286
326
  - public/images/admin/upload.png
327
+ - public/images/admin/versions.gif
287
328
  - public/images/admin/video.png
288
329
  - public/images/admin/view.png
289
330
  - public/images/admin/xls-icon.png
@@ -339,12 +380,10 @@ files:
339
380
  - public/javascripts/tiny_mce/langs/en.js
340
381
  - public/javascripts/tiny_mce/license.txt
341
382
  - public/javascripts/tiny_mce/plugins/addvideo/addvideo.htm
342
- - public/javascripts/tiny_mce/plugins/addvideo/dialog.htm
343
383
  - public/javascripts/tiny_mce/plugins/addvideo/editor_plugin.js
344
384
  - public/javascripts/tiny_mce/plugins/addvideo/editor_plugin_src.js
345
385
  - public/javascripts/tiny_mce/plugins/addvideo/img/youtube.gif
346
386
  - public/javascripts/tiny_mce/plugins/addvideo/js/addvideo.js
347
- - public/javascripts/tiny_mce/plugins/addvideo/js/dialog.js
348
387
  - public/javascripts/tiny_mce/plugins/addvideo/langs/en.js
349
388
  - public/javascripts/tiny_mce/plugins/addvideo/langs/en_dlg.js
350
389
  - public/javascripts/tiny_mce/plugins/advhr/css/advhr.css
@@ -402,13 +441,6 @@ files:
402
441
  - public/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif
403
442
  - public/javascripts/tiny_mce/plugins/emotions/js/emotions.js
404
443
  - public/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js
405
- - public/javascripts/tiny_mce/plugins/example/dialog.htm
406
- - public/javascripts/tiny_mce/plugins/example/editor_plugin.js
407
- - public/javascripts/tiny_mce/plugins/example/editor_plugin_src.js
408
- - public/javascripts/tiny_mce/plugins/example/img/example.gif
409
- - public/javascripts/tiny_mce/plugins/example/js/dialog.js
410
- - public/javascripts/tiny_mce/plugins/example/langs/en.js
411
- - public/javascripts/tiny_mce/plugins/example/langs/en_dlg.js
412
444
  - public/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css
413
445
  - public/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js
414
446
  - public/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js
@@ -627,12 +659,6 @@ files:
627
659
  - public/stylesheets/layout.css
628
660
  - public/stylesheets/plupload.queue.css
629
661
  - public/stylesheets/reset.css
630
- - public/stylesheets/sass/forms.scss
631
- - public/stylesheets/sass/ie.scss
632
- - public/stylesheets/sass/ie8.scss
633
- - public/stylesheets/sass/layout.scss
634
- - public/stylesheets/sass/skin.scss
635
- - public/stylesheets/sass/typography.scss
636
662
  - public/stylesheets/skin.css
637
663
  - public/stylesheets/typography.css
638
664
  - script/cucumber
@@ -644,31 +670,41 @@ files:
644
670
  - spec/files/get_video.flv
645
671
  - spec/files/test.pdf
646
672
  - tmp/.gitignore
673
+ has_rdoc: true
647
674
  homepage: http://github.com/beef/noodall-ui
648
675
  licenses: []
676
+
649
677
  post_install_message:
650
678
  rdoc_options: []
651
- require_paths:
679
+
680
+ require_paths:
652
681
  - lib
653
- required_ruby_version: !ruby/object:Gem::Requirement
682
+ required_ruby_version: !ruby/object:Gem::Requirement
654
683
  none: false
655
- requirements:
656
- - - ! '>='
657
- - !ruby/object:Gem::Version
658
- version: '0'
659
- segments:
684
+ requirements:
685
+ - - ">="
686
+ - !ruby/object:Gem::Version
687
+ hash: 3
688
+ segments:
660
689
  - 0
661
- hash: -23636106504676838
662
- required_rubygems_version: !ruby/object:Gem::Requirement
690
+ version: "0"
691
+ required_rubygems_version: !ruby/object:Gem::Requirement
663
692
  none: false
664
- requirements:
665
- - - ! '>='
666
- - !ruby/object:Gem::Version
693
+ requirements:
694
+ - - ">="
695
+ - !ruby/object:Gem::Version
696
+ hash: 23
697
+ segments:
698
+ - 1
699
+ - 3
700
+ - 6
667
701
  version: 1.3.6
668
702
  requirements: []
703
+
669
704
  rubyforge_project:
670
- rubygems_version: 1.8.6
705
+ rubygems_version: 1.3.7
671
706
  signing_key:
672
707
  specification_version: 3
673
708
  summary: Noodall Rails User Interface
674
709
  test_files: []
710
+