locomotive_cms 2.1.4 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/Gemfile +1 -5
  2. data/app/assets/images/locomotive/icons/flags/zh-CN.png +0 -0
  3. data/app/assets/javascripts/aloha/plugins/custom/inputcontrol/css/inputcontrol.css +3 -0
  4. data/app/assets/javascripts/aloha/plugins/custom/inputcontrol/lib/inputcontrol-plugin.js +94 -0
  5. data/app/assets/javascripts/aloha/plugins/custom/inputcontrol/package.json +1 -0
  6. data/app/assets/javascripts/locomotive.js +2 -1
  7. data/app/assets/javascripts/locomotive/models/content_type.js.coffee +6 -2
  8. data/app/assets/javascripts/locomotive/models/page.js.coffee +1 -1
  9. data/app/assets/javascripts/locomotive/models/site.js.coffee +1 -1
  10. data/app/assets/javascripts/locomotive/utils/aloha_settings.js.coffee +17 -7
  11. data/app/assets/javascripts/locomotive/utils/tinymce_settings.js.coffee +6 -0
  12. data/app/assets/javascripts/locomotive/views/application_view.js.coffee +13 -2
  13. data/app/assets/javascripts/locomotive/views/content_entries/_form_view.js.coffee +19 -2
  14. data/app/assets/javascripts/locomotive/views/content_entries/_popup_form_view.js.coffee +1 -1
  15. data/app/assets/javascripts/locomotive/views/content_entries/index_view.js.coffee +2 -2
  16. data/app/assets/javascripts/locomotive/views/content_types/_form_view.js.coffee +2 -1
  17. data/app/assets/javascripts/locomotive/views/content_types/custom_field_entry_view.js.coffee +3 -0
  18. data/app/assets/javascripts/locomotive/views/current_site/edit_view.js.coffee +2 -1
  19. data/app/assets/javascripts/locomotive/views/editable_elements/edit_all_view.js.coffee +3 -6
  20. data/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee +47 -0
  21. data/app/assets/javascripts/locomotive/views/inline_editor/toolbar_view.js.coffee +1 -1
  22. data/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee +2 -1
  23. data/app/assets/javascripts/locomotive/views/pages/list_view.js.coffee +2 -2
  24. data/app/assets/javascripts/locomotive/views/shared/fields/belongs_to_view.js.coffee +32 -0
  25. data/app/assets/javascripts/locomotive/views/shared/fields/has_many_view.js.coffee +2 -2
  26. data/app/assets/javascripts/locomotive/views/shared/fields/many_to_many_view.js.coffee +2 -2
  27. data/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee +2 -0
  28. data/app/assets/javascripts/locomotive/views/snippets/_form_view.js.coffee +2 -1
  29. data/app/assets/javascripts/locomotive/views/theme_assets/_form_view.js.coffee +2 -1
  30. data/app/assets/javascripts/locomotive/views/theme_assets/index_view.js.coffee +0 -1
  31. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/es.js +1 -0
  32. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/et.js +1 -0
  33. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/it.js +1 -0
  34. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/ja.js +1 -0
  35. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/nb.js +1 -0
  36. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/nl.js +1 -0
  37. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/no.js +1 -0
  38. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/pl.js +1 -0
  39. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/pt.js +1 -0
  40. data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/zh-cn.js +1 -0
  41. data/app/assets/stylesheets/locomotive.css +1 -0
  42. data/app/assets/stylesheets/locomotive/backoffice/codemirror_changes.css.scss +2 -0
  43. data/app/assets/stylesheets/locomotive/backoffice/formtastic_changes.css.scss +17 -3
  44. data/app/controllers/locomotive/content_entries_controller.rb +6 -2
  45. data/app/controllers/locomotive/public/content_entries_controller.rb +6 -0
  46. data/app/helpers/locomotive/base_helper.rb +8 -0
  47. data/app/helpers/locomotive/sites_helper.rb +6 -0
  48. data/app/models/locomotive/content_entry.rb +35 -5
  49. data/app/models/locomotive/content_type.rb +26 -8
  50. data/app/models/locomotive/editable_element.rb +15 -1
  51. data/app/models/locomotive/editable_file.rb +0 -2
  52. data/app/models/locomotive/editable_long_text.rb +3 -3
  53. data/app/models/locomotive/editable_short_text.rb +3 -64
  54. data/app/models/locomotive/editable_text.rb +84 -0
  55. data/app/models/locomotive/extensions/content_entry/csv.rb +7 -3
  56. data/app/models/locomotive/extensions/page/editable_elements.rb +3 -5
  57. data/app/models/locomotive/extensions/site/locales.rb +20 -0
  58. data/app/models/locomotive/extensions/site/timezone.rb +35 -0
  59. data/app/models/locomotive/site.rb +20 -16
  60. data/app/models/locomotive/theme_asset.rb +1 -1
  61. data/app/presenters/locomotive/content_entry_presenter.rb +1 -1
  62. data/app/presenters/locomotive/{editable_short_text_presenter.rb → editable_text_presenter.rb} +14 -2
  63. data/app/views/locomotive/current_site/_form.html.haml +1 -0
  64. data/app/views/locomotive/custom_fields/types/_belongs_to.html.haml +6 -5
  65. data/app/views/locomotive/pages/_editable_elements.html.haml +1 -1
  66. data/app/views/locomotive/shared/_head.html.haml +2 -0
  67. data/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml +1 -0
  68. data/config/locales/admin_ui.de.yml +1 -0
  69. data/config/locales/admin_ui.en.yml +1 -0
  70. data/config/locales/admin_ui.et.yml +1 -0
  71. data/config/locales/admin_ui.fr.yml +1 -0
  72. data/config/locales/admin_ui.ja.yml +1 -0
  73. data/config/locales/admin_ui.nb.yml +2 -0
  74. data/config/locales/admin_ui.pl.yml +1 -0
  75. data/config/locales/admin_ui.pt-BR.yml +2 -1
  76. data/config/locales/admin_ui.ru.yml +24 -4
  77. data/config/locales/admin_ui.zh-CN.yml +347 -0
  78. data/config/locales/carrierwave.zh-CN.yml +4 -0
  79. data/config/locales/default.zh-CN.yml +116 -0
  80. data/config/locales/devise.nb.yml +1 -0
  81. data/config/locales/devise.zh-CN.yml +64 -0
  82. data/config/locales/flash.zh-CN.yml +115 -0
  83. data/config/locales/formtastic.en.yml +1 -0
  84. data/config/locales/formtastic.ru.yml +4 -1
  85. data/config/locales/formtastic.zh-CN.yml +112 -0
  86. data/features/backoffice/content_types/localized.feature +63 -0
  87. data/features/backoffice/pages.feature +3 -1
  88. data/features/backoffice/site.feature +7 -0
  89. data/features/public/contact_form.feature +11 -0
  90. data/features/public/content_entries.feature +13 -0
  91. data/features/public/pages.feature +24 -0
  92. data/features/step_definitions/page_steps.rb +6 -0
  93. data/features/step_definitions/web_steps.rb +24 -7
  94. data/lib/generators/locomotive/install/templates/locomotive.rb +2 -2
  95. data/lib/generators/locomotive/install/templates/mongoid.yml +23 -29
  96. data/lib/locomotive.rb +1 -4
  97. data/lib/locomotive/configuration.rb +3 -3
  98. data/lib/locomotive/dependencies.rb +1 -0
  99. data/lib/locomotive/engine.rb +2 -1
  100. data/lib/locomotive/liquid/drops/page.rb +1 -1
  101. data/lib/locomotive/liquid/filters/date.rb +3 -1
  102. data/lib/locomotive/liquid/filters/misc.rb +4 -0
  103. data/lib/locomotive/liquid/filters/text.rb +4 -0
  104. data/lib/locomotive/liquid/tags/editable.rb +1 -2
  105. data/lib/locomotive/liquid/tags/editable/text.rb +79 -0
  106. data/lib/locomotive/liquid/tags/inline_editor.rb +1 -1
  107. data/lib/locomotive/liquid/tags/link_to.rb +72 -13
  108. data/lib/locomotive/liquid/tags/with_scope.rb +3 -3
  109. data/lib/locomotive/middlewares.rb +0 -1
  110. data/lib/locomotive/mongoid/patches.rb +0 -16
  111. data/lib/locomotive/render.rb +1 -1
  112. data/lib/locomotive/version.rb +1 -1
  113. data/lib/tasks/locomotive.rake +15 -9
  114. data/mongodb/migrate/20130326201349_rename_entry_to_content_entry.rb +1 -1
  115. data/mongodb/migrate/20130621135025_create_editable_texts.rb +42 -0
  116. data/mongodb/migrate/20130627101548_localize_slugs_of_content_entries.rb +43 -0
  117. data/spec/dummy/config/initializers/locomotive.rb +1 -1
  118. data/spec/dummy/config/initializers/session_store.rb +1 -1
  119. data/spec/lib/locomotive/liquid/drops/page_spec.rb +1 -1
  120. data/spec/lib/locomotive/liquid/filters/misc_spec.rb +26 -0
  121. data/spec/lib/locomotive/liquid/tags/editable/text_spec.rb +85 -0
  122. data/spec/lib/locomotive/liquid/tags/link_to_spec.rb +111 -0
  123. data/spec/lib/locomotive/liquid/tags/with_scope_spec.rb +6 -0
  124. data/spec/models/locomotive/content_entry_spec.rb +27 -7
  125. data/spec/models/locomotive/{editable_short_text_spec.rb → editable_text_spec.rb} +53 -8
  126. data/spec/models/locomotive/extensions/page/editable_elements_spec.rb +6 -6
  127. data/spec/models/locomotive/site_spec.rb +52 -32
  128. data/vendor/assets/images/select2-spinner.gif +0 -0
  129. data/vendor/assets/images/select2.png +0 -0
  130. data/vendor/assets/images/select2x2.png +0 -0
  131. data/vendor/assets/javascripts/locomotive/liquid_mode.js +1 -1
  132. data/vendor/assets/javascripts/select2/select2.js +3054 -0
  133. data/vendor/assets/stylesheets/select2/select2.css.scss +652 -0
  134. metadata +77 -33
  135. data/app/assets/javascripts/locomotive/views/editable_elements/long_text_view.js.coffee +0 -36
  136. data/app/assets/javascripts/locomotive/views/editable_elements/short_text_view.js.coffee +0 -22
  137. data/app/presenters/locomotive/editable_long_text_presenter.rb +0 -5
  138. data/lib/locomotive/liquid/tags/editable/long_text.rb +0 -33
  139. data/lib/locomotive/liquid/tags/editable/short_text.rb +0 -41
  140. data/lib/locomotive/middlewares/fonts.rb +0 -42
  141. data/lib/locomotive/session_store.rb +0 -64
  142. data/spec/lib/locomotive/liquid/tags/editable/short_text_spec.rb +0 -46
  143. data/spec/models/locomotive/editable_long_text_spec.rb +0 -50
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotive_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-17 00:00:00.000000000 Z
12
+ date: 2013-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -124,13 +124,13 @@ dependencies:
124
124
  - !ruby/object:Gem::Version
125
125
  version: 1.0.1
126
126
  - !ruby/object:Gem::Dependency
127
- name: locomotive-mongoid_migration
127
+ name: mongoid_migration
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ~>
132
132
  - !ruby/object:Gem::Version
133
- version: 0.0.7
133
+ version: 0.0.8
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,7 +138,23 @@ dependencies:
138
138
  requirements:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
- version: 0.0.7
141
+ version: 0.0.8
142
+ - !ruby/object:Gem::Dependency
143
+ name: mongo_session_store-rails3
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 4.1.1
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 4.1.1
142
158
  - !ruby/object:Gem::Dependency
143
159
  name: custom_fields
144
160
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +162,7 @@ dependencies:
146
162
  requirements:
147
163
  - - ~>
148
164
  - !ruby/object:Gem::Version
149
- version: 2.2.0
165
+ version: 2.2.1
150
166
  type: :runtime
151
167
  prerelease: false
152
168
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,7 +170,7 @@ dependencies:
154
170
  requirements:
155
171
  - - ~>
156
172
  - !ruby/object:Gem::Version
157
- version: 2.2.0
173
+ version: 2.2.1
158
174
  - !ruby/object:Gem::Dependency
159
175
  name: kaminari
160
176
  requirement: !ruby/object:Gem::Requirement
@@ -226,7 +242,7 @@ dependencies:
226
242
  requirements:
227
243
  - - ~>
228
244
  - !ruby/object:Gem::Version
229
- version: '2.21'
245
+ version: '3.13'
230
246
  type: :runtime
231
247
  prerelease: false
232
248
  version_requirements: !ruby/object:Gem::Requirement
@@ -234,7 +250,7 @@ dependencies:
234
250
  requirements:
235
251
  - - ~>
236
252
  - !ruby/object:Gem::Version
237
- version: '2.21'
253
+ version: '3.13'
238
254
  - !ruby/object:Gem::Dependency
239
255
  name: locomotive-tinymce-rails
240
256
  requirement: !ruby/object:Gem::Requirement
@@ -242,7 +258,7 @@ dependencies:
242
258
  requirements:
243
259
  - - ~>
244
260
  - !ruby/object:Gem::Version
245
- version: 3.5.8.1
261
+ version: 3.5.8.2
246
262
  type: :runtime
247
263
  prerelease: false
248
264
  version_requirements: !ruby/object:Gem::Requirement
@@ -250,7 +266,7 @@ dependencies:
250
266
  requirements:
251
267
  - - ~>
252
268
  - !ruby/object:Gem::Version
253
- version: 3.5.8.1
269
+ version: 3.5.8.2
254
270
  - !ruby/object:Gem::Dependency
255
271
  name: locomotive-aloha-rails
256
272
  requirement: !ruby/object:Gem::Requirement
@@ -402,7 +418,7 @@ dependencies:
402
418
  requirements:
403
419
  - - ~>
404
420
  - !ruby/object:Gem::Version
405
- version: 1.5.1
421
+ version: 2.0.3
406
422
  type: :runtime
407
423
  prerelease: false
408
424
  version_requirements: !ruby/object:Gem::Requirement
@@ -410,7 +426,7 @@ dependencies:
410
426
  requirements:
411
427
  - - ~>
412
428
  - !ruby/object:Gem::Version
413
- version: 1.5.1
429
+ version: 2.0.3
414
430
  - !ruby/object:Gem::Dependency
415
431
  name: carrierwave-mongoid
416
432
  requirement: !ruby/object:Gem::Requirement
@@ -434,7 +450,7 @@ dependencies:
434
450
  requirements:
435
451
  - - ~>
436
452
  - !ruby/object:Gem::Version
437
- version: 1.11.1
453
+ version: 1.12.1
438
454
  type: :runtime
439
455
  prerelease: false
440
456
  version_requirements: !ruby/object:Gem::Requirement
@@ -442,7 +458,7 @@ dependencies:
442
458
  requirements:
443
459
  - - ~>
444
460
  - !ruby/object:Gem::Version
445
- version: 1.11.1
461
+ version: 1.12.1
446
462
  - !ruby/object:Gem::Dependency
447
463
  name: dragonfly
448
464
  requirement: !ruby/object:Gem::Requirement
@@ -530,7 +546,7 @@ dependencies:
530
546
  requirements:
531
547
  - - ~>
532
548
  - !ruby/object:Gem::Version
533
- version: 0.3.0
549
+ version: 0.4.0
534
550
  type: :runtime
535
551
  prerelease: false
536
552
  version_requirements: !ruby/object:Gem::Requirement
@@ -538,7 +554,7 @@ dependencies:
538
554
  requirements:
539
555
  - - ~>
540
556
  - !ruby/object:Gem::Version
541
- version: 0.3.0
557
+ version: 0.4.0
542
558
  - !ruby/object:Gem::Dependency
543
559
  name: faye-websocket
544
560
  requirement: !ruby/object:Gem::Requirement
@@ -582,12 +598,16 @@ files:
582
598
  - app/assets/images/locomotive/icons/flags/pl.png
583
599
  - app/assets/images/locomotive/icons/flags/pt-BR.png
584
600
  - app/assets/images/locomotive/icons/flags/ru.png
601
+ - app/assets/images/locomotive/icons/flags/zh-CN.png
585
602
  - app/assets/images/locomotive/icons/start.png
586
603
  - app/assets/images/locomotive/list/empty.png
587
604
  - app/assets/images/locomotive/list/item-left.png
588
605
  - app/assets/images/locomotive/nocoffee.png
589
606
  - app/assets/images/locomotive/plugins/sites_picker_top_arrow.png
590
607
  - app/assets/images/locomotive/rails.png
608
+ - app/assets/javascripts/aloha/plugins/custom/inputcontrol/css/inputcontrol.css
609
+ - app/assets/javascripts/aloha/plugins/custom/inputcontrol/lib/inputcontrol-plugin.js
610
+ - app/assets/javascripts/aloha/plugins/custom/inputcontrol/package.json
591
611
  - app/assets/javascripts/aloha/plugins/custom/locomotive_media/css/image.css
592
612
  - app/assets/javascripts/aloha/plugins/custom/locomotive_media/img/image.gif
593
613
  - app/assets/javascripts/aloha/plugins/custom/locomotive_media/lib/locomotive_media-plugin.js
@@ -635,8 +655,7 @@ files:
635
655
  - app/assets/javascripts/locomotive/views/editable_elements/control_view.js.coffee
636
656
  - app/assets/javascripts/locomotive/views/editable_elements/edit_all_view.js.coffee
637
657
  - app/assets/javascripts/locomotive/views/editable_elements/file_view.js.coffee
638
- - app/assets/javascripts/locomotive/views/editable_elements/long_text_view.js.coffee
639
- - app/assets/javascripts/locomotive/views/editable_elements/short_text_view.js.coffee
658
+ - app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee
640
659
  - app/assets/javascripts/locomotive/views/inline_editor/application_view.js.coffee
641
660
  - app/assets/javascripts/locomotive/views/inline_editor/toolbar_view.js.coffee
642
661
  - app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
@@ -646,6 +665,7 @@ files:
646
665
  - app/assets/javascripts/locomotive/views/pages/list_view.js.coffee
647
666
  - app/assets/javascripts/locomotive/views/pages/new_view.js.coffee
648
667
  - app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee
668
+ - app/assets/javascripts/locomotive/views/shared/fields/belongs_to_view.js.coffee
649
669
  - app/assets/javascripts/locomotive/views/shared/fields/file_view.js.coffee
650
670
  - app/assets/javascripts/locomotive/views/shared/fields/has_many_view.js.coffee
651
671
  - app/assets/javascripts/locomotive/views/shared/fields/many_to_many_view.js.coffee
@@ -678,8 +698,18 @@ files:
678
698
  - app/assets/javascripts/tinymce/plugins/locomotive_media/editor_plugin.js
679
699
  - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/de.js
680
700
  - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/en.js
701
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/es.js
702
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/et.js
681
703
  - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/fr.js
704
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/it.js
705
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/ja.js
706
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/nb.js
707
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/nl.js
708
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/no.js
709
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/pl.js
710
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/pt.js
682
711
  - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/ru.js
712
+ - app/assets/javascripts/tinymce/plugins/locomotive_media/langs/zh-cn.js
683
713
  - app/assets/javascripts/tinymce/themes/advanced/skins/locomotive/content.css
684
714
  - app/assets/javascripts/tinymce/themes/advanced/skins/locomotive/dialog.css.scss
685
715
  - app/assets/javascripts/tinymce/themes/advanced/skins/locomotive/img/butt2.png
@@ -808,6 +838,7 @@ files:
808
838
  - app/models/locomotive/editable_file.rb
809
839
  - app/models/locomotive/editable_long_text.rb
810
840
  - app/models/locomotive/editable_short_text.rb
841
+ - app/models/locomotive/editable_text.rb
811
842
  - app/models/locomotive/extensions/asset/types.rb
812
843
  - app/models/locomotive/extensions/asset/vignette.rb
813
844
  - app/models/locomotive/extensions/content_entry/csv.rb
@@ -825,6 +856,7 @@ files:
825
856
  - app/models/locomotive/extensions/site/first_installation.rb
826
857
  - app/models/locomotive/extensions/site/locales.rb
827
858
  - app/models/locomotive/extensions/site/subdomain_domains.rb
859
+ - app/models/locomotive/extensions/site/timezone.rb
828
860
  - app/models/locomotive/membership.rb
829
861
  - app/models/locomotive/page.rb
830
862
  - app/models/locomotive/site.rb
@@ -840,8 +872,7 @@ files:
840
872
  - app/presenters/locomotive/editable_control_presenter.rb
841
873
  - app/presenters/locomotive/editable_element_presenter.rb
842
874
  - app/presenters/locomotive/editable_file_presenter.rb
843
- - app/presenters/locomotive/editable_long_text_presenter.rb
844
- - app/presenters/locomotive/editable_short_text_presenter.rb
875
+ - app/presenters/locomotive/editable_text_presenter.rb
845
876
  - app/presenters/locomotive/membership_presenter.rb
846
877
  - app/presenters/locomotive/page_presenter.rb
847
878
  - app/presenters/locomotive/site_presenter.rb
@@ -917,6 +948,7 @@ files:
917
948
  - app/views/locomotive/shared/_header.html.haml
918
949
  - app/views/locomotive/shared/_locale_picker_link.html.haml
919
950
  - app/views/locomotive/shared/_main_app_head.html.haml
951
+ - app/views/locomotive/shared/_main_app_head_before_backbone.html.haml
920
952
  - app/views/locomotive/shared/_site_picker.html.haml
921
953
  - app/views/locomotive/shared/actions/_contents.html.haml
922
954
  - app/views/locomotive/shared/menu/_contents.html.haml
@@ -958,6 +990,7 @@ files:
958
990
  - config/locales/admin_ui.pl.yml
959
991
  - config/locales/admin_ui.pt-BR.yml
960
992
  - config/locales/admin_ui.ru.yml
993
+ - config/locales/admin_ui.zh-CN.yml
961
994
  - config/locales/carrierwave.de.yml
962
995
  - config/locales/carrierwave.en.yml
963
996
  - config/locales/carrierwave.es.yml
@@ -970,6 +1003,7 @@ files:
970
1003
  - config/locales/carrierwave.pl.yml
971
1004
  - config/locales/carrierwave.pt-BR.yml
972
1005
  - config/locales/carrierwave.ru.yml
1006
+ - config/locales/carrierwave.zh-CN.yml
973
1007
  - config/locales/default.de.yml
974
1008
  - config/locales/default.en.yml
975
1009
  - config/locales/default.es.yml
@@ -982,6 +1016,7 @@ files:
982
1016
  - config/locales/default.pl.yml
983
1017
  - config/locales/default.pt-BR.yml
984
1018
  - config/locales/default.ru.yml
1019
+ - config/locales/default.zh-CN.yml
985
1020
  - config/locales/devise.de.yml
986
1021
  - config/locales/devise.en.yml
987
1022
  - config/locales/devise.es.yml
@@ -994,6 +1029,7 @@ files:
994
1029
  - config/locales/devise.pl.yml
995
1030
  - config/locales/devise.pt-BR.yml
996
1031
  - config/locales/devise.ru.yml
1032
+ - config/locales/devise.zh-CN.yml
997
1033
  - config/locales/flash.de.yml
998
1034
  - config/locales/flash.en.yml
999
1035
  - config/locales/flash.es.yml
@@ -1006,6 +1042,7 @@ files:
1006
1042
  - config/locales/flash.pl.yml
1007
1043
  - config/locales/flash.pt-BR.yml
1008
1044
  - config/locales/flash.ru.yml
1045
+ - config/locales/flash.zh-CN.yml
1009
1046
  - config/locales/formtastic.de.yml
1010
1047
  - config/locales/formtastic.en.yml
1011
1048
  - config/locales/formtastic.es.yml
@@ -1018,6 +1055,7 @@ files:
1018
1055
  - config/locales/formtastic.pl.yml
1019
1056
  - config/locales/formtastic.pt-BR.yml
1020
1057
  - config/locales/formtastic.ru.yml
1058
+ - config/locales/formtastic.zh-CN.yml
1021
1059
  - config/routes.rb
1022
1060
  - lib/generators/locomotive/install/install_generator.rb
1023
1061
  - lib/generators/locomotive/install/templates/carrierwave.rb
@@ -1073,8 +1111,7 @@ files:
1073
1111
  - lib/locomotive/liquid/tags/editable/base.rb
1074
1112
  - lib/locomotive/liquid/tags/editable/control.rb
1075
1113
  - lib/locomotive/liquid/tags/editable/file.rb
1076
- - lib/locomotive/liquid/tags/editable/long_text.rb
1077
- - lib/locomotive/liquid/tags/editable/short_text.rb
1114
+ - lib/locomotive/liquid/tags/editable/text.rb
1078
1115
  - lib/locomotive/liquid/tags/editable.rb
1079
1116
  - lib/locomotive/liquid/tags/extends.rb
1080
1117
  - lib/locomotive/liquid/tags/fetch_page.rb
@@ -1094,7 +1131,6 @@ files:
1094
1131
  - lib/locomotive/liquid.rb
1095
1132
  - lib/locomotive/logger.rb
1096
1133
  - lib/locomotive/middlewares/cache.rb
1097
- - lib/locomotive/middlewares/fonts.rb
1098
1134
  - lib/locomotive/middlewares/inline_editor.rb
1099
1135
  - lib/locomotive/middlewares/permalink.rb
1100
1136
  - lib/locomotive/middlewares/seo_trailing_slash.rb
@@ -1114,7 +1150,6 @@ files:
1114
1150
  - lib/locomotive/routing/default_constraint.rb
1115
1151
  - lib/locomotive/routing/site_dispatcher.rb
1116
1152
  - lib/locomotive/routing.rb
1117
- - lib/locomotive/session_store.rb
1118
1153
  - lib/locomotive/version.rb
1119
1154
  - lib/locomotive.rb
1120
1155
  - lib/locomotive_cms.rb
@@ -1124,11 +1159,16 @@ files:
1124
1159
  - mongodb/migrate/20130326201349_rename_entry_to_content_entry.rb
1125
1160
  - mongodb/migrate/20130511121956_generate_checksum_for_theme_assets.rb
1126
1161
  - mongodb/migrate/20130530162559_api_key_for_all_accounts.rb
1162
+ - mongodb/migrate/20130621135025_create_editable_texts.rb
1163
+ - mongodb/migrate/20130627101548_localize_slugs_of_content_entries.rb
1127
1164
  - public/favicon.ico
1128
1165
  - vendor/assets/fonts/locomotive/fontawesome-webfont.eot
1129
1166
  - vendor/assets/fonts/locomotive/fontawesome-webfont.svg
1130
1167
  - vendor/assets/fonts/locomotive/fontawesome-webfont.ttf
1131
1168
  - vendor/assets/fonts/locomotive/fontawesome-webfont.woff
1169
+ - vendor/assets/images/select2-spinner.gif
1170
+ - vendor/assets/images/select2.png
1171
+ - vendor/assets/images/select2x2.png
1132
1172
  - vendor/assets/javascripts/locomotive/backbone.modelbinding.js
1133
1173
  - vendor/assets/javascripts/locomotive/backbone.sync.js
1134
1174
  - vendor/assets/javascripts/locomotive/cmd.js
@@ -1148,6 +1188,7 @@ files:
1148
1188
  - vendor/assets/javascripts/locomotive/tag-it.min.js
1149
1189
  - vendor/assets/javascripts/locomotive/toggle.js
1150
1190
  - vendor/assets/javascripts/locomotive/vendor.js
1191
+ - vendor/assets/javascripts/select2/select2.js
1151
1192
  - vendor/assets/stylesheets/locomotive/blueprint/ie.css
1152
1193
  - vendor/assets/stylesheets/locomotive/blueprint/print.css
1153
1194
  - vendor/assets/stylesheets/locomotive/blueprint/screen.css
@@ -1170,6 +1211,7 @@ files:
1170
1211
  - vendor/assets/stylesheets/locomotive/jquery.tagit.css
1171
1212
  - vendor/assets/stylesheets/locomotive/liquid_mode.css
1172
1213
  - vendor/assets/stylesheets/locomotive/toggle.css.scss
1214
+ - vendor/assets/stylesheets/select2/select2.css.scss
1173
1215
  - LICENSE
1174
1216
  - README.textile
1175
1217
  - features/api/accounts.feature
@@ -1200,6 +1242,7 @@ files:
1200
1242
  - features/backoffice/content_types/email.feature
1201
1243
  - features/backoffice/content_types/has_many.feature
1202
1244
  - features/backoffice/content_types/integer.feature
1245
+ - features/backoffice/content_types/localized.feature
1203
1246
  - features/backoffice/content_types/many_to_many.feature
1204
1247
  - features/backoffice/content_types/tags.feature
1205
1248
  - features/backoffice/content_types/uniqueness.feature
@@ -1283,9 +1326,10 @@ files:
1283
1326
  - spec/lib/locomotive/liquid/filters/translate_spec.rb
1284
1327
  - spec/lib/locomotive/liquid/tags/consume_spec.rb
1285
1328
  - spec/lib/locomotive/liquid/tags/csrf_spec.rb
1286
- - spec/lib/locomotive/liquid/tags/editable/short_text_spec.rb
1329
+ - spec/lib/locomotive/liquid/tags/editable/text_spec.rb
1287
1330
  - spec/lib/locomotive/liquid/tags/extends_spec.rb
1288
1331
  - spec/lib/locomotive/liquid/tags/javascript_spec.rb
1332
+ - spec/lib/locomotive/liquid/tags/link_to_spec.rb
1289
1333
  - spec/lib/locomotive/liquid/tags/locale_switcher_spec.rb
1290
1334
  - spec/lib/locomotive/liquid/tags/nav_spec.rb
1291
1335
  - spec/lib/locomotive/liquid/tags/paginate_spec.rb
@@ -1302,8 +1346,7 @@ files:
1302
1346
  - spec/models/locomotive/content_type_spec.rb
1303
1347
  - spec/models/locomotive/editable_control_spec.rb
1304
1348
  - spec/models/locomotive/editable_file_spec.rb
1305
- - spec/models/locomotive/editable_long_text_spec.rb
1306
- - spec/models/locomotive/editable_short_text_spec.rb
1349
+ - spec/models/locomotive/editable_text_spec.rb
1307
1350
  - spec/models/locomotive/extensions/page/editable_elements_spec.rb
1308
1351
  - spec/models/locomotive/extensions/page/redirect_spec.rb
1309
1352
  - spec/models/locomotive/extensions/page/render_spec.rb
@@ -1373,7 +1416,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1373
1416
  version: '0'
1374
1417
  segments:
1375
1418
  - 0
1376
- hash: 1655850861227393750
1419
+ hash: -31990377363803179
1377
1420
  required_rubygems_version: !ruby/object:Gem::Requirement
1378
1421
  none: false
1379
1422
  requirements:
@@ -1382,7 +1425,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1382
1425
  version: '0'
1383
1426
  segments:
1384
1427
  - 0
1385
- hash: 1655850861227393750
1428
+ hash: -31990377363803179
1386
1429
  requirements: []
1387
1430
  rubyforge_project:
1388
1431
  rubygems_version: 1.8.23
@@ -1418,6 +1461,7 @@ test_files:
1418
1461
  - features/backoffice/content_types/email.feature
1419
1462
  - features/backoffice/content_types/has_many.feature
1420
1463
  - features/backoffice/content_types/integer.feature
1464
+ - features/backoffice/content_types/localized.feature
1421
1465
  - features/backoffice/content_types/many_to_many.feature
1422
1466
  - features/backoffice/content_types/tags.feature
1423
1467
  - features/backoffice/content_types/uniqueness.feature
@@ -1501,9 +1545,10 @@ test_files:
1501
1545
  - spec/lib/locomotive/liquid/filters/translate_spec.rb
1502
1546
  - spec/lib/locomotive/liquid/tags/consume_spec.rb
1503
1547
  - spec/lib/locomotive/liquid/tags/csrf_spec.rb
1504
- - spec/lib/locomotive/liquid/tags/editable/short_text_spec.rb
1548
+ - spec/lib/locomotive/liquid/tags/editable/text_spec.rb
1505
1549
  - spec/lib/locomotive/liquid/tags/extends_spec.rb
1506
1550
  - spec/lib/locomotive/liquid/tags/javascript_spec.rb
1551
+ - spec/lib/locomotive/liquid/tags/link_to_spec.rb
1507
1552
  - spec/lib/locomotive/liquid/tags/locale_switcher_spec.rb
1508
1553
  - spec/lib/locomotive/liquid/tags/nav_spec.rb
1509
1554
  - spec/lib/locomotive/liquid/tags/paginate_spec.rb
@@ -1520,8 +1565,7 @@ test_files:
1520
1565
  - spec/models/locomotive/content_type_spec.rb
1521
1566
  - spec/models/locomotive/editable_control_spec.rb
1522
1567
  - spec/models/locomotive/editable_file_spec.rb
1523
- - spec/models/locomotive/editable_long_text_spec.rb
1524
- - spec/models/locomotive/editable_short_text_spec.rb
1568
+ - spec/models/locomotive/editable_text_spec.rb
1525
1569
  - spec/models/locomotive/extensions/page/editable_elements_spec.rb
1526
1570
  - spec/models/locomotive/extensions/page/redirect_spec.rb
1527
1571
  - spec/models/locomotive/extensions/page/render_spec.rb
@@ -1,36 +0,0 @@
1
- #= require ./short_text_view
2
-
3
- Locomotive.Views.EditableElements ||= {}
4
-
5
- class Locomotive.Views.EditableElements.LongTextView extends Backbone.View
6
-
7
- tagName: 'li'
8
-
9
- className: 'text input html'
10
-
11
- render: ->
12
- $(@el).html(ich.editable_text_input(@model.toJSON()))
13
-
14
- return @
15
-
16
- after_render: ->
17
- settings = _.extend {}, @tinymce_settings(),
18
- oninit: ((editor) =>
19
- $.cmd 'S', (() =>
20
- @model.set(content: editor.getBody().innerHTML)
21
- $(@el).parents('form').trigger('submit')
22
- ), [], ignoreCase: true, document: editor.dom.doc),
23
- onchange_callback: (editor) =>
24
- @model.set(content: editor.getBody().innerHTML)
25
-
26
- @$('textarea').tinymce(settings)
27
-
28
- tinymce_settings: ->
29
- _.extend { language: window.locale }, window.Locomotive.tinyMCE.defaultSettings
30
-
31
- refresh: ->
32
- # do nothing
33
-
34
- remove: ->
35
- @$('textarea').tinymce().destroy()
36
- super