locomotivecms 3.0.0.rc4 → 3.0.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/app/api/locomotive/api/resources/content_type_resource.rb +16 -1
  4. data/app/api/locomotive/api/resources/page_resource.rb +9 -4
  5. data/app/api/locomotive/api/resources/snippet_resource.rb +17 -2
  6. data/app/api/locomotive/api/resources/theme_asset_resource.rb +11 -0
  7. data/app/api/locomotive/api/resources/translation_resource.rb +16 -1
  8. data/app/assets/javascripts/locomotive.js +1 -0
  9. data/app/assets/javascripts/locomotive/{not_logged_in.js.coffee → account.js.coffee} +1 -0
  10. data/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee +2 -2
  11. data/app/assets/stylesheets/locomotive/{unauthorized.scss → account.scss} +7 -8
  12. data/app/assets/stylesheets/locomotive/{unauthorized → account}/_forms.scss +19 -0
  13. data/app/assets/stylesheets/locomotive/{unauthorized → account}/_keyframes.scss +0 -0
  14. data/app/assets/stylesheets/locomotive/{unauthorized → account}/_notify.scss +3 -1
  15. data/app/assets/stylesheets/locomotive/{unauthorized → account}/_public.scss +98 -10
  16. data/app/assets/stylesheets/locomotive/{unauthorized → account}/_type.scss +0 -0
  17. data/app/assets/stylesheets/locomotive/{unauthorized → account}/_variables.scss +1 -1
  18. data/app/assets/stylesheets/locomotive/application.scss +1 -1
  19. data/app/assets/stylesheets/locomotive/base/_form.scss +1 -0
  20. data/app/assets/stylesheets/locomotive/base/form/_tags.scss +17 -0
  21. data/app/assets/stylesheets/locomotive/error.scss +1 -1
  22. data/app/assets/stylesheets/locomotive/layouts/_error.scss +33 -0
  23. data/app/controllers/locomotive/concerns/site_dispatcher_controller.rb +1 -2
  24. data/app/controllers/locomotive/passwords_controller.rb +1 -1
  25. data/app/controllers/locomotive/registrations_controller.rb +1 -1
  26. data/app/controllers/locomotive/sessions_controller.rb +1 -1
  27. data/app/controllers/locomotive/sites_controller.rb +1 -1
  28. data/app/helpers/locomotive/custom_fields_helper.rb +8 -2
  29. data/app/models/locomotive/editable_element.rb +2 -2
  30. data/app/policies/locomotive/application_policy.rb +4 -0
  31. data/app/policies/locomotive/content_type_policy.rb +4 -0
  32. data/app/policies/locomotive/site_policy.rb +1 -1
  33. data/app/policies/locomotive/snippet_policy.rb +4 -0
  34. data/app/policies/locomotive/theme_asset_policy.rb +4 -0
  35. data/app/policies/locomotive/translation_policy.rb +4 -0
  36. data/app/views/locomotive/current_site/_membership.html.slim +20 -19
  37. data/app/views/locomotive/layouts/{not_logged_in.html.slim → account.html.slim} +8 -3
  38. data/app/views/locomotive/passwords/edit.html.slim +2 -2
  39. data/app/views/locomotive/passwords/new.html.slim +2 -4
  40. data/app/views/locomotive/registrations/new.html.slim +2 -2
  41. data/app/views/locomotive/sessions/new.html.slim +2 -2
  42. data/app/views/locomotive/shared/header/_site.html.slim +1 -1
  43. data/app/views/locomotive/sites/_navigation.slim +5 -0
  44. data/app/views/locomotive/sites/_site.html.slim +6 -16
  45. data/app/views/locomotive/sites/index.html.slim +12 -19
  46. data/app/views/locomotive/sites/new.html.slim +13 -8
  47. data/config/locales/en.yml +8 -4
  48. data/lib/locomotive/engine.rb +2 -2
  49. data/lib/locomotive/version.rb +1 -1
  50. data/spec/lib/locomotive/steam/services/liquid_parser_with_cache_service_spec.rb +1 -1
  51. data/spec/models/locomotive/content_entry_spec.rb +1 -1
  52. data/spec/models/locomotive/editable_element_spec.rb +26 -0
  53. data/spec/requests/locomotive/steam/cache_spec.rb +1 -1
  54. data/spec/support/capybara.rb +3 -3
  55. data/spec/support/features/session_helpers.rb +2 -3
  56. data/vendor/assets/{stylesheets/locomotive → components/locomotive/bootstrap-tagsinput}/bootstrap-tagsinput.css +16 -7
  57. data/vendor/assets/components/locomotive/bootstrap-tagsinput/bootstrap-tagsinput.js +663 -0
  58. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/Gruntfile.js +82 -0
  59. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/LICENSE +20 -0
  60. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/README.md +92 -0
  61. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/bootstrap-tagsinput.jquery.json +27 -0
  62. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/bower.json +42 -0
  63. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.js +87 -0
  64. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.min.js +7 -0
  65. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.min.js.map +1 -0
  66. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-typeahead.css +49 -0
  67. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.css +55 -0
  68. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.js +663 -0
  69. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.less +50 -0
  70. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js +7 -0
  71. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js.map +1 -0
  72. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.zip +0 -0
  73. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app.css +67 -0
  74. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app.js +15 -0
  75. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app_bs2.js +74 -0
  76. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app_bs3.js +95 -0
  77. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/cities.json +16 -0
  78. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/citynames.json +16 -0
  79. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/bootstrap-2.3.2.html +666 -0
  80. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/index.html +742 -0
  81. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/karma.conf.js +20 -0
  82. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/package.json +47 -0
  83. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput-angular.js +87 -0
  84. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput-typeahead.css +49 -0
  85. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput.css +55 -0
  86. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput.js +663 -0
  87. data/vendor/assets/components/locomotive_sources/jquery/MIT-LICENSE.txt +21 -0
  88. data/vendor/assets/components/locomotive_sources/jquery/bower.json +28 -0
  89. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.js +9210 -0
  90. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.min.js +5 -0
  91. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.min.map +1 -0
  92. data/vendor/assets/components/locomotive_sources/jquery/src/ajax.js +786 -0
  93. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/jsonp.js +89 -0
  94. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/load.js +75 -0
  95. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/parseJSON.js +13 -0
  96. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/parseXML.js +28 -0
  97. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/script.js +64 -0
  98. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/var/nonce.js +5 -0
  99. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/var/rquery.js +3 -0
  100. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/xhr.js +136 -0
  101. data/vendor/assets/components/locomotive_sources/jquery/src/attributes.js +11 -0
  102. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/attr.js +141 -0
  103. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/classes.js +158 -0
  104. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/prop.js +94 -0
  105. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/support.js +35 -0
  106. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/val.js +161 -0
  107. data/vendor/assets/components/locomotive_sources/jquery/src/callbacks.js +205 -0
  108. data/vendor/assets/components/locomotive_sources/jquery/src/core.js +502 -0
  109. data/vendor/assets/components/locomotive_sources/jquery/src/core/access.js +60 -0
  110. data/vendor/assets/components/locomotive_sources/jquery/src/core/init.js +123 -0
  111. data/vendor/assets/components/locomotive_sources/jquery/src/core/parseHTML.js +39 -0
  112. data/vendor/assets/components/locomotive_sources/jquery/src/core/ready.js +97 -0
  113. data/vendor/assets/components/locomotive_sources/jquery/src/core/var/rsingleTag.js +4 -0
  114. data/vendor/assets/components/locomotive_sources/jquery/src/css.js +450 -0
  115. data/vendor/assets/components/locomotive_sources/jquery/src/css/addGetHookIf.js +22 -0
  116. data/vendor/assets/components/locomotive_sources/jquery/src/css/curCSS.js +57 -0
  117. data/vendor/assets/components/locomotive_sources/jquery/src/css/defaultDisplay.js +70 -0
  118. data/vendor/assets/components/locomotive_sources/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  119. data/vendor/assets/components/locomotive_sources/jquery/src/css/support.js +96 -0
  120. data/vendor/assets/components/locomotive_sources/jquery/src/css/swap.js +28 -0
  121. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/cssExpand.js +3 -0
  122. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/getStyles.js +12 -0
  123. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/isHidden.js +13 -0
  124. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/rmargin.js +3 -0
  125. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/rnumnonpx.js +5 -0
  126. data/vendor/assets/components/locomotive_sources/jquery/src/data.js +178 -0
  127. data/vendor/assets/components/locomotive_sources/jquery/src/data/Data.js +181 -0
  128. data/vendor/assets/components/locomotive_sources/jquery/src/data/accepts.js +20 -0
  129. data/vendor/assets/components/locomotive_sources/jquery/src/data/var/data_priv.js +5 -0
  130. data/vendor/assets/components/locomotive_sources/jquery/src/data/var/data_user.js +5 -0
  131. data/vendor/assets/components/locomotive_sources/jquery/src/deferred.js +149 -0
  132. data/vendor/assets/components/locomotive_sources/jquery/src/deprecated.js +13 -0
  133. data/vendor/assets/components/locomotive_sources/jquery/src/dimensions.js +50 -0
  134. data/vendor/assets/components/locomotive_sources/jquery/src/effects.js +648 -0
  135. data/vendor/assets/components/locomotive_sources/jquery/src/effects/Tween.js +114 -0
  136. data/vendor/assets/components/locomotive_sources/jquery/src/effects/animatedSelector.js +13 -0
  137. data/vendor/assets/components/locomotive_sources/jquery/src/event.js +868 -0
  138. data/vendor/assets/components/locomotive_sources/jquery/src/event/ajax.js +13 -0
  139. data/vendor/assets/components/locomotive_sources/jquery/src/event/alias.js +39 -0
  140. data/vendor/assets/components/locomotive_sources/jquery/src/event/support.js +9 -0
  141. data/vendor/assets/components/locomotive_sources/jquery/src/exports/amd.js +24 -0
  142. data/vendor/assets/components/locomotive_sources/jquery/src/exports/global.js +32 -0
  143. data/vendor/assets/components/locomotive_sources/jquery/src/intro.js +44 -0
  144. data/vendor/assets/components/locomotive_sources/jquery/src/jquery.js +37 -0
  145. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation.js +580 -0
  146. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/_evalUrl.js +18 -0
  147. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/support.js +32 -0
  148. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/var/rcheckableType.js +3 -0
  149. data/vendor/assets/components/locomotive_sources/jquery/src/offset.js +207 -0
  150. data/vendor/assets/components/locomotive_sources/jquery/src/outro.js +1 -0
  151. data/vendor/assets/components/locomotive_sources/jquery/src/queue.js +142 -0
  152. data/vendor/assets/components/locomotive_sources/jquery/src/queue/delay.js +22 -0
  153. data/vendor/assets/components/locomotive_sources/jquery/src/selector-native.js +172 -0
  154. data/vendor/assets/components/locomotive_sources/jquery/src/selector-sizzle.js +14 -0
  155. data/vendor/assets/components/locomotive_sources/jquery/src/selector.js +1 -0
  156. data/vendor/assets/components/locomotive_sources/jquery/src/serialize.js +111 -0
  157. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.js +2067 -0
  158. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  159. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  160. data/vendor/assets/components/locomotive_sources/jquery/src/traversing.js +199 -0
  161. data/vendor/assets/components/locomotive_sources/jquery/src/traversing/findFilter.js +100 -0
  162. data/vendor/assets/components/locomotive_sources/jquery/src/traversing/var/rneedsContext.js +6 -0
  163. data/vendor/assets/components/locomotive_sources/jquery/src/var/arr.js +3 -0
  164. data/vendor/assets/components/locomotive_sources/jquery/src/var/class2type.js +4 -0
  165. data/vendor/assets/components/locomotive_sources/jquery/src/var/concat.js +5 -0
  166. data/vendor/assets/components/locomotive_sources/jquery/src/var/hasOwn.js +5 -0
  167. data/vendor/assets/components/locomotive_sources/jquery/src/var/indexOf.js +5 -0
  168. data/vendor/assets/components/locomotive_sources/jquery/src/var/pnum.js +3 -0
  169. data/vendor/assets/components/locomotive_sources/jquery/src/var/push.js +5 -0
  170. data/vendor/assets/components/locomotive_sources/jquery/src/var/rnotwhite.js +3 -0
  171. data/vendor/assets/components/locomotive_sources/jquery/src/var/slice.js +5 -0
  172. data/vendor/assets/components/locomotive_sources/jquery/src/var/strundefined.js +3 -0
  173. data/vendor/assets/components/locomotive_sources/jquery/src/var/support.js +4 -0
  174. data/vendor/assets/components/locomotive_sources/jquery/src/var/toString.js +5 -0
  175. data/vendor/assets/components/locomotive_sources/jquery/src/wrap.js +79 -0
  176. metadata +138 -23
  177. data/app/assets/stylesheets/locomotive/base/not_logged_in/_all.scss +0 -4
  178. data/app/assets/stylesheets/locomotive/base/not_logged_in/_buttons.scss +0 -10
  179. data/app/assets/stylesheets/locomotive/base/not_logged_in/_form.scss +0 -72
  180. data/app/assets/stylesheets/locomotive/base/not_logged_in/_messages.scss +0 -4
  181. data/app/assets/stylesheets/locomotive/base/not_logged_in/_typography.scss +0 -12
  182. data/app/assets/stylesheets/locomotive/components/not_logged_in/_passwords.scss +0 -9
  183. data/app/assets/stylesheets/locomotive/components/not_logged_in/_sign_in_and_up.scss +0 -34
  184. data/app/models/locomotive/concerns/page/render.rb +0 -99
  185. data/vendor/assets/javascripts/locomotive/bootstrap-tagsinput.min.js +0 -6
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc4
4
+ version: 3.0.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.0.0.rc6
187
+ version: 1.0.0.rc7
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 1.0.0.rc6
194
+ version: 1.0.0.rc7
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: slim
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -676,8 +676,8 @@ files:
676
676
  - app/assets/images/locomotive/site.png
677
677
  - app/assets/images/locomotive/user.png
678
678
  - app/assets/javascripts/locomotive.js
679
+ - app/assets/javascripts/locomotive/account.js.coffee
679
680
  - app/assets/javascripts/locomotive/application.js.coffee
680
- - app/assets/javascripts/locomotive/not_logged_in.js.coffee
681
681
  - app/assets/javascripts/locomotive/utils/backbone_patches.js.coffee
682
682
  - app/assets/javascripts/locomotive/utils/core_ext.js
683
683
  - app/assets/javascripts/locomotive/utils/file.js.coffee
@@ -731,6 +731,13 @@ files:
731
731
  - app/assets/javascripts/locomotive/views/shared/sidebar_view.js.coffee
732
732
  - app/assets/javascripts/locomotive/views/sites/new_view.js.coffee
733
733
  - app/assets/javascripts/locomotive/views/translations/index_view.js.coffee
734
+ - app/assets/stylesheets/locomotive/account.scss
735
+ - app/assets/stylesheets/locomotive/account/_forms.scss
736
+ - app/assets/stylesheets/locomotive/account/_keyframes.scss
737
+ - app/assets/stylesheets/locomotive/account/_notify.scss
738
+ - app/assets/stylesheets/locomotive/account/_public.scss
739
+ - app/assets/stylesheets/locomotive/account/_type.scss
740
+ - app/assets/stylesheets/locomotive/account/_variables.scss
734
741
  - app/assets/stylesheets/locomotive/application.scss
735
742
  - app/assets/stylesheets/locomotive/base/_all.scss
736
743
  - app/assets/stylesheets/locomotive/base/_buttons.scss
@@ -752,12 +759,8 @@ files:
752
759
  - app/assets/stylesheets/locomotive/base/form/_popover.scss
753
760
  - app/assets/stylesheets/locomotive/base/form/_rte.scss
754
761
  - app/assets/stylesheets/locomotive/base/form/_select2.scss
762
+ - app/assets/stylesheets/locomotive/base/form/_tags.scss
755
763
  - app/assets/stylesheets/locomotive/base/form/_toggle.scss
756
- - app/assets/stylesheets/locomotive/base/not_logged_in/_all.scss
757
- - app/assets/stylesheets/locomotive/base/not_logged_in/_buttons.scss
758
- - app/assets/stylesheets/locomotive/base/not_logged_in/_form.scss
759
- - app/assets/stylesheets/locomotive/base/not_logged_in/_messages.scss
760
- - app/assets/stylesheets/locomotive/base/not_logged_in/_typography.scss
761
764
  - app/assets/stylesheets/locomotive/components/_activity_feed.scss
762
765
  - app/assets/stylesheets/locomotive/components/_content_assets.scss
763
766
  - app/assets/stylesheets/locomotive/components/_dashboard.scss
@@ -779,8 +782,6 @@ files:
779
782
  - app/assets/stylesheets/locomotive/components/misc/_modal.scss
780
783
  - app/assets/stylesheets/locomotive/components/misc/_nav.scss
781
784
  - app/assets/stylesheets/locomotive/components/misc/_notify.scss
782
- - app/assets/stylesheets/locomotive/components/not_logged_in/_passwords.scss
783
- - app/assets/stylesheets/locomotive/components/not_logged_in/_sign_in_and_up.scss
784
785
  - app/assets/stylesheets/locomotive/components/sidebar/_base.scss
785
786
  - app/assets/stylesheets/locomotive/components/sidebar/_content_types.scss
786
787
  - app/assets/stylesheets/locomotive/components/sidebar/_link.scss
@@ -789,19 +790,13 @@ files:
789
790
  - app/assets/stylesheets/locomotive/error.scss
790
791
  - app/assets/stylesheets/locomotive/globals/_mixins.scss
791
792
  - app/assets/stylesheets/locomotive/globals/_variables.scss
793
+ - app/assets/stylesheets/locomotive/layouts/_error.scss
792
794
  - app/assets/stylesheets/locomotive/layouts/_live_editing.scss
793
795
  - app/assets/stylesheets/locomotive/layouts/_main.scss
794
796
  - app/assets/stylesheets/locomotive/layouts/_not_logged_in.scss
795
797
  - app/assets/stylesheets/locomotive/layouts/_responsive.scss
796
798
  - app/assets/stylesheets/locomotive/live_editing_error.scss
797
799
  - app/assets/stylesheets/locomotive/live_editing_iframe.scss
798
- - app/assets/stylesheets/locomotive/unauthorized.scss
799
- - app/assets/stylesheets/locomotive/unauthorized/_forms.scss
800
- - app/assets/stylesheets/locomotive/unauthorized/_keyframes.scss
801
- - app/assets/stylesheets/locomotive/unauthorized/_notify.scss
802
- - app/assets/stylesheets/locomotive/unauthorized/_public.scss
803
- - app/assets/stylesheets/locomotive/unauthorized/_type.scss
804
- - app/assets/stylesheets/locomotive/unauthorized/_variables.scss
805
800
  - app/controllers/locomotive/accounts_controller.rb
806
801
  - app/controllers/locomotive/base_controller.rb
807
802
  - app/controllers/locomotive/concerns/account_controller.rb
@@ -889,7 +884,6 @@ files:
889
884
  - app/models/locomotive/concerns/page/layout.rb
890
885
  - app/models/locomotive/concerns/page/listed.rb
891
886
  - app/models/locomotive/concerns/page/redirect.rb
892
- - app/models/locomotive/concerns/page/render.rb
893
887
  - app/models/locomotive/concerns/page/templatized.rb
894
888
  - app/models/locomotive/concerns/page/tree.rb
895
889
  - app/models/locomotive/concerns/shared/seo.rb
@@ -994,10 +988,10 @@ files:
994
988
  - app/views/locomotive/errors/500.html.slim
995
989
  - app/views/locomotive/errors/no_site.html.slim
996
990
  - app/views/locomotive/errors/no_site.json
991
+ - app/views/locomotive/layouts/account.html.slim
997
992
  - app/views/locomotive/layouts/application.html.slim
998
993
  - app/views/locomotive/layouts/error.html.slim
999
994
  - app/views/locomotive/layouts/live_editing.html.slim
1000
- - app/views/locomotive/layouts/not_logged_in.html.slim
1001
995
  - app/views/locomotive/layouts/without_site.html.slim
1002
996
  - app/views/locomotive/memberships/edit.html.slim
1003
997
  - app/views/locomotive/memberships/new.html.slim
@@ -1047,6 +1041,7 @@ files:
1047
1041
  - app/views/locomotive/shared/sidebar/_my_account.html.slim
1048
1042
  - app/views/locomotive/shared/sidebar/_page.html.slim
1049
1043
  - app/views/locomotive/shared/sidebar/_pages.html.slim
1044
+ - app/views/locomotive/sites/_navigation.slim
1050
1045
  - app/views/locomotive/sites/_site.html.slim
1051
1046
  - app/views/locomotive/sites/index.html.slim
1052
1047
  - app/views/locomotive/sites/new.html.slim
@@ -1300,6 +1295,7 @@ files:
1300
1295
  - spec/models/locomotive/content_asset_spec.rb
1301
1296
  - spec/models/locomotive/content_entry_spec.rb
1302
1297
  - spec/models/locomotive/content_type_spec.rb
1298
+ - spec/models/locomotive/editable_element_spec.rb
1303
1299
  - spec/models/locomotive/membership_spec.rb
1304
1300
  - spec/models/locomotive/page_spec.rb
1305
1301
  - spec/models/locomotive/site_spec.rb
@@ -1327,12 +1323,132 @@ files:
1327
1323
  - spec/support/shared_contexts/api_site_setup.rb
1328
1324
  - spec/support/shared_examples/site_scope_examples.rb
1329
1325
  - vendor/assets/components/locomotive/backbone/backbone.js
1326
+ - vendor/assets/components/locomotive/bootstrap-tagsinput/bootstrap-tagsinput.css
1327
+ - vendor/assets/components/locomotive/bootstrap-tagsinput/bootstrap-tagsinput.js
1330
1328
  - vendor/assets/components/locomotive/underscore/underscore.js
1331
1329
  - vendor/assets/components/locomotive_sources/backbone/LICENSE
1332
1330
  - vendor/assets/components/locomotive_sources/backbone/backbone-min.js
1333
1331
  - vendor/assets/components/locomotive_sources/backbone/backbone-min.map
1334
1332
  - vendor/assets/components/locomotive_sources/backbone/backbone.js
1335
1333
  - vendor/assets/components/locomotive_sources/backbone/bower.json
1334
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/Gruntfile.js
1335
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/LICENSE
1336
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/README.md
1337
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/bootstrap-tagsinput.jquery.json
1338
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/bower.json
1339
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.js
1340
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.min.js
1341
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.min.js.map
1342
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-typeahead.css
1343
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.css
1344
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.js
1345
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.less
1346
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js
1347
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js.map
1348
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.zip
1349
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app.css
1350
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app.js
1351
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app_bs2.js
1352
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app_bs3.js
1353
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/cities.json
1354
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/citynames.json
1355
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/bootstrap-2.3.2.html
1356
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/index.html
1357
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/karma.conf.js
1358
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/package.json
1359
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput-angular.js
1360
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput-typeahead.css
1361
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput.css
1362
+ - vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput.js
1363
+ - vendor/assets/components/locomotive_sources/jquery/MIT-LICENSE.txt
1364
+ - vendor/assets/components/locomotive_sources/jquery/bower.json
1365
+ - vendor/assets/components/locomotive_sources/jquery/dist/jquery.js
1366
+ - vendor/assets/components/locomotive_sources/jquery/dist/jquery.min.js
1367
+ - vendor/assets/components/locomotive_sources/jquery/dist/jquery.min.map
1368
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax.js
1369
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax/jsonp.js
1370
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax/load.js
1371
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax/parseJSON.js
1372
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax/parseXML.js
1373
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax/script.js
1374
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax/var/nonce.js
1375
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax/var/rquery.js
1376
+ - vendor/assets/components/locomotive_sources/jquery/src/ajax/xhr.js
1377
+ - vendor/assets/components/locomotive_sources/jquery/src/attributes.js
1378
+ - vendor/assets/components/locomotive_sources/jquery/src/attributes/attr.js
1379
+ - vendor/assets/components/locomotive_sources/jquery/src/attributes/classes.js
1380
+ - vendor/assets/components/locomotive_sources/jquery/src/attributes/prop.js
1381
+ - vendor/assets/components/locomotive_sources/jquery/src/attributes/support.js
1382
+ - vendor/assets/components/locomotive_sources/jquery/src/attributes/val.js
1383
+ - vendor/assets/components/locomotive_sources/jquery/src/callbacks.js
1384
+ - vendor/assets/components/locomotive_sources/jquery/src/core.js
1385
+ - vendor/assets/components/locomotive_sources/jquery/src/core/access.js
1386
+ - vendor/assets/components/locomotive_sources/jquery/src/core/init.js
1387
+ - vendor/assets/components/locomotive_sources/jquery/src/core/parseHTML.js
1388
+ - vendor/assets/components/locomotive_sources/jquery/src/core/ready.js
1389
+ - vendor/assets/components/locomotive_sources/jquery/src/core/var/rsingleTag.js
1390
+ - vendor/assets/components/locomotive_sources/jquery/src/css.js
1391
+ - vendor/assets/components/locomotive_sources/jquery/src/css/addGetHookIf.js
1392
+ - vendor/assets/components/locomotive_sources/jquery/src/css/curCSS.js
1393
+ - vendor/assets/components/locomotive_sources/jquery/src/css/defaultDisplay.js
1394
+ - vendor/assets/components/locomotive_sources/jquery/src/css/hiddenVisibleSelectors.js
1395
+ - vendor/assets/components/locomotive_sources/jquery/src/css/support.js
1396
+ - vendor/assets/components/locomotive_sources/jquery/src/css/swap.js
1397
+ - vendor/assets/components/locomotive_sources/jquery/src/css/var/cssExpand.js
1398
+ - vendor/assets/components/locomotive_sources/jquery/src/css/var/getStyles.js
1399
+ - vendor/assets/components/locomotive_sources/jquery/src/css/var/isHidden.js
1400
+ - vendor/assets/components/locomotive_sources/jquery/src/css/var/rmargin.js
1401
+ - vendor/assets/components/locomotive_sources/jquery/src/css/var/rnumnonpx.js
1402
+ - vendor/assets/components/locomotive_sources/jquery/src/data.js
1403
+ - vendor/assets/components/locomotive_sources/jquery/src/data/Data.js
1404
+ - vendor/assets/components/locomotive_sources/jquery/src/data/accepts.js
1405
+ - vendor/assets/components/locomotive_sources/jquery/src/data/var/data_priv.js
1406
+ - vendor/assets/components/locomotive_sources/jquery/src/data/var/data_user.js
1407
+ - vendor/assets/components/locomotive_sources/jquery/src/deferred.js
1408
+ - vendor/assets/components/locomotive_sources/jquery/src/deprecated.js
1409
+ - vendor/assets/components/locomotive_sources/jquery/src/dimensions.js
1410
+ - vendor/assets/components/locomotive_sources/jquery/src/effects.js
1411
+ - vendor/assets/components/locomotive_sources/jquery/src/effects/Tween.js
1412
+ - vendor/assets/components/locomotive_sources/jquery/src/effects/animatedSelector.js
1413
+ - vendor/assets/components/locomotive_sources/jquery/src/event.js
1414
+ - vendor/assets/components/locomotive_sources/jquery/src/event/ajax.js
1415
+ - vendor/assets/components/locomotive_sources/jquery/src/event/alias.js
1416
+ - vendor/assets/components/locomotive_sources/jquery/src/event/support.js
1417
+ - vendor/assets/components/locomotive_sources/jquery/src/exports/amd.js
1418
+ - vendor/assets/components/locomotive_sources/jquery/src/exports/global.js
1419
+ - vendor/assets/components/locomotive_sources/jquery/src/intro.js
1420
+ - vendor/assets/components/locomotive_sources/jquery/src/jquery.js
1421
+ - vendor/assets/components/locomotive_sources/jquery/src/manipulation.js
1422
+ - vendor/assets/components/locomotive_sources/jquery/src/manipulation/_evalUrl.js
1423
+ - vendor/assets/components/locomotive_sources/jquery/src/manipulation/support.js
1424
+ - vendor/assets/components/locomotive_sources/jquery/src/manipulation/var/rcheckableType.js
1425
+ - vendor/assets/components/locomotive_sources/jquery/src/offset.js
1426
+ - vendor/assets/components/locomotive_sources/jquery/src/outro.js
1427
+ - vendor/assets/components/locomotive_sources/jquery/src/queue.js
1428
+ - vendor/assets/components/locomotive_sources/jquery/src/queue/delay.js
1429
+ - vendor/assets/components/locomotive_sources/jquery/src/selector-native.js
1430
+ - vendor/assets/components/locomotive_sources/jquery/src/selector-sizzle.js
1431
+ - vendor/assets/components/locomotive_sources/jquery/src/selector.js
1432
+ - vendor/assets/components/locomotive_sources/jquery/src/serialize.js
1433
+ - vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.js
1434
+ - vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.min.js
1435
+ - vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.min.map
1436
+ - vendor/assets/components/locomotive_sources/jquery/src/traversing.js
1437
+ - vendor/assets/components/locomotive_sources/jquery/src/traversing/findFilter.js
1438
+ - vendor/assets/components/locomotive_sources/jquery/src/traversing/var/rneedsContext.js
1439
+ - vendor/assets/components/locomotive_sources/jquery/src/var/arr.js
1440
+ - vendor/assets/components/locomotive_sources/jquery/src/var/class2type.js
1441
+ - vendor/assets/components/locomotive_sources/jquery/src/var/concat.js
1442
+ - vendor/assets/components/locomotive_sources/jquery/src/var/hasOwn.js
1443
+ - vendor/assets/components/locomotive_sources/jquery/src/var/indexOf.js
1444
+ - vendor/assets/components/locomotive_sources/jquery/src/var/pnum.js
1445
+ - vendor/assets/components/locomotive_sources/jquery/src/var/push.js
1446
+ - vendor/assets/components/locomotive_sources/jquery/src/var/rnotwhite.js
1447
+ - vendor/assets/components/locomotive_sources/jquery/src/var/slice.js
1448
+ - vendor/assets/components/locomotive_sources/jquery/src/var/strundefined.js
1449
+ - vendor/assets/components/locomotive_sources/jquery/src/var/support.js
1450
+ - vendor/assets/components/locomotive_sources/jquery/src/var/toString.js
1451
+ - vendor/assets/components/locomotive_sources/jquery/src/wrap.js
1336
1452
  - vendor/assets/components/locomotive_sources/underscore/LICENSE
1337
1453
  - vendor/assets/components/locomotive_sources/underscore/README.md
1338
1454
  - vendor/assets/components/locomotive_sources/underscore/bower.json
@@ -1348,7 +1464,6 @@ files:
1348
1464
  - vendor/assets/javascripts/locomotive/bootstrap-datetimepicker.js
1349
1465
  - vendor/assets/javascripts/locomotive/bootstrap-notify.js
1350
1466
  - vendor/assets/javascripts/locomotive/bootstrap-switch.js
1351
- - vendor/assets/javascripts/locomotive/bootstrap-tagsinput.min.js
1352
1467
  - vendor/assets/javascripts/locomotive/canvas-to-blob.min.js
1353
1468
  - vendor/assets/javascripts/locomotive/cmd.js
1354
1469
  - vendor/assets/javascripts/locomotive/cookies.js
@@ -1370,7 +1485,6 @@ files:
1370
1485
  - vendor/assets/stylesheets/locomotive/bootstrap-colorpicker.scss
1371
1486
  - vendor/assets/stylesheets/locomotive/bootstrap-datetimepicker.css
1372
1487
  - vendor/assets/stylesheets/locomotive/bootstrap-switch.css
1373
- - vendor/assets/stylesheets/locomotive/bootstrap-tagsinput.css
1374
1488
  - vendor/assets/stylesheets/locomotive/cropper.css
1375
1489
  - vendor/assets/stylesheets/locomotive/highlightjs/default.css
1376
1490
  - vendor/assets/stylesheets/locomotive/highlightjs/github.css
@@ -1451,6 +1565,7 @@ test_files:
1451
1565
  - spec/models/locomotive/content_asset_spec.rb
1452
1566
  - spec/models/locomotive/content_entry_spec.rb
1453
1567
  - spec/models/locomotive/content_type_spec.rb
1568
+ - spec/models/locomotive/editable_element_spec.rb
1454
1569
  - spec/models/locomotive/membership_spec.rb
1455
1570
  - spec/models/locomotive/page_spec.rb
1456
1571
  - spec/models/locomotive/site_spec.rb
@@ -1,4 +0,0 @@
1
- @import "./typography";
2
- @import "./form";
3
- @import "./buttons";
4
- @import "./messages";
@@ -1,10 +0,0 @@
1
- button[type=submit], input[type=submit] {
2
- @media (min-width: $screen-md-min) {
3
- margin-top: 4em;
4
- }
5
- @extend .btn-block;
6
- @extend .btn-danger;
7
- @extend .btn;
8
-
9
- font-family: $alt-font-family-sans-serif;
10
- }
@@ -1,72 +0,0 @@
1
- $form_input_label_color: #333;
2
- $form_input_border_color: #4999b2;
3
-
4
- .simple_form {
5
- width: 100%;
6
-
7
- fieldset {
8
-
9
- > .input {
10
-
11
- padding: 0px;
12
- background: transparent;
13
-
14
- .form-wrapper {
15
- display: block;
16
- margin-top: 0px;
17
- border: 3px solid $form_input_border_color;
18
- }
19
-
20
- .control-label {
21
- text-transform: uppercase;
22
- font-size: $font-size-base - 3;
23
- line-height: 18px;
24
- color: $form_input_label_color;
25
- }
26
-
27
- select {
28
- -webkit-appearance: none;
29
- -webkit-border-radius: 0px;
30
- border-radius: 0px;
31
- }
32
-
33
- .help-inline, .error-inline {
34
- margin-left: 10px;
35
- font-family: $alt-font-family-sans-serif;
36
- }
37
-
38
- .help-inline {
39
- color: #000;
40
- @include opacity(0.4);
41
- }
42
-
43
- .error-inline {
44
- color: $state-danger-text;
45
- @include opacity(1.0);
46
- }
47
-
48
- }
49
-
50
- }
51
-
52
- a {
53
- color: #000;
54
- }
55
-
56
- .form-actions {
57
- input[type="submit"] {
58
- margin-top: 0px;
59
- }
60
-
61
- p {
62
- text-align: center;
63
- margin-top: 10px;
64
- a {
65
- font-size: $font-size-base - 1;
66
- color: #fff;
67
- @include opacity(0.8);
68
- }
69
- }
70
- }
71
-
72
- }
@@ -1,4 +0,0 @@
1
- .application-message {
2
- @include opacity(0.6);
3
- margin-bottom: 20px;
4
- }
@@ -1,12 +0,0 @@
1
- h1 {
2
- text-align: center;
3
- min-height: 50px;
4
- // letter-spacing: 2px;
5
- margin-bottom: 50px;
6
-
7
- @media (max-width: $screen-sm-max) {
8
- margin-bottom: 30px;
9
- font-size: ceil(($font-size-base * 1.25));
10
- font-weight: 400;
11
- }
12
- }
@@ -1,9 +0,0 @@
1
- .passwords {
2
- .content {
3
- @include make-sm-column-offset(3);
4
- @include make-sm-column(6);
5
-
6
- @include make-md-column-offset(4);
7
- @include make-md-column(4);
8
- }
9
- }
@@ -1,34 +0,0 @@
1
- $sign_in_legend_color: #a2e4f1;
2
-
3
- body.sessions, body.registrations, body.passwords {
4
- .content {
5
- @include make-sm-column-offset(3);
6
- @include make-sm-column(6);
7
-
8
- @include make-md-column-offset(4);
9
- @include make-md-column(4);
10
- }
11
-
12
- h1 {
13
- text-transform: capitalize;
14
- font-size: $font-size-base + 2;
15
- font-family: $alt-font-family-sans-serif;
16
-
17
- img {
18
- position: relative;
19
- top: -2px;
20
- width: 16px;
21
- }
22
-
23
- small {
24
- display: block;
25
- width: 100%;
26
- text-align: center;
27
- text-transform: lowercase;
28
- color: $sign_in_legend_color;
29
- font-size: $font-size-base;
30
- font-weight: 200;
31
- margin-top: 10px;
32
- }
33
- }
34
- }
@@ -1,99 +0,0 @@
1
- # module Locomotive
2
- # module Concerns
3
- # module Page
4
- # module Render
5
-
6
- # extend ActiveSupport::Concern
7
-
8
- # def render(context)
9
- # self.template.render(context)
10
- # end
11
-
12
- # module ClassMethods
13
-
14
- # # Given both a site and a path, this method tries
15
- # # to get the matching page.
16
- # # If the page is templatized, the related content entry is
17
- # # associated to the page (page.content_entry stores the entry).
18
- # # If no page is found, then it returns the 404 one instead.
19
- # #
20
- # # @param [ Site ] site The site where to find the page
21
- # # @param [ String ] path The fullpath got from the request
22
- # # @param [ Boolean ] logged_in True if someone is logged in Locomotive
23
- # #
24
- # # @return [ Page ] The page matching the criteria OR the 404 one if none
25
- # #
26
- # def fetch_page_from_path(site, path, logged_in)
27
- # page = nil
28
- # depth = path == 'index' ? 0 : path.split('/').size
29
-
30
- # matching_paths = path == 'index' ? %w(index) : path_combinations(path)
31
-
32
- # query = if I18n.locale != I18n.default_locale
33
- # site.pages.where(depth: depth).any_of({:fullpath.in => matching_paths}, {"fullpath.#{I18n.default_locale}" => {'$in' => matching_paths}})
34
- # else
35
- # site.pages.where(depth: depth, :fullpath.in => matching_paths)
36
- # end
37
-
38
- # query.each do |_page|
39
- # if !_page.published? && !logged_in
40
- # next
41
- # else
42
- # if _page.templatized?
43
- # %r(^#{_page.fullpath.gsub('content_type_template', '([^\/]+)')}$) =~ path
44
-
45
- # permalink = $1
46
-
47
- # _page.content_entry = _page.fetch_target_entry(permalink)
48
-
49
- # if _page.content_entry.nil? || (!_page.content_entry.visible? && !logged_in) # content instance not found or not visible
50
- # next
51
- # end
52
- # end
53
- # end
54
-
55
- # page = _page
56
-
57
- # break
58
- # end
59
-
60
- # page || site.pages.not_found.published.first
61
- # end
62
-
63
- # # Calculate all the combinations possible based on the
64
- # # fact that one of the segment of the path could be
65
- # # a content type from a templatized page.
66
- # # We postulate that there is only one templatized page in a path
67
- # # (ie: no nested templatized pages)
68
- # #
69
- # # @param [ String ] path The path to the page
70
- # #
71
- # # @return [ Array ] An array of all the combinations
72
- # #
73
- # def path_combinations(path)
74
- # _path_combinations(path.split('/'))
75
- # end
76
-
77
- # #:nodoc:
78
- # def _path_combinations(segments, can_include_template = true)
79
- # return nil if segments.empty?
80
-
81
- # segment = segments.shift
82
-
83
- # (can_include_template ? [segment, 'content_type_template'] : [segment]).map do |_segment|
84
- # if (_combinations = _path_combinations(segments.clone, can_include_template && _segment != 'content_type_template'))
85
- # [*_combinations].map do |_combination|
86
- # File.join(_segment, _combination)
87
- # end
88
- # else
89
- # [_segment]
90
- # end
91
- # end.flatten
92
- # end
93
-
94
- # end
95
-
96
- # end
97
- # end
98
- # end
99
- # end