Compare commits

...

897 Commits

Author SHA1 Message Date
Didier Lafforgue fbcda9cdd6 simply re-organize little piece of code (cleaning stuff) 2012-06-10 01:31:10 +02:00
Didier Lafforgue 6350652e4b Merge pull request #437 from paulsponagl/devise_2_1
Upgrade to devise 2.1
2012-06-09 15:52:05 -07:00
Paul Sponagl a6ba124a9e need to require devise-encryptable 2012-06-09 09:54:58 +02:00
Paul Sponagl 702283322d Upgrade to devise 2.1
rspec and cucumber tests working
untest within a real app
2012-06-08 12:52:00 +02:00
Didier Lafforgue ef66f88f5a forgot to update Gemfile.lock 2012-06-08 11:06:17 +02:00
Didier Lafforgue bae2fe4432 releasing new version: 2.0.0.rc8 2012-06-08 11:04:23 +02:00
Didier Lafforgue 50204b6556 dependency conflict with carrierwave and custom_fields (fixed) 2012-06-08 10:57:09 +02:00
did 11c4f98efc asset picker was not accessible from the Aloha toolbar (fixed now) 2012-06-06 01:34:37 -07:00
did 55b7d4dbf2 status of a redirect page is now 301 (previously 302) 2012-06-05 09:32:10 -07:00
Didier Lafforgue 2bd9e254c8 rails 3.2.5 + remove warnings + fix broken features + enhance upgrade script 2012-06-04 23:23:03 +02:00
did 3f1380408e fix issue #427 + make the content types API features more predictable 2012-06-04 08:26:10 -07:00
Didier Lafforgue 5f9c46b42c Merge pull request #419 from colibri-software/api_auth
API auth
2012-06-02 10:02:23 -07:00
Didier Lafforgue b4dd590f9a Merge pull request #432 from colibri-software/fix_page_drop
Fixed issue with page drop slug on templatized pages
2012-06-02 09:47:08 -07:00
Didier Lafforgue 34ba62c15c Merge pull request #431 from klaffenboeck/master
updated german locale with proper encoding (UTF-8)
2012-06-02 09:36:35 -07:00
did acd46f1c10 fix issue #430 2012-06-02 06:54:16 -07:00
Manfred Klaffenboeck 30557ef8b0 updated german locale with propper encoding (UTF-8) 2012-06-01 19:36:33 +02:00
Alex Sanford 6f5eec18c6 Fixed issue with page drop slug on templatized pages 2012-06-01 14:28:10 -03:00
Didier Lafforgue bc63cd8acf Merge pull request #429 from klaffenboeck/master
Updated german locale
2012-06-01 01:12:23 -07:00
Manfred Klaffenboeck b993b4f0ca Updated german locale 2012-05-31 21:14:46 +02:00
Manfred Klaffenboeck 590c4bb048 added translation for de.locomotive.messages.sending_form 2012-05-31 20:42:42 +02:00
did 2bec96e9f1 add a default message for the locomotive.messages.sending_form translation key (fix issue #428) 2012-05-31 10:03:57 -07:00
did 2568510f01 fix issue #426 2012-05-31 09:41:37 -07:00
did f8725ede67 fix issue #414 2012-05-31 01:41:19 -07:00
did f4ee99b72b fix issue #425 2012-05-30 15:41:11 -07:00
did 763fe5215f fix issue #407 (ie: boolean fields take the false value by default) 2012-05-30 15:30:42 -07:00
did 261575eb94 a little bit of cleaning for the upgrade scripts 2012-05-29 16:24:28 -07:00
Didier Lafforgue b706d50bdf Merge pull request #424 from Sharagoz/master
Update Norwegian locale for v2.0
2012-05-29 16:21:54 -07:00
did 3a4654e8f7 the upgrade script v1.1 did not work correctly + fix issue #403 (more generally, enhance the way jQuery modals were used within the back-office) + select the first inverse_of value of a has_many field (UI) 2012-05-29 15:53:48 -07:00
Bjørn Trondsen a662366637 bug in prev commit 2012-05-29 22:34:38 +02:00
Bjørn Trondsen 6ac3d72aed rename norwegian locale when upgrading 2012-05-29 22:13:41 +02:00
Bjørn Trondsen 8b56ee5889 update norwegian locale 2012-05-29 21:17:17 +02:00
Didier Lafforgue b751e3d990 trying to fix the big problem with jQuery UI modals (if modals have the same z-index, it causes weird behaviours) (WIP) 2012-05-29 01:26:51 +02:00
Didier Lafforgue ae16661286 trying to fix cucumber tests 2012-05-26 15:21:47 +02:00
Didier Lafforgue da2d689bdc fix issue #412 2012-05-26 14:35:04 +02:00
Didier Lafforgue 2ac74c9a50 fix issue #411 2012-05-25 13:24:10 +02:00
Didier Lafforgue 24ae75c6f5 Gemfile.lock gets updated 2012-05-24 23:37:48 +02:00
Didier Lafforgue c58075b7c3 Merge branch 'master' of github.com:locomotivecms/engine 2012-05-24 19:19:57 +02:00
Didier Lafforgue 662e359acb fix issue #393 2012-05-24 19:19:46 +02:00
Mario Visic 8be23f1cc2 Updated the readme a tad with PhantomJS info. 2012-05-25 00:23:13 +08:00
Mario Visic fbef06f103 Merge branch 'poltergeist' 2012-05-25 00:16:33 +08:00
Mario Visic 38098e93da Updated the doco to instruct users to install PhantomJS for testing. 2012-05-25 00:16:25 +08:00
Mario Visic 3a27845fe5 Small fix for poltergeist. 2012-05-25 00:13:55 +08:00
Mario Visic 4c5d6c92d0 Added poltergeist and a small JS fix. 2012-05-25 00:06:07 +08:00
Mario Visic 817ee8b0e5 Merge branch 'master' of github.com:locomotivecms/engine 2012-05-24 23:13:56 +08:00
Mario Visic 13b4d8c606 Do not pass the host option to URL helpers for sitemaps. Fixes #415. 2012-05-24 23:13:25 +08:00
did 6342b94ede Merge branch 'master' of github.com:locomotivecms/engine 2012-05-24 06:47:15 -07:00
did d3e219018b fix issue #388 2012-05-24 06:46:48 -07:00
Mario Visic 415817e20b Merge pull request #409 from waynegerard/label_field_name
Added a setter method for label_field_id in content_types.rb model
2012-05-24 03:35:30 -07:00
did 04d9fe17f8 Merge branch 'master' of github.com:locomotivecms/engine 2012-05-23 15:03:37 -07:00
did d90123e321 public forms are now protected from csrf attacks (see issue #382 2012-05-23 15:03:21 -07:00
waynegerard 2fa81112fc Removing inline rescue in favor of where/try combination for label ID in setter method. Thanks @mariovisic\! 2012-05-22 18:27:38 -07:00
waynegerard be26ae3059 Added a setter method for label_field_id in content_types.rb model. Should resolve issue where label_field_name was not being updated properly through the UI. Fix for issue #398. 2012-05-19 13:51:41 -07:00
Mario Visic 7e0fcb62ee Merge pull request #395 from willcosgrove/patch-1
Fixed typo for bootstrap setting: `data-toogle` to `data-toggle`
2012-05-08 20:49:23 -07:00
Will Cosgrove c0627bf8a7 Fixed typo for bootstrap setting: `data-toogle` to `data-toggle` 2012-05-08 22:31:20 -05:00
Didier Lafforgue e225ad2278 fix issue #385 2012-05-07 00:31:59 +02:00
did a939629cbf new multi_json gem 2012-05-05 02:39:23 -07:00
Didier Lafforgue f42fb1afe1 finally the new version of the multi_json gem (issue #387) 2012-05-05 11:17:18 +02:00
did 03d13d92d0 fix issue #387 2012-05-04 03:35:07 -07:00
Alex Sanford 24e5eb855a Added auth feature for memberships 2012-04-30 16:29:32 -03:00
Alex Sanford 9c15f1cbab Added API sites_controller and auth feature 2012-04-27 14:52:09 -03:00
Alex Sanford 06e493477c Added auth feature for current site 2012-04-27 12:05:21 -03:00
Alex Sanford 96007174cb Added auth feature for content_assets 2012-04-27 08:27:05 -03:00
Alex Sanford a921c44ce9 Fixed access denied error checking step 2012-04-26 16:12:39 -03:00
Alex Sanford 37f87e694c Added auth feature for theme assets 2012-04-26 12:48:05 -03:00
Didier Lafforgue a8646e7ef3 date picker was not correctly displayed in the popup form (has_many relationship) + previous form errors remained even within a fresh new popup 2012-04-26 12:12:55 +02:00
Didier Lafforgue f9a6155c19 content types can auto-reference them (in a many_to_many relationship for instance) 2012-04-26 04:00:46 +02:00
Didier Lafforgue 23600edb1f performance improvements as described in #383 2012-04-26 03:39:23 +02:00
Didier Lafforgue 9613058b97 improve the upgrade script (wip) 2012-04-25 19:09:46 +02:00
Alex Sanford 4e6c106772 Added auth feature for snippets 2012-04-25 10:56:38 -03:00
Alex Sanford d2da4b659e Added auth feature for content entries 2012-04-25 09:51:11 -03:00
Alex Sanford 44aadb8926 Added auth feature for content_types 2012-04-24 15:48:23 -03:00
Alex Sanford 75e694a6f0 Cleaned up API features 2012-04-24 13:37:29 -03:00
Alex Sanford 7dcc1ba3f6 Merge branch 'master' into api_auth
Conflicts:
	features/step_definitions/api_steps.rb
2012-04-24 13:22:35 -03:00
Alex Sanford 1344463222 Cleaned up features 2012-04-24 12:47:32 -03:00
Alex Sanford bf65fa47f3 Added destroy API method for pages and fixed feature 2012-04-24 12:13:26 -03:00
Alex Sanford f53ab18f90 Added features for destroying pages 2012-04-24 12:04:24 -03:00
Didier Lafforgue 0502cf3305 bump version to 2.0.0.rc7 2012-04-23 01:04:06 +02:00
Didier Lafforgue 69c51fbe07 new aloha-rails gem (fixing a typo in a css when precompiling it) 2012-04-23 01:03:21 +02:00
Didier Lafforgue b3902bb3d5 Merge branch 'master' of github.com:locomotivecms/engine 2012-04-22 23:44:24 +02:00
Didier Lafforgue ce5576da09 the extends tag was not looking for the right fullpath (when localization is enabled) + sample in order to modify the tinyMCE settings in the back-office 2012-04-22 23:25:18 +02:00
Mario Visic 283a0d9be4 Merge pull request #378 from davide-malagoli/master
current_user liquid extension (issue #312) added
2012-04-22 03:15:05 -07:00
Didier Lafforgue 57b7cc1ef2 just a quick test to demonstrate the documentation was wrong (issue #377) 2012-04-22 01:27:07 +02:00
Didier Lafforgue 08cf381bc3 simple media plugin for Aloha 2012-04-22 01:14:25 +02:00
Annalisa 632e16b18e issue #321 (current_user) working. url_helpers removed. 2012-04-21 11:06:13 +02:00
Annalisa 043b78a061 strange error 2012-04-21 01:50:37 +02:00
Annalisa fc380e3e4d strange error 2012-04-21 01:31:33 +02:00
Annalisa b87c76bc67 added current_user 2012-04-21 00:54:54 +02:00
Didier Lafforgue d6059c2a9b fix issue #373 2012-04-20 15:42:10 +02:00
Didier Lafforgue fa6e62dd84 Merge branch 'master' of github.com:locomotivecms/engine 2012-04-20 13:13:30 +02:00
Didier Lafforgue 246eadb3fd fix issue #374 2012-04-20 13:11:50 +02:00
Didier Lafforgue 682763445c Merge pull request #372 from GarPit/master
Added missing ru translations
2012-04-19 16:05:41 -07:00
Didier Lafforgue f0e8848ffd repair broken build 2012-04-20 00:35:14 +02:00
Didier Lafforgue 486c6a12a2 fix issue #367 2012-04-20 00:31:48 +02:00
Didier Lafforgue 9b4fc56e82 fix issue #360 2012-04-19 16:30:16 +02:00
PitOn b0a552dfcf added missing ru translations for upcoming 2.0 version 2012-04-18 16:41:24 +04:00
Didier Lafforgue 9267725c9f clean the upgrade script (v1 -> v2) 2012-04-18 14:35:06 +02:00
PitOn d78f99703e added missing ru translations for upcoming 2.0 version 2012-04-18 16:20:36 +04:00
PitOn 06c1317acb added missing ru translations for upcoming 2.0 version 2012-04-18 16:18:38 +04:00
PitOn 23f162f0b3 added missing ru translations for upcoming 2.0 version 2012-04-18 16:16:46 +04:00
PitOn 0719a8bb76 added missing ru translations for upcoming 2.0 version 2012-04-18 16:14:01 +04:00
Didier Lafforgue 9f2cab94cb the very first tests for the API 2012-04-18 02:07:48 +02:00
Didier Lafforgue 792ebd142b bump version to 2.0.0.rc6 (forgot something) 2012-04-17 18:43:14 +02:00
Didier Lafforgue b053ba5a26 bump version to 2.0.0.rc6 2012-04-17 18:42:27 +02:00
Didier Lafforgue 47015d3473 write cucumber tests to illustrate how to deal with a contact form + fix a tiny bug about it 2012-04-17 17:48:42 +02:00
Alex Sanford 494e3c9b51 Fixed author page update scenario 2012-04-17 12:02:29 -03:00
Didier Lafforgue 1d19d606b8 closing textarea tags do not break the page form anymore 2012-04-17 16:13:21 +02:00
Alex Sanford edd236b202 Got authorization working for pages 2012-04-17 10:12:42 -03:00
Didier Lafforgue 67c36191d2 was breaking the API (tests are coming) 2012-04-17 13:53:15 +02:00
Didier Lafforgue 39bb85d163 forgot to push the Gemfile.lock too 2012-04-17 03:11:09 +02:00
Didier Lafforgue bc919ed544 bump version to 2.0.0.rc5 2012-04-17 03:09:17 +02:00
Didier Lafforgue 60df273e4b fix tests for issue #366 2012-04-17 03:02:31 +02:00
Didier Lafforgue 3fca9fa2d3 Merge pull request #366 from dimonzozo/master
Bug while sending notification email
2012-04-16 17:54:52 -07:00
Dmitriy a74a0045a3 Wrong arguments order fixed. 2012-04-17 02:44:19 +04:00
Didier Lafforgue 26662acae9 force version of the multi_json gem (1.2.0) 2012-04-16 20:50:07 +02:00
Alex Sanford 97edb0e4b7 Added show action to page API and fixed some features 2012-04-16 15:36:39 -03:00
Alex Sanford 4f12c2cd10 Created some initial features for API authentication 2012-04-16 15:17:11 -03:00
Didier Lafforgue 3eb521ba75 upgrade FOG 2012-04-16 12:36:30 +02:00
Didier Lafforgue 256a0e4bc0 Merge branch 'master' of github.com:locomotivecms/engine 2012-04-16 12:35:44 +02:00
Didier Lafforgue b25332b262 disable the inline editor launch button if the page to display enabled the cache (quick patch for #353) 2012-04-16 11:49:04 +02:00
Didier Lafforgue 655fe18d72 add UI notifications when a form is submitted + disable the form when it is being submitted + pass the current ability to the presenter + remove debug statements 2012-04-16 11:38:32 +02:00
Didier Lafforgue f973ccef1b preserve whitespace in textarea tags (HAML/Rails bug) 2012-04-14 17:35:11 +02:00
Didier Lafforgue 1ae9557515 back to the original editable_short_text (#349) 2012-04-14 13:38:47 +02:00
Didier Lafforgue 21469ce367 do not display the content types select box if a page is not templatized 2012-04-14 11:55:24 +02:00
Didier Lafforgue 06fa564f37 fix a couple of potential bugs when playing with the site locales 2012-04-13 18:32:55 +02:00
Didier Lafforgue a507d756b7 repair the js slugify method 2012-04-13 18:08:53 +02:00
Mario Visic f7388d14e7 Merge pull request #356 from colibri-software/inline_editor_firefox_fix
Inline editor bug in Firefox
2012-04-13 07:21:56 -07:00
Mario Visic ebd3081205 Merge remote-tracking branch 'origin/master' 2012-04-13 22:14:23 +08:00
Mario Visic edca6323fb Fixed a regression when updating javascript stringify. Fixes #355. 2012-04-13 22:11:44 +08:00
Didier Lafforgue 9dc3f778a4 Merge pull request #351 from willcosgrove/spinny-toggle-buttons
Spinny toggle buttons
2012-04-13 06:40:07 -07:00
Didier Lafforgue d0698b1ffc fix issue #348 2012-04-13 15:29:06 +02:00
Alex Sanford 56a0affbcb Changed iframe resize function
Instead of resizing the iframe based on the height of the body element
of the iframe content, do it based on the entire content height. Also,
don't compare the inner content height to the body height of the outer
page, but use the iframe height instead.
2012-04-13 10:03:31 -03:00
Didier Lafforgue e2b73d786a Merge pull request #345 from locomotivecms/no_require
Require the engine on gem load.
2012-04-13 05:48:22 -07:00
Didier Lafforgue 7a595208aa fix issue #338 2012-04-13 14:38:00 +02:00
Will Cosgrove 560afc6b0a Fixed my css and javascript problems 2012-04-11 15:35:23 -05:00
Will Cosgrove cd703970b4 Added new buttons and styling 2012-04-11 14:24:41 -05:00
Didier Lafforgue 106cc6fc50 fix issue #346 2012-04-11 00:26:59 +02:00
Mario Visic 4bf16b00f9 Require the engine on gem load. 2012-04-10 18:06:28 +08:00
Mario Visic 95eb58bb36 Merge pull request #341 from dsapala/master
misspelled wizzard
2012-04-08 08:26:53 -07:00
Mario Visic f74306503b Use unidecoder for converting non ascii charcters for page slugs. Fixes #340 2012-04-08 15:13:07 +08:00
Mario Visic 22d55cf0e0 Slugs should not have 'dot' in them. 2012-04-08 14:42:19 +08:00
Sergey Kuleshov 2798e15481 Made JS permalink regexp more generic for non–latin languages.
Fixed specs for permalinks generated by stringex.
2012-04-08 14:41:03 +08:00
Sergey Kuleshov ad9bd5f5f3 support cyrilic in slug 2012-04-08 14:40:43 +08:00
Dan Sapala 087f9c6c55 fixing misspelled word wizard 2012-04-07 15:59:50 -04:00
Mario Visic 63c17313fb Test the 1.0 stable branch. 2012-04-06 23:39:29 +08:00
Mario Visic 7260f36be7 Downcase subdomains and domains when given as user input. 2012-04-06 23:10:16 +08:00
Mario Visic e413373858 Test the master and 1.0 stable branches. 2012-04-06 16:13:24 +08:00
Mario Visic 98f48c00c5 Merge branch '2.0.0.rc' 2012-04-06 16:10:56 +08:00
Mario Visic 760687d3fe Small cucumber steps fix that was messing with routing. 2012-04-06 16:08:06 +08:00
Mario Visic 7be37cf8d2 Merge branch 'bufix/336_custom_mounting_path' into 2.0.0.rc 2012-04-06 15:55:13 +08:00
Mario Visic 6677689902 Load the locomotive mount path earlier in the JS to make it available for backbone models. Fixes #336 2012-04-06 15:54:54 +08:00
Mario Visic 22f34a5a60 Added a failing feature for #336. 2012-04-06 15:36:19 +08:00
Didier Lafforgue 6bd1154886 use the last version of mongoid / rails + bump the new gem version (rc.4) 2012-04-02 21:46:23 +02:00
Mario Visic ea62835b2e Fixed up some deprication warnings. 2012-04-02 21:56:00 +08:00
Mario Visic 29e40b39ea Removed output when compiling assets. It seems to break vendored assets when running as an engine. 2012-04-02 21:46:08 +08:00
Mario Visic 4c1e9fa9c4 Fix the problem where the last domain could not be removed. Closes #335. 2012-04-02 21:11:30 +08:00
Mario Visic f134601306 Added a passing feature for adding a domain. Failing one for removing a domain. 2012-04-02 19:57:24 +08:00
Mario Visic 114218b8c4 Merge remote-tracking branch 'origin/2.0.0.rc' into 2.0.0.rc 2012-04-02 19:28:21 +08:00
Mario Visic 60d253bd93 Test the 2.0.0rc branch on travis. 2012-04-02 19:27:44 +08:00
Didier Lafforgue b06b7b50aa the filter base file was missing, my bad (thanks Joel) 2012-04-02 11:57:52 +02:00
Mario Visic 370ec26d65 Allow engine assets to be precompiled when `config.assets.initialize_on_precompile` is set to false. 2012-04-02 15:31:48 +08:00
Didier Lafforgue f0e41205fd re-organize filters + drop unused tags 2012-04-02 02:41:52 +02:00
Didier Lafforgue 21c5e8a627 small optimization when retrieving a page from a path 2012-03-29 16:17:09 +02:00
Didier Lafforgue 7877f11669 Merge branch '2.0.0.rc' of github.com:locomotivecms/engine into 2.0.0.rc 2012-03-28 17:33:48 +02:00
Didier Lafforgue 3f6e7acda6 fix issue #333 2012-03-28 17:33:20 +02:00
Didier Lafforgue 35e29d0e4b Merge pull request #331 from pimpin/2.0.0.rc
2.0.0.rc
2012-03-27 16:25:49 -07:00
Didier Lafforgue 11d92ab80e nested templatized pages finally done (+ specs) + upgrade gems + change the zindex value of the start button for the inline editor + change version (rc.3) for the next rc release 2012-03-28 00:26:32 +02:00
Didier Lafforgue 2329f26e4d new liquid filter: default 2012-03-26 18:12:16 +02:00
Didier Lafforgue 90e1c4f438 preserve GET parameters when paginating a collection 2012-03-26 17:58:01 +02:00
Didier Lafforgue ed15c0d6b5 templatized pages can have now sub pages 2012-03-26 16:31:28 +02:00
Pierre Merlin 9cb48a3ad9 Adding public admin_ui.fr.yml for toolbar 2012-03-23 18:54:42 +01:00
Pierre Merlin 65c570c4aa Update app/assets/stylesheets/locomotive/inline_editor/layout.css.scss 2012-03-23 16:53:42 +01:00
Pierre Merlin 8b80a3e840 Update app/assets/stylesheets/locomotive/inline_editor/layout.css.scss 2012-03-23 15:57:55 +01:00
Didier Lafforgue a8d57794de fix issue #292 2012-03-23 01:29:12 +01:00
Didier Lafforgue e9bf29f297 the last commit broke the test suite: fixed now 2012-03-23 00:41:04 +01:00
Didier Lafforgue 58c5e9e238 Merge pull request #327 from belighted/2.0.0.rc
Add nav compatibility with twitter menu dropdown
2012-03-22 16:21:38 -07:00
Didier Lafforgue b7424b1fd4 implement the auto_discovery_link_tag liquid filter (feature #206) 2012-03-23 00:18:32 +01:00
Didier Lafforgue a9aeffba9b it is now possible to change the response type of a page + correct translations in French 2012-03-22 19:20:31 +01:00
Didier Lafforgue 6b8e3db8c3 add missing files for the last commit about the control editable element + implement feature #326 2012-03-22 02:13:24 +01:00
Didier Lafforgue b3b0a5ac16 new editable element for a page: the control 2012-03-22 00:50:34 +01:00
Didier Lafforgue ab5a4755b8 make the editable elements more robust when working with localization + write tests to prove it 2012-03-21 03:21:29 +01:00
did e2f60f2e15 the template of related pages were not updated for the non default locale 2012-03-19 09:15:12 -07:00
Didier Lafforgue cfbe68564d fixed editable elements (wip) 2012-03-19 02:29:59 +01:00
Gil Vandendriessche caa0e69760 Add nav compatibility with twitter menu dropdown 2012-03-15 11:39:20 +01:00
Didier Lafforgue 1ef1e3fbf4 bump to rc2 2012-03-14 01:32:16 +01:00
Didier Lafforgue 834042fda3 bump version 2012-03-14 01:20:55 +01:00
Didier Lafforgue ada199cf3c Merge branch '2.0.0.rc' of github.com:locomotivecms/engine into 2.0.0.rc 2012-03-14 01:16:10 +01:00
Didier Lafforgue fbd945cf6d implement feature #324 2012-03-14 01:16:01 +01:00
Didier Lafforgue 79f958c505 create mongoDB indexes for locomotive models without any errors 2012-03-13 16:37:19 +01:00
Didier Lafforgue fad363a92a use the full witdh when displaying the UI of the has_many type 2012-03-13 16:13:40 +01:00
Mario Visic 52247242fc Requiring locomotive is now much less noisy. 2012-03-12 14:04:52 +08:00
Didier Lafforgue 37374207e8 wrong spaces in one of the locale yml files 2012-03-12 03:21:28 +01:00
Didier Lafforgue fbb92010e9 Merge branch '2.0.0.rc' of github.com:locomotivecms/engine into 2.0.0.rc 2012-03-12 03:13:00 +01:00
Didier Lafforgue 9a9f270d99 fix issue #317 + with_scope works now with has_many relationships + clean code 2012-03-12 03:09:20 +01:00
Didier Lafforgue 5e31865f3b Merge pull request #323 from paulsponagl/de_locale_changes_final_2.0
De locale changes final 2.0
2012-03-09 14:14:59 -08:00
Paul Sponagl fa9cbe2276 Neuer -> Neue 2012-03-09 16:26:19 +01:00
Paul Sponagl ca4640addb Final German translation 2012-03-09 16:20:03 +01:00
Didier Lafforgue 1c902a5448 fix a bug about the editable_file not correctly displayed in a snippet given as an argument of the new nav tag 2012-03-09 13:05:44 +01:00
Didier Lafforgue 7ab8110e41 with_scope also takes care of order_by (pull request #278) 2012-03-09 01:01:09 +01:00
Didier Lafforgue 4cccff065a merge 2012-03-08 19:43:42 +01:00
Didier Lafforgue b3b7519c7c new version of the custom_fields gem 2012-03-08 19:40:48 +01:00
did 1f49eca09f with_scope did not resolve (ie the Liquid way) correctly the values 2012-03-08 09:24:33 -08:00
Didier Lafforgue effce313bf Merge pull request #319 from paulsponagl/nav_with_liquid_2.0
added a snippet option to the liquid nav tag
2012-03-07 17:44:00 -08:00
Didier Lafforgue 038d19d3af merge pull request #318 2012-03-08 02:43:26 +01:00
Didier Lafforgue 0c65516807 fix issue #320 2012-03-08 02:32:59 +01:00
Paul Sponagl b13c5d1d40 added a snippet option to the liquid nav tag
this is useful if you want to render more than
just a page.title string within the nav list item.
(page.menue_image, page.menue_teaser...)
use nav snippet: "<liquid snippet>" to provide a string
or nav snippet: "<snippetname>" to load the snippet from db.

added page.<editable_field> for usage within liquid templates
2012-03-07 16:32:25 +01:00
Didier Lafforgue 37042eaa03 the content_entries API returns always a flat list of entries + fix a bug about cycling dependencies when the content_type has a field named source 2012-03-07 02:56:56 +01:00
Didier Lafforgue ac823aac66 entries can be grouped by a belongs_to field in the back-office + add the show action for the content_entries API 2012-03-07 01:39:24 +01:00
did f77bdd9826 fix #289. This fix is different from the one in the master branch. It only the filename (without the whole path and the extension) 2012-03-05 14:17:33 -08:00
did 1da5617b80 it did not display the no_site page 2012-03-05 00:09:54 -08:00
Didier Lafforgue fcf32f9d53 update deutch translations 2012-03-03 11:23:39 +01:00
did a1cbdf9ed8 page templates were not updated if a related snippet got modified (BUG) 2012-03-02 08:37:54 -08:00
Didier Lafforgue 989f608755 change the default way to config AWS for carrierwave + fix issue #299 2012-03-02 01:46:02 +01:00
Didier Lafforgue 05baecad0b change the path to files added in the content entries + ui settings are a hash not an object 2012-03-02 00:31:45 +01:00
Didier Lafforgue 3e3691ad4a upgrade to mongoid 2.4.5 + allow authors to edit editable elements from the back-office (bug) 2012-03-01 16:39:38 +01:00
Didier Lafforgue 74038467aa Merge branch '2.0.0.rc' of github.com:locomotivecms/engine into 2.0.0.rc 2012-03-01 11:07:42 +01:00
Didier Lafforgue 50a3addf45 fix ALL the cucumber tests + also solve a couple of UI bugs with the has_many and many_to_many relationships 2012-03-01 11:07:22 +01:00
Didier Lafforgue b994b87194 fixing cucumber tests (still wip) 2012-02-29 02:11:56 +01:00
Didier Lafforgue c5577240de add the engine version in the footer (useful) 2012-02-29 01:15:49 +01:00
did a1bc3db8a6 path to codemirror/overlay.js has been modified in the last version of the codemirror gem 2012-02-28 06:54:02 -08:00
Didier Lafforgue a2308787f1 fix theme assets tests 2012-02-28 11:25:51 +01:00
did 520b68104b fixing tests (wip) + sync javascript objects when updating an entry in a has_many relationship 2012-02-27 03:48:06 -08:00
Didier Lafforgue c6e1276974 fix the broken tests 2012-02-21 01:45:45 +01:00
Didier Lafforgue fa2cd996ce icons for redirect and templatized pages were not displayed in the back-office + fix the random issue when getting an API token in development (very weird behaviour) + remove the default mongoid scope for pages + force the depth 2012-02-20 17:21:32 +01:00
Didier Lafforgue 61281db943 the API for content_types now allows to change the label_field property of a content type 2012-02-20 16:16:59 +01:00
Didier Lafforgue c5ddabd585 new version of the custom_fields gem 2012-02-20 10:53:46 +01:00
Didier Lafforgue dd9b382637 alpha version of the upgrade script (good results with my existing locomotive sites) + fix bugs according to my tests with my existing live websites + remove useless code (polishing) 2012-02-20 01:15:43 +01:00
Didier Lafforgue dae0b665ac script to upgrade from 1.0. to 2.0 (wip) 2012-02-19 10:38:56 +01:00
Didier Lafforgue 8f1ac5968f better way of declaring a hosting env 2012-02-18 15:55:20 +01:00
Didier Lafforgue ffee024a96 a little bit of cleaning + prepare the engine to make it work with the hosting extensions 2012-02-18 01:57:06 +01:00
Didier Lafforgue d0cc2984b8 upgrade fog (we need a newer version for the heroku-api gem) 2012-02-17 11:31:51 +01:00
Didier Lafforgue ecf6998a68 fix the cucumber tests for pages 2012-02-17 09:56:11 +01:00
Didier Lafforgue 4269a00985 fixing cucumber tests (wip) 2012-02-17 01:16:22 +01:00
Didier Lafforgue 085a54d7c1 introduce the proxy collection liquid drop so that we can paginate for real + fix the cucumber features for the public part of the engine 2012-02-17 00:51:33 +01:00
Didier Lafforgue 02e48f5c36 fix the specs for the page model 2012-02-16 22:07:00 +01:00
Didier Lafforgue 73b559260e fix specs for the content_type and editable_element models 2012-02-16 16:17:30 +01:00
Didier Lafforgue 2fd0410b66 tests pass for the account, content_entry and content_asset models 2012-02-16 12:42:41 +01:00
Didier Lafforgue 6619d4e5dc all the non-models specs have been fixed 2012-02-16 02:45:14 +01:00
Didier Lafforgue 64a050dff9 fixing specs (wip) + cell specs are fine 2012-02-16 01:32:37 +01:00
Didier Lafforgue 87c8f3bfd7 enhance the nav tag (allow custom css classes for the list and the selected menu item) + clean the locomotive.rb template file 2012-02-15 18:26:58 +01:00
Didier Lafforgue 3b5d04238f remove deprecated warning about ActiveSupport::Concern + add the handle property to Page in order to retrieve them more easily (very useful to display a page from an external controller for instance 2012-02-11 00:39:06 +01:00
Didier Lafforgue ca380de115 the admin path is not used anymore (use Locomotive.mounted_on instead) 2012-02-10 10:05:56 +01:00
Didier Lafforgue da8309c4b1 a more robust way to pass the content_locale parameter in an ajax call 2012-02-10 01:46:35 +01:00
Didier Lafforgue 1332185d85 the locale was missing when saving an editable element by the inline editor 2012-02-10 01:42:06 +01:00
Didier Lafforgue 62eaeb10f5 templatized page can now use models from the main app + add new liquid filters 2012-02-10 00:57:57 +01:00
Didier Lafforgue 39d9c354da API access for the current site + easy way to specify the localization of any controllers + fix a minor bug about adding/removing domains 2012-02-09 11:36:10 +01:00
Didier Lafforgue a5e9e52996 allow the main app to add custom code in the locomotive layout 2012-02-07 15:20:38 +01:00
Didier Lafforgue 51a0862d89 use a string instead of a symbol for X-Message-Type causing an error in Passenger 2012-02-07 12:19:54 +01:00
Didier Lafforgue b4afec5fd3 flags are clickable 2012-02-07 11:59:55 +01:00
Didier Lafforgue 219f6e1339 upgrade to custom_fields 2.0.0.rc4 2012-02-07 11:46:07 +01:00
Didier Lafforgue f1662770e7 use the default carrierwave settings for envs other than development and production + does not include the templates of snippets in the theme assets index page (it was breaking the layout in locomotive for some snippets) 2012-02-07 11:17:56 +01:00
Didier Lafforgue f2467bbf42 ask for default site locale when creating the first site 2012-02-07 01:29:33 +01:00
did 112d61ac3b no more references to zip templates 2012-02-06 08:58:50 -08:00
did 5fd244e66c do not mention DelayedJob anymore 2012-02-06 02:44:02 -08:00
did fa36b95a9d get rid of warnings about InstanceMethods (deprecated) + make the engine work smoother with an existing app + clean code 2012-02-06 00:54:09 +01:00
did 25e08596ef refactor the code (move some pieces of code into the custom_fields gem) + solve a ton of bugs: circular dependencies inside the content_entry presenter, fix Locomotive.mounted_on (broken in rails 3.2), js errors when creating a page, locale switcher broken if a page was not translated in the target locale 2012-02-04 02:10:55 +01:00
did 2a911d912c implement the UI for the many_to_many relationship (WIP) 2012-02-03 01:50:45 +01:00
did 9e9fe49ccf the has_many ui component is done 2012-02-02 16:53:26 +01:00
did 1703c05693 can edit memberships now (js bug) 2012-02-01 15:15:20 +01:00
did 42a2bba538 sort and remove entries from a has_many relationship 2012-02-01 04:09:35 -08:00
did dfd437a762 fix an issue with compass + move to rails 3.2 + switch from mongoid_acts_as_tree to mongoid_tree + implement the UI to deal with has_many field types (wip) 2012-02-01 02:01:42 +01:00
did e2bd55fe35 add the UI for the belongs_to custom field 2012-01-31 01:50:09 +01:00
did b132c3bba9 merge 2012-01-30 11:14:00 +01:00
did c9f07c823f remove the old way of doing cross domain authentication (use the :domain => all option) + fix a couple of tiny bugs 2012-01-30 10:56:38 +01:00
Mario Visic 442e254202 Fixed a problem in the spec_helper preventing tests from being run. 2012-01-29 19:41:53 +11:00
Maik Kempe 0d747b14fe [➠] Include gemspec dependencies in Gemfile. 2012-01-29 19:15:13 +11:00
did a85db53520 add .css to dialog.scss 2012-01-28 12:59:04 +01:00
did b93c7f8f51 remove the import/export functionalities (replaced by the API and the new locomotive editor) + upgrade gems (codemirror, ...etc) 2012-01-28 12:41:00 +01:00
did 9f7ac8630e Merge branch '2.0.0.rc' of github.com:locomotivecms/engine into 2.0.0.rc 2012-01-28 01:05:47 -08:00
did b33d081c28 use the view_context method to reach helper methods from a controller 2012-01-28 01:05:26 -08:00
Gregory horion 0d5d2af27f give me the rool url in the 2.0.0rc please
Conflicts:

	config/routes.rb
2012-01-28 16:12:10 +11:00
did c5692aeb2a fix errors when deploying a new brand new engine instance 2012-01-27 02:27:26 +01:00
did b5fa2c761a change the location url for the API responses + force the use of the default site locale when creating a new entry, content type or page 2012-01-26 07:51:32 -08:00
did 192518d258 disable the rethrow exceptions option for the liquid templates 2012-01-26 02:43:55 +01:00
did 50917a919e Use the 2.0.0.rc branch for the custom_fields gem 2012-01-26 02:41:31 +01:00
did c0b8587eb2 rename the i18n site module into locales in order to avoid conflicts with the original i18n + rendering a page according to a locale specified in the url seems to work (tests are following) 2012-01-26 02:33:39 +01:00
did 11383f9c05 remove useless tmp files from git 2012-01-25 22:34:48 +01:00
did 4600f94922 extend i18n to pages (wip) 2012-01-25 22:07:10 +01:00
Mario Visic e849318cc4 Fixed a few remaining typos. 2012-01-25 22:24:36 +11:00
Mario Visic 44b3579e02 Removed the locomotive init. 2012-01-25 22:24:13 +11:00
Mario Visic 5c191e59cd Merge remote-tracking branch 'origin/2.0.0.rc' into 2.0.0.rc
Conflicts:
	Gemfile.lock
2012-01-25 22:20:05 +11:00
Mario Visic 840609cbce Merge remote-tracking branch 'origin/master' into rails_3_1
Conflicts:
	Gemfile
	Gemfile.lock
	app/cells/locomotive/menu_cell.rb
	app/helpers/admin/content_types_helper.rb
	app/models/content_instance.rb
	app/models/page.rb
	app/views/admin/shared/menu/_contents.html.haml
	config/initializers/locomotive.rb
	config/locales/admin_ui.de.yml
	config/locales/admin_ui.en.yml
	config/locales/admin_ui.es.yml
	config/locales/admin_ui.fr.yml
	config/locales/admin_ui.it.yml
	config/locales/admin_ui.nl.yml
	config/locales/admin_ui.no.yml
	config/locales/admin_ui.pt-BR.yml
	config/locales/admin_ui.ru.yml
	lib/generators/locomotive/install/templates/locomotive.rb
	lib/locomotive/configuration.rb
	locomotive_cms.gemspec
	spec/models/locomotive/account_spec.rb
2012-01-25 22:16:43 +11:00
Corey Woodcox 7aadd9d129 add a message for deprecated config option 2012-01-25 18:52:55 +11:00
Corey Woodcox 1a5050a0c1 case sensitive search is a monster. 2012-01-25 18:52:54 +11:00
Corey Woodcox 81db1da423 fix spelling error in locales 2012-01-25 18:52:54 +11:00
did 7ace1d9a48 fix the broken link to the back-office in the toolbar when the inline_editor tag is missing 2012-01-24 22:04:49 +01:00
did e523cb952c access entries of a content type from the API 2012-01-24 21:33:34 +01:00
did ab507dc165 change the default API base path + implement the API for content_assets, content_types and pages resources 2012-01-24 21:16:53 +01:00
did 0534c5504f prevent pow to crash when no flash message (bug) + add api resources for pages 2012-01-24 01:00:41 +01:00
did 739d2db0a9 first api draft 2012-01-23 09:05:50 +01:00
Gil Vandendriessche d665a85591 Add sample option on import rake task 2012-01-21 16:05:36 +11:00
Mario Visic 07ff99e135 Ensure uniqueness and format of an accounts email address. 2012-01-21 15:51:38 +11:00
Mario Visic 40c2902e80 Added shoulda matchers. 2012-01-21 15:51:16 +11:00
Mario Visic 0a2bd13058 Merge pull request #283 from cwoodcox/facebook
Upgrade to devise 1.5.x
2012-01-20 20:19:08 -08:00
Mario Visic 34f9755d9a Altered admin menu cells inheritence, fixes #257 without limiting cells version. 2012-01-21 15:10:58 +11:00
Corey Woodcox 868c2d2e0e upgrade devise to 1.5.x 2012-01-20 19:32:53 -07:00
did 4d0f8610c5 bad display of content types if none + add new gems for tinymce and aloha 2012-01-21 01:48:00 +01:00
did 7af9ea34a6 trying to make it work with the precompilation of assets (issue with Aloha and TinyMCE) 2012-01-20 14:46:09 +01:00
did 0f3c672777 make the toolbar smaller 2012-01-18 02:04:48 +01:00
did fc20fe70c9 fix annoying bug about popups within the submenu 2012-01-18 01:54:26 +01:00
did b8b8cef089 make the edition of content types more robust (ex: better errors handler) 2012-01-18 01:43:01 +01:00
did 09d6060633 refactoring (rename modules, clean code, remove useless files, ...etc) + improve the inline editor module (locale picker + better ui workflow) 2012-01-17 17:04:45 +01:00
did 801f7bfca5 Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2012-01-17 12:05:52 +01:00
did e210953d01 inline editor work in progress 2012-01-17 12:05:39 +01:00
did 7169abb8c2 stylish buttons in the toolbar 2012-01-17 03:21:30 +01:00
did 89020e7cf5 got a working version of the inline editor 2012-01-17 02:53:49 +01:00
did ebe149110b first draft of the new inline editing toolbar 2012-01-16 23:59:59 +01:00
Mario Visic 15f9111ea8 Small fix to the global action spec. 2012-01-15 17:05:33 +11:00
Mario Visic 9a06042c4b Fixed some main menu tests. 2012-01-15 16:50:58 +11:00
Mario Visic ddfd8c6a07 Fixed up some specs for the global action spec. 2012-01-15 15:38:07 +11:00
Mario Visic ae244c2703 Fixed a failing test (class missing namespace). 2012-01-15 15:05:50 +11:00
Mario Visic 4622c4359f Fixed up a failing test due to the i18n module, left a fixme note. 2012-01-15 15:05:31 +11:00
Mario Visic 216b77ab41 Fixed up a bad merge of the content instance spec changes. 2012-01-15 14:50:23 +11:00
did 4060b1859f use the right path to the back-office in the js components as well as in the middlewares 2012-01-14 14:54:01 +01:00
Mario Visic a50715091d Merge remote-tracking branch 'origin/rails_3_1' into rails_3_1 2012-01-15 00:03:06 +10:30
Mario Visic 8ac8289394 Merge remote-tracking branch 'origin/master' into rails_3_1
Conflicts:
	app/models/content_instance.rb
	config/locales/admin_ui.de.yml
	public/javascripts/admin/inline_editor_toolbar.js
	spec/models/content_instance_spec.rb
2012-01-15 00:02:46 +10:30
Mario Visic c2779dde51 Merge pull request #277 from jstirk/pr-229
German locale changes from locomotivecms/engine#229
2012-01-14 05:11:19 -08:00
benni 00035287c3 Update german locales (admin_ui and formtastic)
Conflicts:

	config/locales/admin_ui.de.yml
	config/locales/formtastic.de.yml
2012-01-14 23:19:57 +10:30
benni edc1907cfa Fixed i18n bug in german locale when creating a new resource from api. 2012-01-14 23:13:18 +10:30
did 531017ab62 merging 2012-01-14 13:14:59 +01:00
did 50a2453995 polish again the content_locale picker 2012-01-14 13:12:44 +01:00
Mario Visic 23f3705223 Added a contributing section to the readme. 2012-01-14 22:34:39 +10:30
Mario Visic 14fc4bf12d Merge remote-tracking branch 'origin/master' 2012-01-14 22:07:08 +10:30
Mario Visic a0d02b2fce Add a failing tests for ContentInstance#set_visibility returning false. 2012-01-14 22:06:42 +10:30
Mario Visic 81b89ba389 Merge pull request #273 from giorgian/fix_content_not_visible
Fix a before_filter preventing to save a content instance with a
2012-01-14 03:36:10 -08:00
Mario Visic 76b611b848 Merge pull request #268 from paulsponagl/issue_240
fix issue 240 by using slug to find content-type
2012-01-14 03:22:58 -08:00
Mario Visic 9aa6bf89be Merge pull request #270 from giorgian/fix_i18n_files_for_psych
Fix i18n files so that they don't make Psych angry.
2012-01-14 02:59:42 -08:00
Mario Visic 7eccb97b44 Merge pull request #276 from antulik/master
Added russian translation for tiny_mce image uploader
2012-01-14 02:38:01 -08:00
Anton Katunin 3fad905314 Added russian translation for tiny_mce image uploader 2012-01-14 21:05:41 +10:30
Mario Visic 0476771ee4 Merge pull request #271 from twinslash/russian_locale
Added russian localisation to tiny_mcs
2012-01-14 02:21:05 -08:00
Mario Visic e6a527f0f5 Merge pull request #275 from twinslash/russian_locale_to_inline_editor
Added ru locale to inline_editor
2012-01-14 01:58:14 -08:00
Mario Visic 8f5a363d74 Remove cucumber-rails version. 2012-01-14 16:38:42 +10:30
Mario Visic 75b0137230 Merge remote-tracking branch 'origin/master' into rails_3_1
Conflicts:
	Gemfile
	Gemfile.lock
	features/support/env.rb
	locomotive_cms.gemspec
	spec/cells/locomotive/global_actions_spec.rb
	spec/cells/locomotive/main_menu_cell_spec.rb
	spec/cells/locomotive/settings_menu_cell_spec.rb
2012-01-14 16:37:24 +10:30
Mario Visic 04b1a7aa90 Bump RedCloth to a newer version to avoid warnings when running tests. 2012-01-14 13:04:34 +08:00
did d191d2d783 polish the content_locale picker + does not display the picker if less than 2 locales 2012-01-14 02:08:03 +01:00
did 0489bbe4c2 implement the mechanism to pick a different locale for content types + implement multi-language for content types + rename scss files to css.scss 2012-01-14 01:38:09 +01:00
Mac Shifford 3e7babc9dd Added ru locale to inline_editor 2012-01-13 11:55:28 +03:00
Pietro Giorgianni 99d889f6e2 Fix a before_filter preventing to save a content instance with a
custom field `active' or `visible' set to false.
Fixes #272.
2012-01-12 16:18:55 +01:00
Mac Shifford 131331633f Added russian localisation to tiny_mcs 2012-01-12 17:19:42 +03:00
Pietro Giorgianni 6d08daaba3 Fix i18n files so that they don't make Psych angry.
(Fixes #269)
2012-01-10 15:00:07 +01:00
did 42db5ba656 namespace assets in vendor 2012-01-10 09:09:56 +01:00
did 01c5de36a5 add the ui element to select the languages for a site 2012-01-09 17:24:34 -08:00
did 4c204ef6a6 refactor and clean code (wip) + the api controller has been deleted and replace by the entry_submission_controller (+ custom responder) 2012-01-09 06:49:59 -08:00
Paul Sponagl 27dd3b2001 Fit issue 240 by using slug to find content-type
export.rb exports targets with
field_attributes['target'] = target_klass._parent.slug
but import imports it with:
target_content_type = site.content_types.where(:name => association.target).first

this fails if one uses capitalized names for Models.
i changed the default.zip to contain a site yaml with capitalized
Model-Names too.
2012-01-09 15:01:51 +01:00
did 435d4067c0 namespace vendor assets 2012-01-08 16:27:13 -08:00
did 5dfbb2bdb7 upgrade to the last version of delayed_job_mongoid gem + remove reference to the previous handlebars-rails gem (just add the js file instead) + refactor the way to display the list of content types in the back-office menu 2012-01-08 16:17:31 -08:00
did a650acd535 forgot to reflect changes in the gemspec file 2012-01-07 03:11:48 +01:00
did 9a21cd818a new rspec-cells gem 2012-01-07 02:53:33 +01:00
did a1e692a34d fix tests suite with ruby 1.9.2 2012-01-07 02:49:23 +01:00
did dc24c1b184 update delayed_job / delayed_job_mongoid gems (issue #267) 2012-01-07 01:39:30 +01:00
Mario Visic c881750d78 Bundle update cells. 2012-01-05 01:47:10 +08:00
Mario Visic 5719381ba5 Merge remote-tracking branch 'origin/master' 2012-01-05 01:46:54 +08:00
Mario Visic b9755947ff Limit cells to version 3.7, fixes #257 and fixes #260 2012-01-05 01:44:32 +08:00
Mario Visic 8a493088ca Merge pull request #263 from paulsponagl/de-translations
de translations
2012-01-04 09:41:23 -08:00
Paul Sponagl 2fd7b47b61 Revert "update cells dependency"
This reverts commit 9a28ecbd1e.
2012-01-04 17:53:58 +01:00
Paul Sponagl df10701746 added translations af bennibu 2012-01-04 17:43:47 +01:00
Paul Sponagl dc324893ce german translation additions 2012-01-04 14:12:41 +01:00
Mario Visic 0926286318 The content liquid drop is now contents (plural). 2012-01-04 21:06:06 +08:00
did 0f1b4f59d3 listing all entries (done) + fix bugs + tweak ui 2012-01-04 02:07:53 +01:00
did 81fc524fdc Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2012-01-02 05:54:18 -08:00
did 912251d49b big refactoring (wip) + add/edit entries for content types 2012-01-02 05:54:01 -08:00
Paul Sponagl 9a28ecbd1e update cells dependency 2011-12-27 23:34:00 +01:00
Mario Visic a65a871e19 Fixed a tiny bug preventing the robots controller rending. 2011-12-27 21:31:36 +08:00
did e9ef4d48c3 content_instance becomes now content_entry with its shortcut content_type.entries + change references to the old custom_fields API 2011-12-23 00:45:32 +01:00
did 9130544516 refactoring the creation of custom contents 2011-12-22 14:28:12 -08:00
did 2068fe060d it becomes possible to add options for the select type 2011-12-22 07:45:42 -08:00
did 81a6569fe7 UI compoment to add options for the select type field (wip) 2011-12-22 02:59:30 +01:00
did d1bb45d7c8 polishing the UI for the content types, refactoring still in progress 2011-12-22 01:31:33 +01:00
did 00283993c0 minimal version of the new UI for content types 2011-12-21 15:24:39 +01:00
did 217000042a refactoring the content types section (wip) 2011-12-19 14:15:11 +01:00
Mario Visic eb5f0557ff Merge branch 'master' into rails_3_1
Conflicts:
	app/models/content_instance.rb
	spec/models/locomotive/content_instance_spec.rb
2011-12-18 01:18:56 +08:00
Mario Visic 4efa43e342 Content instances will now generate a unique slug (if existing is taken). Fixes #210. 2011-12-18 01:11:39 +08:00
did 592a110fe5 first attempt to refactor the content types 2011-12-16 13:02:10 +01:00
Mario Visic 9a1a0f016f Merge branch 'master' into rails_3_1
Conflicts:
	app/models/content_type.rb
	config/boot.rb
2011-12-15 22:29:07 +08:00
Mario Visic 4ae6fe7977 False values for custom fields are now correctly exported. Fixes #250. 2011-12-15 22:11:54 +08:00
Mario Visic 79bf38c419 Merge pull request #254 from Robsteranium/patch-1
Previous comparison method failed when the sort column is a date with Nil
2011-12-15 05:47:17 -08:00
Robsteranium 82a61b1d2d spec added to confirm content_type Date problem & patch. Also 1.8.7 compatibility with syck init. 2011-12-15 03:16:11 +00:00
Robsteranium 282e2486b6 Previous comparison method failed when the sort column is a date with a Nil. This revision doesn't really sort Nils, rather ignore them. 2011-12-14 11:26:24 +00:00
did e500a1985b refactoring of the sites picker is done 2011-12-12 10:35:42 +01:00
did 8271782284 refactoring of the import UI is done 2011-12-11 23:33:38 +01:00
did bbf0b0e083 Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-12-08 07:48:11 -08:00
did a25009824c fix some bugs + refactor look and feel of the import screens (wip) 2011-12-08 07:47:17 -08:00
Mario Visic 1c139af4e0 Small namespace fixes to specs. 2011-12-08 23:36:53 +08:00
did b60b1378f8 no more flash uploader only HTML5 goodness 2011-12-07 07:10:21 -08:00
did d21f32d849 upload many theme assets at once 2011-12-07 03:25:30 -08:00
did 4da434deb1 replace Asset by ContentAsset in the export module 2011-12-07 00:52:13 -08:00
did eacdb2873e Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-12-07 02:09:35 +01:00
did 368f643cf0 theme assets page in progress 2011-12-07 02:09:13 +01:00
Mario Visic 264ba8ebf2 Cucumber tests are now running, only a few passing, most fail. 2011-12-06 22:46:21 +08:00
Mario Visic a76020108f Fixed some broken tests, mainly due to routing issues. Down to 68 failing tests. 2011-12-06 21:42:41 +08:00
Mario Visic e6d72cfc71 Bumped the custom fields version, should now work with the namespaced models. 2011-12-06 21:17:47 +08:00
did af955ef927 delete snippets in ajax + new way of render theme assets in the back-office (backbone view) + change the way to fire growl messages 2011-12-06 12:39:32 +01:00
did dd15e3a758 delete snippets in ajax (wip) 2011-12-05 15:19:57 -08:00
did 5d750bee44 Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-12-05 06:40:48 -08:00
did ad8fad3ce5 trying to implement the destroy action for theme assets (wip) 2011-12-05 06:39:52 -08:00
Mario Visic aa68d59979 Merge remote-tracking branch 'origin/rails_3_1' into rails_3_1 2011-12-05 22:31:14 +08:00
Mario Visic 4e6fc04889 Use contents_custom_fields instead of content_custom_fields 2011-12-05 22:29:32 +08:00
did 1b8c1c7157 use the slugify js plugin for the page form 2011-12-05 06:14:50 -08:00
did 8af3445045 snippets done 2011-12-05 04:29:58 -08:00
did 04d9e90492 Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-12-05 02:31:43 -08:00
did 07b302beaa refactoring the snippet forms (wip) 2011-12-05 02:31:34 -08:00
Mario Visic 0eac23c3e3 Added target custom fields to the content instance model. 2011-12-05 16:38:07 +08:00
did 37684654ac first attempt to polish the theme assets page + refactor the css (wip) 2011-12-03 01:11:31 +01:00
did 24575d5cff polish the new membership page 2011-12-02 23:31:15 +01:00
did 3fffe7bd91 new way of handling ajax post requests (redirecting if everything is fine) 2011-12-02 18:20:59 +01:00
did c171e49093 Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-12-02 16:00:42 +01:00
did 8c82ccb716 update TODO 2011-12-02 16:00:37 +01:00
did 87a04aafe9 rename namespace for the sites backbone views + create backbone view for the creation of a new site 2011-12-02 06:59:41 -08:00
did fb0e87c64d done (for now) with the my account screen 2011-12-02 01:43:49 +01:00
did 99d756f550 Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-12-01 15:08:19 -08:00
did 837b974fec working on the screen for editing my account 2011-12-01 15:04:45 -08:00
did 5d271239b7 the screen for editing site has been refactored 2011-11-29 14:58:19 +01:00
did 35012ca2b2 polishing the current site editing screen (wip) 2011-11-29 02:24:02 +01:00
did aebb4f74ec remove directive in gitignore preventing some folders (ending by sites) to be correctly versioned 2011-11-28 13:53:34 -08:00
did 6505b7ab25 add missing js files 2011-11-28 13:50:24 -08:00
did 4a2ae180a9 Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-11-28 06:40:36 -08:00
did a8d616ba6b remove references to foldable_inputs and custom_input 2011-11-28 06:40:25 -08:00
Mario Visic 532cda88c8 Merge branch 'master' into rails_3_1 2011-11-28 09:53:11 +11:00
Mario Visic 63192a76f3 Updated readme with update instructions, helps with bug #251. 2011-11-28 09:51:37 +11:00
did cad1f5e68f Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-11-27 08:23:12 -08:00
did 71d48fe726 refactor the current site editing screen (screen) 2011-11-27 08:22:54 -08:00
Mario Visic 39ac60fffe Merge branch 'master' into rails_3_1
Conflicts:
	Gemfile
2011-11-27 21:42:58 +11:00
Mario Visic 867878a4f4 Test on ruby 1.9.3, removed the require for ruby-debug19 as it breaks on 1.9.3 2011-11-27 21:21:27 +11:00
Mario Visic cecdfa4762 Merge branch 'master' into rails_3_1 2011-11-27 21:17:58 +11:00
Mario Visic 791c5f9d43 Merge pull request #223 from frisoft/master
Method missing "disable_parent_editable_elements" for nil
2011-11-27 01:53:25 -08:00
Mario Visic 9f56eecd56 Merge branch 'master' into rails_3_1
Conflicts:
	Gemfile
	Gemfile.lock
	config/boot.rb
2011-11-27 20:33:45 +11:00
Mario Visic 1a350e7d0c Updated readme to include community information. 2011-11-27 20:17:08 +11:00
Mario Visic 05d9990e69 Use syck for yaml, fixes an issuew with new delayed job. 2011-11-27 20:05:39 +11:00
Mario Visic 9b049aa055 Bumped delayed job versions, fixes #249. 2011-11-27 19:44:06 +11:00
Mario Visic 83da41a2b1 Add the travis-ci button to the readme. 2011-11-27 19:35:08 +11:00
Mario Visic 0f09c577d0 New capybara and selenium version, works in FF8 now. 2011-11-27 19:29:09 +11:00
Mario Visic 5c6794d69c Fixed some failing dragonfly specs. 2011-11-27 19:02:20 +11:00
Mario Visic 7f7ed896cf use starts_with? instead of start_with, fixes #253 and #251 2011-11-27 18:22:00 +11:00
Mario Visic ad6273e2fd Lots of spec fixes (mostly namespacing), down to 107 failing specs. 2011-11-26 17:24:34 +11:00
Mario Visic 9f1ce08136 Specs are now all running, 190 failures. 2011-11-26 16:33:57 +11:00
Mario Visic fa138b28d0 Fixed some failing export specs. 2011-11-26 16:22:48 +11:00
Mario Visic 9a603eb57f Removed bushido and heroku lib specs (implemenation already gone). 2011-11-26 16:17:24 +11:00
Mario Visic cfd0be5755 Controller specs now run. 2011-11-26 16:10:47 +11:00
Mario Visic 1d1137fa36 Bumped the rails 3.1.3 2011-11-26 15:57:22 +11:00
did cffe64f6be rebuilding the editing page for the site (wip) 2011-11-25 15:10:56 +01:00
Mario Visic 2a5861e8a7 Specs now correctly use a multisite test app. 2011-11-25 23:59:44 +11:00
Mario Visic 915a28dc0a Merge remote-tracking branch 'origin/rails_3_1' into rails_3_1 2011-11-25 23:46:12 +11:00
Mario Visic 1c5d19ad71 Fixed for locomotive setup test method. 2011-11-25 23:45:16 +11:00
did cb735a0539 cleaning 2011-11-25 13:38:31 +01:00
did fcd2146c11 foldable fieldsets fixed on firefox 2011-11-25 12:31:18 +01:00
did 5bb29d9702 fix styling issues with form and firefox 2011-11-25 12:05:30 +01:00
did cda038e320 style submenu on firefox 2011-11-25 11:12:55 +01:00
did 80c9d5091f style submenu popup on firefox 2011-11-25 10:56:56 +01:00
did 76ef0cb28d Merge branch 'rails_3_1' of github.com:locomotivecms/engine into rails_3_1 2011-11-25 02:05:14 +01:00
did 47625dfa17 refactor code (wip) + fix bugs (wip) + tweak ui + save an existing page in ajax (HTML5 + FormData) + create a new page in ajax (wip) 2011-11-25 02:04:42 +01:00
Mario Visic 06f4fc98e3 Fixed a bunch of model tests. 2011-11-25 00:37:17 +11:00
did a50df5ad8e menu and submenu in full css3 (without any images) + delete useless images + clean the code (wip) 2011-11-23 05:01:15 -08:00
Mario Visic 40ef3e4fff Fixed a couple of failing tests. 2011-11-22 00:08:18 +11:00
did b2a5e1de85 new file input behaviour (for now just on editable_file) 2011-11-21 03:12:06 -08:00
did 0b7cc6ebd2 merging 2011-11-21 02:28:12 +01:00
did 1a1a92e12f refactor the presenters + convert the editable_elements partial into a full backbone, coffeescript, handlebar, json stack 2011-11-21 02:27:05 +01:00
Mario Visic e21a40c157 Some fixes for the content asset spec. 2011-11-20 22:52:20 +11:00
Mario Visic 75041ba21c Specs now run for all models. The account model now passes GREEEEn. 2011-11-20 22:47:41 +11:00
Mario Visic a99ba18200 Temporarily removed a module include causing issues. 2011-11-20 22:47:03 +11:00
Mario Visic 47db53e0e5 Namespace factory girl factories. 2011-11-20 22:25:01 +11:00
Mario Visic a7b66f0e25 Lots of fixes to get tets closer to working. 2011-11-20 21:59:12 +11:00
Mario Visic a97978468f Use a later custom fields version. 2011-11-20 21:52:22 +11:00
Mario Visic 51c0397531 Removed spork to get spec helper working. Will readd later if required. 2011-11-20 21:39:46 +11:00
Mario Visic 769cf7548c Updated gemfile with kaminari again. 2011-11-20 21:36:10 +11:00
Mario Visic e6c1d6e94e changes to the gemfile to remove local gem dependencies. 2011-11-20 21:18:42 +11:00
Mario Visic 5f893d51c0 Merge remote-tracking branch 'origin/master' into rails_3_1
Conflicts:
	Gemfile
	Gemfile.lock
	config/initializers/will_paginate.rb
	lib/locomotive/engine.rb
	lib/locomotive/hosting/bushido/account_ext.rb
	lib/locomotive/hosting/bushido/enabler.rb
	lib/locomotive/hosting/bushido/hooks.rb
2011-11-20 21:08:23 +11:00
did c267f8ccbc inverse toggle effects + add missing redirect_url field + fix an anoying bug about the locomotive_media plugin 2011-11-20 01:27:23 +01:00
did a6211d594e almost done with the tinyMCE customization 2011-11-20 00:54:33 +01:00
did cd411de4ce implement a generic asset picker 2011-11-19 17:33:16 +01:00
did 63e2a63d1a polishing the locomotive_media plugin (wip) 2011-11-19 16:41:16 +01:00
did 72c2cb2059 rename asset to content_asset + clean the locomotive_media plugin for tinyMCE (wip) 2011-11-19 15:47:56 +01:00
did 5ea81930b4 tinymce integration (wip) + polish the jquery dialog window (wip) 2011-11-19 00:20:37 +01:00
did 2620748b81 restyling the editable elements in css3 (wip) 2011-11-17 18:05:51 +01:00
Sean Grove 0e5e16c8b4 Merge pull request #245 from locomotivecms/bushido_add_user
Bushido user.added, user.removed, app.claimed, and login fixes
2011-11-16 12:30:23 -08:00
Sean Grove ef5caad897 Proper mongoid exists? syntax 2011-11-16 12:04:51 -08:00
Sean Grove d1306aec53 Horrific rebasing strategy, but working code. 2011-11-16 11:39:47 -08:00
Sean Grove ed96ab1cf5 BUSHIDO_FIX: Adds bushido hooks user.added user.removed, and updates app.claimed to work with bushido_user_id as the permanent id
Conflicts:

	lib/locomotive/hosting/bushido/hooks.rb
2011-11-16 11:38:23 -08:00
Sean Grove 43dee9391d Uses a more careful approach when removing a user based on the bushido user.removed hook 2011-11-16 11:38:01 -08:00
Sean Grove 5a4a9f5475 BUSHIDO_FIX: Adds bushido hooks user.added user.removed, and updates app.claimed to work with bushido_user_id as the permanent id
Conflicts:

	lib/locomotive/hosting/bushido/hooks.rb
2011-11-16 11:37:30 -08:00
Sean Grove b2bfec1bc4 BUSHIDO_FIX: Adds hooks for user.added and user.removed, updates app.claimed event, switches to using bushido_user_id as permanent unchanging user id 2011-11-16 11:32:00 -08:00
did 67615a7fe3 polishing (wip) + refactor the js code (wip) 2011-11-16 13:42:42 +01:00
did a9dace0d0f right translation keys for the image picker 2011-11-16 11:24:14 +01:00
did a48b602ea9 sub menu popup in place 2011-11-16 11:19:57 +01:00
did 2c18f401bb adding the last refactored features on the pages section (wip) + clean code 2011-11-16 01:39:16 +01:00
did 80a9a11c7b javascript for add/edit page (wip) 2011-11-14 01:13:58 -08:00
did 596eb78a55 first draft for the json template response (tested on sorting pages) 2011-11-11 00:39:25 -08:00
did bef9dd8e67 fix various namespace errors issues and api changes for the models 2011-11-10 13:41:20 -08:00
did 6122983835 fix the annoying bug of duplicated flash messages + first backbone view for the index pages section 2011-11-10 13:29:59 +01:00
did aa1abd2e92 remove useless piece of code 2011-11-10 02:47:26 +01:00
did 599b1d6395 first work on migrating the javascripts to coffeescript and backbone (wip) 2011-11-10 02:43:19 +01:00
did 248d3803c2 use the last version of formtastic + tweak the css for formtastic with scss + compass (wip) + clean code (wip) 2011-11-09 02:35:59 +01:00
did 1b015efd48 cleaning stylesheets so that they fit the new assets system 2011-11-08 15:34:25 +01:00
did fee5a5e98e custom_fields from git 2011-11-08 01:29:12 +01:00
did dd75f69b74 fix module collisions and missing namespaces all over the templates (wip) 2011-11-08 01:11:15 +01:00
did 9169cb386e waiting for the new devise gem (coming probably this week) 2011-11-08 00:16:23 +01:00
did b383086242 wip 2011-11-06 12:18:34 +01:00
did a3f66e19b5 fix issue #243 (Kaminari causing error on Bushido) 2011-11-05 15:18:15 +01:00
Mario Visic e309b62386 Merge branch '236_paginate_has_many' 2011-11-05 19:19:18 +11:00
Mario Visic 4d9c77d41a Tidy up cucumbers a tad. 2011-11-05 19:17:30 +11:00
Mario Visic ad0adc7153 Added a cucumber feature to paginate through models. 2011-11-05 19:10:26 +11:00
Mario Visic c3c5d8e754 Tests are passing for has many pagination with Kaminari. 2011-11-05 18:42:04 +11:00
Mario Visic 45d4b7cb60 Merge branch 'master' into 236_paginate_has_many 2011-11-05 18:03:27 +11:00
Mario Visic 06ab49ecec Replaced will_paginate with kaminari 2011-11-05 16:45:43 +11:00
did 87d2440f14 working on fixing issues with devise (wip) 2011-11-04 16:55:51 +01:00
did 8979957d43 convert stylesheets in sass (wip) + fix the installation module + customize devise (wip) 2011-11-03 14:01:08 +01:00
did 851a255301 fixing assets (wip) 2011-11-01 01:58:44 +01:00
did cdab48f0a9 isolate the engine (urls, helpers, ...etc) + change urls + remove the warning about bson_ext 2011-11-01 00:44:23 +01:00
did 99e442673c namespace controllers, models, ...etc (wip) 2011-10-31 00:02:41 +01:00
did 732f8f76f3 revert to bson_ext (1.3.1) because the last versions (1.4.x) have been yanked recently (temporary solution) 2011-10-30 14:58:13 +01:00
did 9f8d2e4146 assets (wip) 2011-10-30 14:28:45 +01:00
did 44007ac664 fix image references in assets 2011-10-30 13:34:16 +01:00
did 34cd6f464e change database settings for this branch 2011-10-30 13:20:20 +01:00
did ed6020be3e upgrade to new gems + remove hosting modules + change settings for Rails 3.1 + move assets to app/assets 2011-10-30 13:17:05 +01:00
Mario Visic fda3382300 No Site now renders a 404 error, this will prevent indexing of pages
that do not exist. Fixes #237
2011-10-29 23:44:28 +11:00
Mario Visic 9f8906d840 Merge branch 'master' into 236_paginate_has_many 2011-10-29 14:36:01 +08:00
Mario Visic 4939017f8d No Site now renders a 404 error, this will prevent indexing of pages that do not exist. 2011-10-29 14:35:23 +08:00
Mario Visic 786d2d9693 Added will paginate to liquid. 2011-10-24 23:44:35 +08:00
Mario Visic e6abd6bbe0 Path fix for pagination. 2011-10-24 23:37:39 +08:00
Mario Visic 2bb9f5ed05 Revert "Arrays now paginate correctly."
This reverts commit 25441ff60a.
2011-10-24 23:34:43 +08:00
Mario Visic 25441ff60a Arrays now paginate correctly. 2011-10-24 22:35:21 +08:00
Mario Visic 2c5407d588 Merge branch 'master' into 236_paginate_has_many 2011-10-24 21:40:44 +08:00
Mario Visic a2303f40f0 Only test the master branch on travis. 2011-10-24 21:24:27 +08:00
Mario Visic d574939e2c Added a failing test for paginating has many associations. 2011-10-24 20:52:43 +08:00
did 99386f8866 new version of plupload (fixing bug #232) 2011-10-21 11:11:17 +02:00
did ca44edd58f Merge branch 'master' of github.com:locomotivecms/engine 2011-10-18 18:46:03 +02:00
did 8298b2a4bf preventing recursive loop when used as engine in an app 2011-10-18 18:45:45 +02:00
Mario Visic fcac15c6b1 Fixed a failing cucumber scenario, bumped cucumber-rails. 2011-10-18 23:55:21 +08:00
Mario Visic dc7b83d6b7 Merge branch 'master' of https://github.com/locomotivecms/engine 2011-10-18 22:56:18 +08:00
Mario Visic 4088500795 Fixed syntax for a cucumber scenario. 2011-10-18 22:55:31 +08:00
did 32f7552a50 typo in the French translation for Norway + remove crack from Gemfile 2011-10-17 19:15:08 +02:00
Didier Lafforgue 05e3e73210 Merge pull request #230 from Sharagoz/master
Norwegian translations
2011-10-17 10:07:43 -07:00
Didier Lafforgue b655431ea6 Merge pull request #228 from pacifists/master
added published? and listed? methods for Page drop
2011-10-17 10:03:35 -07:00
did e0707a8f0a Merge branch 'master' of github.com:locomotivecms/engine 2011-10-17 19:00:31 +02:00
did 443606f0f3 fix issue #216 2011-10-17 19:00:10 +02:00
Mario Visic 4d19117351 Print cucumber backtraces for travis on failure. 2011-10-17 23:53:21 +08:00
Mario Visic 70dacfcef2 Set the hostname on travis. 2011-10-17 23:47:51 +08:00
Mario Visic 6b9ccf3854 Updated travis config. 2011-10-17 23:37:33 +08:00
Mario Visic 930a67429d Added a travis CI config. 2011-10-17 22:55:09 +08:00
Mario Visic dd118a7147 Only use autotest with MRI (doesnt work on rbx). 2011-10-16 13:21:12 +08:00
Sharagoz 35e2fd2d57 Merge branch 'master' of git://github.com/locomotivecms/engine 2011-10-08 21:17:03 +02:00
Sharagoz f864980685 norwegian JS translations 2011-10-08 21:09:08 +02:00
Rytis Lukoševičius 6b9d2317da adding .published? and .listed? methods for the liquid Page drop class 2011-10-04 04:35:40 +03:00
Mario Visic 85cabafe67 Merge pull request #218 from corgibytes/ensure_rails_3_0
Rails 3.1 is getting used as a dependency when installing as a gem
2011-10-01 08:52:01 -07:00
did 016d773b2d fix issue #217 (memberships not correctly removed) 2011-09-28 18:27:29 +02:00
did 544e9e5c3c fix issue #225 (bson_ext version) 2011-09-28 11:57:48 +02:00
Andrea Frigido d5534a4a2b Bugfix in snippets with block and editable_elements. 2011-09-27 09:01:55 +02:00
did 718b3c67bb improve the with_scope tag based on the work on the editor 2011-09-27 00:25:47 +02:00
M. Scott Ford c18dfa035e Prevent rails 3.1 from getting pulled in as a dependency. 2011-09-25 21:03:50 -04:00
did ce24270948 fix issue #193 2011-09-22 01:38:23 +02:00
Sharagoz a843f16be0 norwegian locale 2011-09-19 17:43:23 +02:00
Sharagoz 2b474626b6 add crack to gemspec 2011-09-19 16:28:21 +02:00
Sharagoz ffc7057669 "no" locale added to config options 2011-09-19 16:15:25 +02:00
Sharagoz cb43a878c8 add crack to gemfile 2011-09-19 16:10:29 +02:00
Sharagoz c6ab499664 added norwegian locale 2011-09-19 15:48:43 +02:00
Mario Visic aa21cea13b Typo in the current site feature. 2011-09-17 22:31:50 +08:00
Mario Visic 03b6649742 Designers cannot set others to admins, fixes #197 2011-09-17 22:23:43 +08:00
Mario Visic 4c55401728 Merge pull request #209 from GarPit/master
Liquid syntax mistake
2011-09-16 19:02:03 -07:00
PitOn 6945bed820 liquid syntax translated mistake 2011-09-16 11:23:03 +04:00
Mario Visic ca2ad98cd0 Merge pull request #208 from karlbright/next_previous_content
Provide next and previous methods for content
2011-09-15 21:04:22 -07:00
Karl Brightman 93667018c1 Updated with hashrocket 2011-09-16 11:55:30 +08:00
Karl Brightman 769b0569db Added examples 2011-09-16 11:37:48 +08:00
Karl Brightman 75f4835d3e Integrated next and previous methods for content in content types 2011-09-16 11:35:40 +08:00
did 13b82e66fe fix httparty version to 0.7.8 2011-09-15 16:59:14 +02:00
did 8dfefe5094 fix issue #201 2011-09-14 11:32:14 +02:00
Mario Visic efc843c2d9 Merge branch 'feature/frontend_edit_authentication' 2011-09-04 01:15:52 +08:00
Mario Visic 8dbd51734a Visiting /edit when not authenticated now sends users to the login page. 2011-09-04 01:15:43 +08:00
Mario Visic 82b763c1bf Added a failing cucumber scenario for frontend editing auth. 2011-09-04 01:08:39 +08:00
Mario Visic 1b86150042 Merge branch 'feature/aloha_integration_tests' 2011-09-03 22:38:16 +08:00
Mario Visic 3113fbc9f0 Completed the cucumbet feature for the front end inline editor. 2011-09-03 22:37:08 +08:00
Mario Visic d586d0eff4 Added an incomplete test for the front end inline editor. 2011-09-01 20:30:59 +08:00
Mario Visic eb2d25e2f9 Ruby 1.9 require the correct debug. 2011-09-01 19:28:46 +08:00
Mario Visic f6609a699b Removed an old cucumber scenario. 2011-09-01 18:51:09 +08:00
Mario Visic aa6eb1ea9d Removed a duplicate step. 2011-09-01 18:45:30 +08:00
Didier Lafforgue f81d3a698f Merge pull request #190 from corgibytes/media_dialog_fixes
Adjusted the interaction with the media dialog.
2011-08-31 14:53:16 -07:00
did 6a2f0f17dd complete the Russian version of the engine (#188): add the Russian flag + translate the Russian word in all the other locales 2011-08-31 23:43:52 +02:00
Didier Lafforgue 4a82935b46 Merge pull request #188 from GarPit/master
Russian translation
2011-08-31 14:21:47 -07:00
did c84a571afc new gems for rails and custom_fields (it fixes a bug with the has_many custom field) 2011-08-31 23:14:30 +02:00
Didier Lafforgue 761a64b130 Merge pull request #185 from themgt/patch-1
should sort by Page#depth so slug parts are in the right order
2011-08-30 15:11:46 -07:00
Didier Lafforgue d121a56efc Merge pull request #184 from colibri-software/ie_fix_options
IE workaround for some broken select boxes
2011-08-30 15:06:02 -07:00
did cd5f3b9712 a couple of Dutch translation keys were missing (issue #181) 2011-08-30 23:39:45 +02:00
did dea0b67fe1 fix another bug related to the issue #179 2011-08-30 23:13:34 +02:00
Mario Visic c83c6828a9 Merge pull request #186 from Arjeno/allow_htc_file_content_type
Added .htc file content type to white list
2011-08-30 06:39:04 -07:00
Paul acd731347c should sort by Page#depth so slug parts are in the right order 2011-08-29 16:17:18 +03:00
GarPit 1e5e151be6 russian translation 2011-08-29 16:54:21 +04:00
PitOn 367b0aab4f formtastic.ru.yml finished 2011-08-30 00:35:56 +04:00
PitOn db5cb0950d devise.ru.tml finished 2011-08-30 00:03:47 +04:00
PitOn a1d976ace1 default.ru.yml finished 2011-08-29 23:52:42 +04:00
PitOn a46019da40 admin_ui.ru.yml finished 2011-08-29 23:48:33 +04:00
Arjen Oosterkamp a78bcdaf38 Added .htc file content type to white list
Added .htc file content type javascripts folder
2011-08-29 10:46:31 +02:00
Alex Sanford 988323b1d0 Extracted DOM option creation into function to apply IE workaround 2011-08-28 22:37:16 -03:00
Mario Visic ff901ca3d3 Merge branch 'feature/unauthorized_admin_login' 2011-08-28 01:15:25 +08:00
Mario Visic cd464e604c Logging in as an account without membership no longer infinetly redirects. 2011-08-28 01:14:02 +08:00
Mario Visic 63c30bc135 Added a failing cucumber scenario for logging in without a membership to the site. 2011-08-27 13:28:51 +08:00
M. Scott Ford d49453dfc8 Adjusted the interaction with the media dialog. 2011-08-27 01:15:07 -04:00
PitOn ef75d4acef devise transaltions 2011-08-27 06:33:33 +04:00
PitOn d9dafd2222 default.yml translations 2011-08-27 06:27:14 +04:00
PitOn e8bea2844b more translations 2011-08-27 00:45:25 +04:00
did 265525c1a7 fix issue #175 + the liquid template of content types (back-office) were broken 2011-08-26 00:30:34 +02:00
did bb48552b51 Ruby MRI 1.9.3 Compatability Fixes 2011-08-25 23:28:56 +02:00
did aa5c5f0092 tweak the spec_helper.rb file (see issue #157) 2011-08-25 22:15:23 +02:00
Didier Lafforgue 201063aae0 Merge pull request #180 from mariovisic/cache_double_render_error
Issue #176 Fix: Do not render twice for cached pages.
2011-08-25 12:56:17 -07:00
did 71a592eec1 fix issue #177 2011-08-25 18:27:43 +02:00
Mario Visic fdf55aee88 Do not render twice for cached pages. 2011-08-25 22:11:57 +08:00
did c990a89e57 db/seeds.rb is not needed anymore 2011-08-25 15:33:06 +02:00
did 01f6a0aad5 fix issue #171 2011-08-25 15:32:00 +02:00
did 7a9caabc41 new custom_fields gem version (beta 24) 2011-08-25 15:15:42 +02:00
did d0566f917e fix issue #179 2011-08-25 14:58:49 +02:00
did aff1d23d90 Merge branch 'master' of github.com:locomotivecms/engine 2011-08-24 15:16:33 +02:00
Didier Lafforgue e111e2c1f9 Merge pull request #174 from mariovisic/hide_unauthorized_links
Links are incorrectly shown to actions accounts cannot access.
2011-08-22 15:55:41 -07:00
Didier Lafforgue f140fcc260 Merge pull request #172 from colibri-software/tablerow_fix
Fixed issue with tablerow tag
2011-08-22 15:48:42 -07:00
Mario Visic 22445856ec The add account link is now hidden unless admins have permission. 2011-08-20 17:41:00 +08:00
Mario Visic 8a5241f265 Updated a scenario to fail. 2011-08-20 17:37:58 +08:00
Mario Visic a7bc648333 Implemented the site ability fix for designers. 2011-08-20 17:33:13 +08:00
Mario Visic 5c3cf83082 Added a failing scenario for the new site button when the account is a designer. 2011-08-20 17:31:16 +08:00
Mario Visic 24c9752018 Implemenation for hiding the destroy asset button. 2011-08-20 17:13:06 +08:00
Mario Visic 0ed6c21f10 Added a failing cucumber test for viewing the delete asset button as an author. 2011-08-20 17:08:37 +08:00
Alex Sanford 88fd17a5aa Fixed issue with tablerow tag 2011-08-19 10:10:26 -03:00
did 7ea25b3a59 in some circonstances, the site_id disappeared when generating the url of a file in a model 2011-08-19 12:06:41 +02:00
did 0e3d601ea9 fix xss vulnerability issue (#170) 2011-08-18 16:06:34 +02:00
did 52e78d9b9a fix issue #169 2011-08-18 12:32:45 +02:00
did 8e26b922f4 BSON::ObjectId has to be converted in String in liquid templates 2011-08-18 12:03:34 +02:00
GarPit 75e6f2cd08 more translations 2011-08-17 18:28:49 +04:00
did e0b9367f10 Got Mongoid and FactoryGirl to stop preloading models (#157) 2011-08-16 20:58:23 +02:00
Didier Lafforgue c3ba38216d Merge pull request #167 from pacifists/master
added parent and breadcrumbs methods to page drop
2011-08-15 15:38:20 -07:00
did b3a8916565 upgrade to will_paginate 3.0 (issue #166) 2011-08-15 15:32:21 -07:00
did 2d4f3df106 has_many target is not exported correctly (issue #165) + fix the import function as well 2011-08-15 14:39:53 -07:00
did 3ad8101ed6 re-write tests for the (reverse) has_many features (#164) 2011-08-14 14:07:15 -07:00
Didier Lafforgue 8d30ba5152 Merge pull request #164 from corgibytes/has_many_issue
Has many relationships are not working correctly
2011-08-14 13:37:59 -07:00
did cdf386aac2 fix issue #163 2011-08-14 13:33:24 -07:00
did 4543e597ed complete issue #162 2011-08-14 12:51:11 -07:00
Didier Lafforgue acbf481134 Merge pull request #162 from kikito/es-locale-admin-fixes
added/corrected entries in admin_ui.es.yml
2011-08-14 12:49:55 -07:00
Didier Lafforgue 5d8f255e72 Merge pull request #161 from kikito/es-locale-public-files
Es locale public files
2011-08-14 12:46:40 -07:00
Didier Lafforgue 12c9bd1eca Merge pull request #159 from bquorning/patch-1
Adding indexes
2011-08-14 12:44:59 -07:00
Didier Lafforgue b4bfea616a Merge pull request #158 from colibri-software/add_admin_user
Added rake task to create new admin user
2011-08-14 12:27:03 -07:00
did 408ff098ba Set up specs to use spork for faster test runs (#157) 2011-08-14 12:16:59 -07:00
Rytis Lukoševičius 69e24e8fe0 added .breadcrumbs method to Page drop. It gives all the ancestors of the page and the page itself 2011-08-14 11:34:57 +03:00
Rytis Lukoševičius 025d5a7dda added .parent method to Page drop 2011-08-14 11:34:08 +03:00
did b23f2697e9 clean tests and make them pass in the order observed on nix systems 2011-08-13 16:24:02 -07:00
M. Scott Ford 19f4fe295d Illustrated that the reverse has many feature is also having the same problem. 2011-08-13 01:05:45 -04:00
M. Scott Ford 1d85c0dbf3 Cleaned up the use of the 'wait until' steps in the has many examples. 2011-08-13 01:04:30 -04:00
M. Scott Ford 48f869dc27 Added failing feature for to illustrate issue with has_many relationships. 2011-08-13 01:04:10 -04:00
Enrique García Cota cab52f8f7b added/corrected entries in admin_ui.es.yml 2011-08-12 14:13:44 +02:00
GarPit 09689a0cc9 initial ru translation 2011-08-12 15:32:37 +04:00
Enrique García Cota e0f11c8a5c added es locale files for tiny_mce + plugins 2011-08-12 13:25:34 +02:00
Enrique García Cota d398b8fba5 added es locale for jquery ui datepicker 2011-08-12 13:24:48 +02:00
Enrique García Cota 85f29c00fe added es locale for aloha editor 2011-08-12 13:24:26 +02:00
did 161878f57e add information to set up carrierwave for local filesystems 2011-08-11 14:47:12 -07:00
Didier Lafforgue 7a4253a7e4 Merge pull request #152 from frisoft/master
Bugfix: import and italian localization update.
2011-08-11 14:00:48 -07:00
did 67d7b13f4f Add the reverse has_many field feature (mainly based on pull request #142) 2011-08-11 13:45:46 -07:00
Benjamin Quorning e2eb8f2e90 Adding indexes on :position and [[:depth, :asc], [:position, :asc]] to avoid Mongo::OperationFailure: too much data for sort() with no index 2011-08-09 15:07:15 +03:00
Alex Sanford c225a8d394 Added rake task to create new admin user 2011-08-04 13:19:39 -03:00
Andrea Frigido 37c50d27ff Bugfix: import site with empty editable file. 2011-08-03 08:58:47 +02:00
Andrea Frigido 3966c7bdae Italian localization update. 2011-08-01 16:21:15 +02:00
did 333934c022 Merge branch 'master' of github.com:locomotivecms/engine 2011-07-28 21:11:24 +02:00
did 040a51bc5f when used with devise_cas_authenticable, it does make sense to ask for a password in the new account creation page 2011-07-28 21:11:06 +02:00
Didier Lafforgue 49fee12ffe Merge pull request #151 from pollingj/master
Page slugs hyphens
2011-07-28 07:49:45 -07:00
did a9b6c234e7 fix issue #150 2011-07-28 16:42:16 +02:00
Didier Lafforgue 92ec012472 Merge pull request #149 from corgibytes/content_type_names
Fixed issue with the way import was handling content_type name attributes
2011-07-28 06:09:23 -07:00
did 6d66275def merge pull request #148 2011-07-28 15:03:13 +02:00
did 08cac3b324 merging pull request #147 2011-07-28 13:54:24 +02:00
did dbee233d0a add test for the issue #146 2011-07-28 13:51:59 +02:00
Didier Lafforgue 50b1c0e383 Merge pull request #147 from infospace/master
Possible fix for Issue #146
2011-07-28 04:46:40 -07:00
did 4c8272dfa0 seo information were not imported for contents 2011-07-28 11:53:36 +02:00
John Polling 7c8b973889 Slugs for pages were using underscores and not hyphens
I think this has been resolved before, but it seems to have reverted.
Hyphens are more of a standard in CMS'
2011-07-28 10:38:00 +01:00
M. Scott Ford 36914834a1 Switched from calling #update to #update_attributes!. 2011-07-28 01:21:28 -04:00
M. Scott Ford 8564055fd1 Modified the existing site context so that it does not reset the site. 2011-07-28 01:20:52 -04:00
M. Scott Ford a532bb4c60 Fixed issues with the way import handled the content_type.name attribute. 2011-07-28 01:20:39 -04:00
M. Scott Ford 707973be16 Wrote a failing test to demonstrate issue with the way import handles the content_type.name attribute. 2011-07-28 01:19:51 -04:00
Didier Lafforgue 7e31d3ea76 Merge pull request #143 from Sharagoz/master
Cells gem not initialized in engine
2011-07-27 16:34:55 -07:00
Didier Lafforgue 243d0ac381 Merge pull request #141 from corgibytes/host_resolution
Prevent strange Capybara test failures because of missing entry in /etc/hosts
2011-07-27 16:29:41 -07:00
Tony C. Heupel d810e0b9c4 Issue 146: Try to fix the issue with path querystring messing up slugs. 2011-07-27 15:59:21 -07:00
did a1977085a3 new bushido gem 2011-07-28 00:41:32 +02:00
did d51e74b341 Merge branch 'master' of github.com:locomotivecms/engine 2011-07-28 00:40:33 +02:00
did 8da0db2454 improve the solution for the issue #127 and write tests (pull request #139) 2011-07-28 00:39:59 +02:00
Sean Grove 2320aa6fb1 Bump to bushidogem 0.0.35 2011-07-27 10:59:32 -07:00
did 2c2c565aad Merge branch 'master' of github.com:locomotivecms/engine 2011-07-27 16:59:23 +02:00
Didier Lafforgue e74f996c8c Merge pull request #139 from frisoft/master
Added fix for #127
2011-07-27 07:58:16 -07:00
Sharagoz 4f34610918 initialize Cells when used as an engine 2011-07-27 15:56:56 +02:00
did b2ca79038b Merge branch 'master' of github.com:locomotivecms/engine 2011-07-27 02:29:49 +02:00
Sean Grove 2f2f410312 Bump the bushido gem version to 0.0.34 2011-07-26 17:26:49 -07:00
did d4b2153c7b wrong flash message key for the import controller 2011-07-27 02:26:12 +02:00
did 8a58a0cad1 using the last bushido gem (0.0.31) 2011-07-26 23:36:36 +02:00
did abbc151ed2 new factory_girl gem + fix the require pb with the devise_bushido_authenticatable gem 2011-07-26 23:11:43 +02:00
M. Scott Ford 3a21b7c29c Added test to make sure that test.example.com can be resolved through /etc/hosts. 2011-07-26 16:58:31 -04:00
did 747ba0d6fa disable console.log statements 2011-07-26 22:44:51 +02:00
did b042a02ed4 Merge branch 'master' into cas 2011-07-26 22:41:44 +02:00
did 7f1c9282c7 disable console.log statements 2011-07-26 22:41:20 +02:00
did 616195fe8c Merge branch 'master' into cas 2011-07-26 22:30:19 +02:00
Kev Zettler 18ab1e09e6 added guard for missing subdomain tutorial 2011-07-26 13:27:21 -07:00
did a1f0ffad98 Merge branch 'master' into cas 2011-07-26 22:10:13 +02:00
Kev Zettler 0473fdd7ea added guard for missing models error
'
2011-07-26 12:59:07 -07:00
did d5111d2a4f fix a minor bug about the contents menu + new devise_bushido_authenticatable gem 2011-07-26 21:38:27 +02:00
did e05586d387 write tests for the last cells menu + write tests for the bushi.do events + refactor the locomotive logger + add the cas_extra_attributes hook 2011-07-26 21:20:03 +02:00
Andrea Frigido 1dd432c2c8 Added fix for #127 2011-07-26 09:51:18 +02:00
Sean Grove 5e3a4ffa0f Set account.username for the cas lookup 2011-07-25 21:21:55 -07:00
Sean Grove 09343dd20a Event data structure tweak. 2011-07-25 20:39:09 -07:00
Sean Grove 93a852c705 Tweak with a local variable. 2011-07-25 20:13:21 -07:00
Sean Grove 8de926bca9 Bushido::Hooks -> Bushido::Data 2011-07-25 20:00:17 -07:00
Sean Grove 9bab872e5b Updated gem hooks for bushido claimed event 2011-07-25 19:37:23 -07:00
did 7b8053241d add more tests for cells + disable the cas_create_user option for the bushi.do env 2011-07-26 03:02:13 +02:00
did 5ef92e6951 writing cells specs + restore the bushido.json file 2011-07-26 02:01:40 +02:00
did 0a8321ad3d writing cells specs + restore the bushido.json file 2011-07-26 02:00:35 +02:00
did ffb780238b minor modifications 2011-07-25 23:40:24 +02:00
did cb349b3ac0 enable debug mode for bushido + fix minor issues 2011-07-25 23:16:43 +02:00
did 4f7312a659 CAS feature + Cells 2011-07-25 23:07:32 +02:00
Kev Zettler b780bbd42a upgraded the help menu and added handler for bushi_bar guide 2011-07-22 17:55:01 -07:00
did e2b68ba861 restore production settings + fix broken tests + apply the coding convention on the recently modified haml file 2011-07-23 01:26:16 +02:00
Kev Zettler 13e247691f Merge pull request #137 from Bushido/master
Guiders and new gem version
2011-07-22 15:28:03 -07:00
Kev Zettler 2472e486fd Merge branch 'master' of github.com:Bushido/engine 2011-07-21 19:01:04 -07:00
Kev Zettler 1ce9c2a432 bumped gem to 30 2011-07-21 19:00:49 -07:00
Sean Grove 5ea345aed5 Merge branch 'master' of github.com:Bushido/engine 2011-07-21 18:49:00 -07:00
Sean Grove 2a9a49f1b1 No more need for debug output 2011-07-21 18:48:46 -07:00
Sean Grove 694ca19324 Le sigh... 2011-07-21 18:38:58 -07:00
Sean Grove 32f57cc43c Output some debug information 2011-07-21 18:21:47 -07:00
Kev Zettler cf0b49932e dropped bushido gem back to 29 2011-07-20 22:53:04 -07:00
Kev Zettler c1a1e720d3 added guider info to starter page 2011-07-20 22:19:21 -07:00
Kev Zettler e5549cc600 bumped bushido gem 2011-07-20 22:02:12 -07:00
Kev Zettler 55f95499ce commented out the compression disable dev stuff 2011-07-20 12:24:04 -07:00
Kev Zettler 466cd99101 updated flow and body copy for bushi_banner guider 2011-07-20 12:19:20 -07:00
Kev Zettler b9f5943585 added init hook for tinyMCE dependent guiders 2011-07-20 12:19:06 -07:00
Didier Lafforgue 756ebc06b2 Merge pull request #134 from petrblaho/js_css_https
https in url for javascript and stylesheet liquid filters
2011-07-19 23:39:46 -07:00
Kev Zettler 6fa003db5c omg more tutorials awesome 2011-07-19 17:35:48 -07:00
Petr Blaho dfa0196e89 Added tests to https variant of js and css url in liquid tags 2011-07-19 23:02:36 +02:00
Petr Blaho a491b15801 Added possibility to use https in js and css url with liquid tags 2011-07-19 23:00:58 +02:00
Petr Blaho 18d3c5c591 Extended tests of js and css liquid tags to distinguish between url that starts with "/" or "http:" 2011-07-19 22:58:08 +02:00
Didier Lafforgue 294da07565 Merge pull request #132 from petrblaho/js_css_url
javascript_url and stylesheet_url liquid tag
2011-07-19 09:05:44 -07:00
Petr Blaho e39519f3ba Added tests for stylesheet_url and javascript_url liquid tags 2011-07-19 16:40:58 +02:00
Petr Blaho 41472c88bd Created stylesheet_url and javascript_url liquid filters 2011-07-19 16:27:42 +02:00
did 819d7ac5ff fix issue #131 2011-07-19 16:20:53 +02:00
did 194a01d15f solve temporarily the issue #127 2011-07-19 15:51:29 +02:00
did 91aa975973 fix issue #126 2011-07-19 15:36:38 +02:00
did 47088f9b0e fix issue #115 + clean code + exporting a site works now with ruby 1.8.7 2011-07-19 14:52:02 +02:00
did 45ff488ae8 enhance the rake task which forces to serialize page templates + do not import twice an asset with the same filename 2011-07-19 11:49:15 +02:00
Kev Zettler 6db607cb1e updated tutorial flow 2011-07-18 20:56:42 -07:00
Kev Zettler 4eabcdbaa8 added an onchange callback for tinyMCE 2011-07-18 20:56:26 -07:00
Kev Zettler e22e7a5e46 changed the 'update' buttons to save save 2011-07-18 20:55:55 -07:00
Kev Zettler 217465cfda guide updates 2011-07-18 16:42:01 -07:00
did 53a83b5f79 fix broken rake task (rebuild_serialized_page_templates) 2011-07-18 23:11:22 +02:00
Kev Zettler 3b5df5e8a8 more awesome tutorials, more helpful on sites that have no data 2011-07-14 21:38:02 -07:00
did 9a36e85ce1 update the export test 2011-07-14 15:18:19 +02:00
did e27c26ebdd Merge branch 'master' of github.com:locomotivecms/engine 2011-07-14 15:01:53 +02:00
did 5f29ebd55b when exporting a site, a nil value for the listed page property should be considered as false 2011-07-14 15:01:34 +02:00
Didier Lafforgue cd45ddf551 Merge pull request #124 from vandrijevik/master
Fix usage of HEROKU_LOGIN and HEROKU_PASSWORD for specifying Heroku credentials
2011-07-14 05:58:46 -07:00
did efe2e63aa3 offical IE maintainer: Alex Sanford 2011-07-14 14:43:59 +02:00
Vladimir Andrijevik ce96d86cdd Fix usage of environment variables for Heroku credentials. 2011-07-14 14:23:15 +02:00
Didier Lafforgue 4a9da56341 Merge pull request #114 from frisoft/master
Italian localization update + Locomotive.config.default_locale as default locale for new accounts.
2011-07-14 01:02:08 -07:00
Didier Lafforgue 93da1f0cf3 Merge pull request #122 from colibri-software/master
Quick patch for has_many bug in IE
2011-07-14 01:01:38 -07:00
Alex Sanford d162cf20c8 Mostly fixed issue #121
Made the text show up but now the select won't update when options are
added or deleted
2011-07-13 23:27:48 -03:00
did 2c562038d8 use ActiveSupport::JSON.encode instead of the to_json method (not reliable) 2011-07-14 00:08:43 +02:00
did 8956145da7 use carrierwave instead of locomotive_carrierwave now (engine) 2011-07-13 21:29:39 +02:00
did 770ae3a543 fix a couple of tiny bugs about: export, import and aloha 2011-07-13 11:14:44 +02:00
Kev Zettler 7ca3e7fec7 adding some conditinal functions to tutorial.js to help with no datat off bushido locomotive installs 2011-07-11 15:55:16 -07:00
Andrea Frigido f6c91ed791 Locomotive.config.default_locale as default locale for new accounts. 2011-07-11 13:13:58 +02:00
Andrea Frigido 0fde9917d5 Italian localization update. 2011-07-11 09:04:12 +02:00
Andrea Frigido d5e2d20181 Merge remote-tracking branch 'upstream/master' 2011-07-11 07:56:50 +02:00
Kev Zettler 904bed1c10 hooked up the index menu to appropriate guides 2011-07-10 14:46:03 -07:00
Kev Zettler d997741842 everythings hooked up 2011-07-10 14:32:26 -07:00
did 86259e94b7 new carrierwave gem in replacement of locomotive-carrierwave (thanks @trevorturk) 2011-07-10 22:40:12 +02:00
Kev Zettler 058e97d376 settings and model edit guides 2011-07-10 11:02:06 -07:00
did dc9570dda0 fix issues #110 and #112 + polish css 2011-07-10 19:59:54 +02:00
did 2236b43222 fix bug #111 2011-07-09 00:47:05 +02:00
did 0ea5275504 make the export more solid 2011-07-08 23:06:07 +02:00
Andrea Frigido 33b2b83db7 Merge remote-tracking branch 'upstream/master' 2011-07-08 15:45:56 +02:00
did 72c1ac9454 solve minor bugs 2011-07-08 15:03:48 +02:00
Andrea Frigido 89cc143083 Commit for merge. 2011-07-08 12:10:07 +02:00
Didier Lafforgue c426b83871 Merge pull request #109 from corgibytes/capybara-fix
Fixed issue with javascript cucumber features not opening the correct url
2011-07-08 02:01:46 -07:00
Kev Zettler ca2fad461d omg awesome guides 2011-07-08 01:20:29 -07:00
M. Scott Ford 8437b51901 Fixed issue with javascript cucumber features not opening the correct url. 2011-07-08 00:00:52 -04:00
did 390f25ce1f minor css improvements 2011-07-08 00:25:03 +02:00
did b2ddaf805c show page kind: templatized or redirect 2011-07-07 18:03:55 +02:00
did 711110a6e0 snippets were missing in the export 2011-07-07 16:59:50 +02:00
Kev Zettler a342f7e6b1 added hooks and dependencies for tutorial flow 2011-07-06 22:35:15 -07:00
did 9008324367 it won't happen again 2011-07-07 01:36:35 +02:00
did 900d526a2f clean by removing useless files 2011-07-07 01:35:51 +02:00
did 007f34ed8c export didn't work when sub pages 2011-07-07 01:34:11 +02:00
did 88325ca932 Merge branch 'master' of github.com:locomotivecms/engine 2011-07-07 00:07:06 +02:00
Didier Lafforgue bf4b2be2b9 Merge pull request #108 from corgibytes/variables-as-values
Enabled the use of variable values as the default values for editable con
2011-07-06 15:06:47 -07:00
Kev Zettler e78726caa4 merge Did master 2011-07-06 13:41:27 -07:00
M. Scott Ford 314c1293d9 Enabled the use of variable values as the default values for editable content. 2011-07-06 15:19:55 -04:00
did fe47b3e6c6 Merge branch 'master' of github.com:locomotivecms/engine 2011-07-06 21:02:51 +02:00
did b4e72f98b9 new task in the TODO list 2011-07-06 21:02:39 +02:00
did 37d10aa25b fix bug #104 2011-07-06 11:48:04 -07:00
Didier Lafforgue 875d840442 add new contributors (Enrique & Lars) 2011-07-06 00:56:47 -07:00
did 6acec074e2 spanish translation (ticket #103) 2011-07-06 00:33:34 +02:00
did 0737919c2c Dutch translation (ticket #92) 2011-07-05 23:55:26 +02:00
did 6f58d89e39 ticket #89 closed 2011-07-05 22:39:27 +02:00
did 1a62d8f5ad Adding the ability to set a robots.txt for each site (ticket #87) 2011-07-05 22:34:15 +02:00
Didier Lafforgue 43670714b9 Merge pull request #86 from mariovisic/hotfix/nested_snippets
Fix for issue #84 (Nested snippets)
2011-07-05 12:16:30 -07:00
did 6ce086520f include potatosalad's work about the menu_toggler 2011-07-05 21:03:10 +02:00
Didier Lafforgue 59a6e03da2 Merge pull request #81 from bewculture/master
Fixed JS bugs
2011-07-05 11:37:48 -07:00
did bf99a36b58 tweak forms + fix minor js bug if no multi sites 2011-07-05 20:33:21 +02:00
did 01b0cde69b revert to the default site configuration (multi_sites disabled) 2011-07-05 18:41:14 +02:00
did ca0921d2f3 tweak the css for firefox and safari 2011-07-05 18:32:21 +02:00
did bd28f4c1ec new sites picker 2011-07-05 18:30:12 +02:00
did 71d7e86acd admin role was not correctly set when creating a new website 2011-07-05 11:56:24 +02:00
did 00fd00240f the error message was not displayed correctly during a wrong import + remove the last tracks of the deprecated asset collections 2011-07-04 23:11:35 +02:00
did 1e465e231e remove whilelist for theme assets (no useful since we have got roles now) + a little bit of refactoring 2011-07-04 19:40:14 +02:00
did 91f2f145b3 the BIG MERGE is now done 2011-07-04 15:43:05 +02:00
did 02186d7368 add the export link + fix the bugs for the export module + a little bit of refactoring 2011-07-04 15:25:02 +02:00
did aad4b09ad7 first draft of the export module (not tested) 2011-07-04 03:22:04 -07:00
did 05331dee86 enable fullscreen editing with tinyMCE 2011-07-03 02:02:52 -07:00
did 7405b9343b new custom_field gem version to fix the duplicated fields bug 2011-07-03 02:07:46 +02:00
did 2cd44190ae add missing file in the repo 2011-07-02 05:20:03 -07:00
did 690b2f2b2e fix a bug when filling in the content type name 2011-07-02 04:48:21 -07:00
did 812965ad50 tweak the form UI (errors, input separator) + add more tests 2011-07-01 02:15:45 +02:00
did e560c71ee5 refactor tests for contents 2011-06-30 12:41:20 +02:00
did 187de54962 more content type tests 2011-06-29 23:52:49 +02:00
did c7ea5ab532 add more features for the model section 2011-06-29 14:00:26 +02:00
did b2d6a7e001 new rspec-rails version (2.6.1) + clean the cucumber env.rb file 2011-06-29 03:10:20 +02:00
did c8f0ad0bbe upgrade rake (0.9.2), cucumber-rails (1.0.2), capybara 2011-06-29 03:05:07 +02:00
did c1f89f1cca fixing the heroku version: engine requires RMagick 2011-06-28 18:05:23 +02:00
did 322e617068 fixing the heroku version: engine requires cancan 2011-06-28 17:43:11 +02:00
did 8c1372afc6 fixing the heroku version 2011-06-28 17:35:25 +02:00
did e304d5aa98 the account_spec failed randomly + remove useless puts 2011-06-28 15:50:37 +02:00
did 5e8eac53d4 refactor the way the middlewares are loaded (both app and engine) + tweaks some back-office texts + improve the UI by adding icons on addind a picture links + fix an annoying bug with carrierwave 2011-06-28 15:38:13 +02:00
did 2ad01833d8 icons for the theme_asset form + add tests (both rspec + features) for the roles 2011-06-27 08:27:07 -07:00
did be6629d986 done with the roles (tests are coming) + better help messages for theme_assets and snippets 2011-06-26 16:02:48 -07:00
did 1be92e0db4 roles fully implemented for the page / content sections + uniformize drag n drop in the contents section + add the missing selected value for the has_one field 2011-06-25 17:01:11 -07:00
did 09171555a7 fix CSRF issues with tinymce and some ajax actions + begin to work on the roles feature powered by cancan (in progress, not stable) 2011-06-25 09:25:31 -07:00
did 33a29210ba forget to add a field to update the global seo title for a site + fix a tiny bug when destroying session + enhance hints on some form fields 2011-06-24 00:49:12 -07:00
did c9f3989c2b group contents by category for the has_ony / has_many widgets 2011-06-23 16:17:08 -07:00
did c9bc8c8222 update gem versions 2011-06-23 23:22:17 +02:00
did 1d1889d155 new bushido gem version 2011-06-23 23:17:36 +02:00
did 2cc07b3957 fix a little typo in the locales 2011-06-23 07:44:14 -07:00
did eb37cdcf36 fix broken tests + update gemspec / readme 2011-06-23 07:27:03 -07:00
did 587d383ac5 tweak ui: form, quick link to edit a model in the popup menu 2011-06-23 07:10:17 -07:00
did fa7e4c24d8 implement feature #57 2011-06-23 05:57:52 -07:00
did d4b7734003 fix issue #90 2011-06-23 01:14:36 -07:00
did d31f1f959a fix issue #91 2011-06-22 15:57:24 -07:00
did 40530de8bb remove trailing slash and redirect (SEO) 2011-06-22 08:53:29 -07:00
did a5cd2290ea reflect changes from the bushi.do platform 2011-06-21 15:03:23 -07:00
did 4d29500483 new version of custom_fields + allow users to change the permalink of the custom model instances 2011-06-21 14:53:21 -07:00
did 3c0f7afec0 fix tests + rename and refactor the slugify method (now called permalink) 2011-06-21 13:03:24 -07:00
did be02539695 do not include the bushido chat js, just declare a variable instead 2011-06-21 20:38:03 +02:00
did 0631b96df9 clean code + fix a tiny weird js behaviour when picking up a theme asset 2011-06-21 06:40:01 -07:00
did 3c31c8dbcf remove all the references to asset_collections 2011-06-21 06:12:20 -07:00
did a0293b161b add a new plugin in tinymce to upload any kind of files (Bernd) 2011-06-21 05:47:11 -07:00
did 6ed9788d50 clean Gemfile 2011-06-21 03:41:32 +02:00
did b00c84019c new gems + rspec in colour 2011-06-20 18:40:18 -07:00
did f4d9acd282 fix the tests + finish the integration of Dragonfly + clean code 2011-06-20 17:39:59 -07:00
did 57ba3ba273 get rid of the yellow banner in production 2011-06-21 01:27:13 +02:00
Kev Zettler 41b26848ee Merge branch 'master' of https://github.com/locomotivecms/engine 2011-06-20 14:10:56 -07:00
did 87e7ced3c1 integrate dragonfly + clean code + fix a js bug when editing a custom field 2011-06-20 12:05:12 -07:00
did ecdb79bb2d removing asset_collections: script + remove references in liquid 2011-06-20 04:25:17 -07:00
did 58ab954ec1 new task to migrate asset collections to content types 2011-06-18 01:31:43 -07:00
did 21ccbb635b removing asset collections 2011-06-17 14:32:54 -07:00
did be055e51bc new custom_fields version 2011-06-17 01:55:27 +02:00
did 0878a39858 saving with the inline editor toolbar did not work (fixed) 2011-06-16 05:07:28 -07:00
did afe07d4976 update gemspec with the last version of locomotive carrierwave 2011-06-12 16:38:11 +02:00
did 6b2f067cb3 remove commented lines 2011-06-12 16:31:27 +02:00
did adfcbb6658 fix conflict issue with the new linecache gem + clean carrierwave local patch 2011-06-12 16:29:59 +02:00
did de217b74b7 use default rails logger during the first template import + remove some carrierwave method patches now useless with the new version of the gem 2011-06-11 01:18:34 +02:00
did cd428e467c back to the sha1 encryptor to be compliant with old accounts 2011-06-11 00:24:10 +02:00
did f1d8e7c141 clean everything before merging it to the master branch 2011-06-10 01:04:13 +02:00
Kev Zettler ecbb517215 removed embbed mixpanel stuff 2011-06-08 11:20:04 -07:00
did 5bf6d46574 done for production tests (installation from source) 2011-06-08 17:53:53 +02:00
did 2d060dd2d9 forgot to add an file 2011-06-08 16:34:37 +02:00
did 49080b737d testing out the lastest gems for rails / carrierwave / ...etc 2011-06-08 16:33:33 +02:00
did fdfa36838b Gemfile.lock updated 2011-06-08 10:57:01 +02:00
Andrea Frigido 9e512485dd page-toolbar css fix (inline_editor) and italian localization fix. 2011-06-06 13:55:24 +02:00
Andrea Frigido 950e59abdc Merge remote-tracking branch 'upstream/master' 2011-06-06 09:27:35 +02:00
did 86c1342dcd remove useless lines in Gemfile 2011-06-05 14:37:49 +02:00
Sean Grove d954b75285 bump bushido version 2011-06-04 22:18:14 -07:00
Sean Grove 3678c7f49c Merge branch 'master' of https://github.com/locomotivecms/engine 2011-06-04 22:15:57 -07:00
did f9decc0890 switching over mongoid 2.0.2 + fix bug when displaying content labels in the back-office 2011-06-04 17:35:22 +02:00
Kev Zettler 40dfa83fad expanded the hooks 2011-06-03 22:30:09 -07:00
Kev Zettler 2bc79b2703 added metrics token 2011-06-03 21:40:52 -07:00
Kev Zettler 308fcd665a re added mixpanel stuff 2011-06-03 21:27:19 -07:00
Kev Zettler c39115f5ae removed one off mixpanel stuff 2011-06-03 17:01:54 -07:00
Kev Zettler 891db0d7cc added mixpanel.js and updated th emiddle ware to include it 2011-06-03 15:05:55 -07:00
did abcf4f684a help to create public form with has_one field 2011-06-03 02:25:19 +02:00
Mario Visic 8c62ec4dba Small refactoring on the snippet tag constructor. 2011-06-02 22:34:06 +08:00
Mario Visic 19a07910f7 Added a feature to creating snippets. 2011-06-02 22:01:25 +08:00
Mario Visic 8575af8b33 Small fix on the admin snippets feature. 2011-06-02 21:58:17 +08:00
Mario Visic 684b1ddf5c Nested snippets now update correctly, fixes #84 2011-06-02 21:56:05 +08:00
Mario Visic c07dbb3f98 Cleaned up the snippet feature. 2011-06-02 21:36:03 +08:00
Mario Visic 60c48f4f2e Added a failing feature for updating a snippet 2011-06-02 21:15:11 +08:00
did a5bf4664f2 [bushido] pass the metrics token to bushido.js 2011-06-01 23:47:06 +02:00
did 91119bf54e allow administrators to change the text displayed for each content in the back-office (documentation is coming) 2011-06-01 23:43:12 +02:00
did 4618b35318 cache-busting asset id for bushido.js + new bushido config var (app_name) 2011-06-01 21:09:09 +02:00
did 4518cfda1f Merge branch 'master' of github.com:locomotivecms/engine 2011-06-01 20:18:48 +02:00
did 6d208553af cleaning submodules 2011-06-01 20:18:41 +02:00
Andrea Frigido cf246268e7 Merge remote-tracking branch 'upstream/master' 2011-06-01 18:34:28 +02:00
Andrea Frigido db23a06c3f 2011-06-01 18:34:20 +02:00
Didier Lafforgue ddce344e73 Merge pull request #75 from potatosalad/28a4ec4ac2f8d493af130d13a28432d6249f4cfd
Aloha Editor submodule references removal
2011-05-31 15:41:59 -07:00
Didier Lafforgue 372941ad89 Merge pull request #85 from Bushido/bushido
Bushido integration
2011-05-31 15:06:09 -07:00
Sean Grove d557af74ea Typo 2011-05-30 14:32:34 -07:00
Sean Grove 6834e6db85 Tweaks to match the Bushido Events api 2011-05-30 14:17:42 -07:00
did 47ffafca20 font files were not correctly served with Locomotive running in single-site 2011-05-27 08:25:40 -07:00
Benjamin Athlan 8716ba5f43 Fixed assets link for menu toggler 2011-05-18 18:35:36 +02:00
Benjamin Athlan a224aff063 Fixed open/close folder arrows by plugin 2011-05-18 18:27:24 +02:00
did 9b4f9064f3 bump versions 2011-05-17 01:03:35 +02:00
Benjamin Athlan 2e76ebd521 Merge branch 'master' of github.com:bewculture/engine 2011-05-16 22:10:10 +02:00
Benjamin Athlan b1819af066 Fixed arrows down on init 2011-05-16 22:08:06 +02:00
Benjamin Athlan 750551cefb test 3 2011-05-13 18:49:19 +02:00
Benjamin Athlan 32b7f36fe2 test2 2011-05-13 18:42:29 +02:00
Benjamin Athlan 5d9a6b552d test 2011-05-13 18:41:52 +02:00
Andrew Bennett 28a4ec4ac2 Remove git submodule references in cache and add to repo instead.
Fixes locomotivecms/engine#49, locomotivecms/engine#55, and locomotivecms/engine#67
2011-05-04 19:40:05 -06:00
1779 changed files with 32300 additions and 74210 deletions

15
.gitignore vendored
View File

@ -1,11 +1,12 @@
.bundle
db/*.sqlite3
log/*.log
log
tmp/**/*
.DS_Store
rerun.txt
uploads
spec/tmp
spec/fixtures/themes/default
public/assets
public/sites
public/uploads
@ -29,6 +30,16 @@ Capfile
config/deploy.rb
perf/*.rb
gem_graph.png
sites/
permanent
doc/bushido
*.swp
.sass-cache/
spec/dummy/public/sites
/spec/dummy/tmp/
/spec/dummy/spec/tmp
/spec/dummy/log/*.log
/spec/dummy/tmp/**/*
app/assets/javascripts/old/
app/assets/stylesheets/old/
.rbenv-gemsets

2
.rspec Normal file
View File

@ -0,0 +1,2 @@
--colour
--backtrace

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
script: "bundle exec rake travis"
before_script: ./bin/ci/before_build.sh
rvm:
- 1.9.2
- 1.9.3
notifications:
email:
- didier@nocoffee.fr
- mario@mariovisic.com
irc: "irc.freenode.org#locomotivecms"
branches:
only:
- master
- 1.0-stable

99
Gemfile Normal file → Executable file
View File

@ -1,74 +1,55 @@
#!/usr/bin/env bundle
# encoding: utf-8
source :rubygems
# add in all the runtime dependencies
gemspec # Include gemspec dependencies
gem 'rake', '0.8.7'
gem 'rails', '>= 3.0.7'
gem 'warden'
gem 'devise', '= 1.1.3'
gem 'mongoid', '~> 2.0.1'
gem 'bson_ext', '~> 1.3.0'
gem 'locomotive_mongoid_acts_as_tree', '0.1.5.5', :require => 'mongoid_acts_as_tree'
gem 'will_paginate'
gem 'haml', '3.0.25'
gem 'locomotive_liquid', '2.2.2', :require => 'liquid'
gem 'formtastic', '~> 1.2.3'
gem 'inherited_resources', '~> 1.1.2'
gem 'rmagick', '2.12.2'
gem 'locomotive_carrierwave', '0.5.0.1.beta3', :require => 'carrierwave'
gem 'custom_fields', '1.0.0.beta.13'
gem 'fog', '0.3.7'
gem 'mimetype-fu'
gem 'actionmailer-with-request', :require => 'actionmailer_with_request'
gem 'heroku', '1.19.1'
gem 'httparty', '>= 0.6.1'
gem 'RedCloth', '4.2.7'
gem 'delayed_job', '2.1.4'
gem 'delayed_job_mongoid', '1.0.2'
gem 'rubyzip'
gem 'locomotive_jammit-s3', :require => 'jammit-s3'
gem 'SystemTimer', :platforms => :ruby_18
# The rest of the dependencies are for use when in the locomotive dev environment
# The rest of the dependencies are for use when in the locomotive development environment
group :development do
# Using unicorn_rails instead of webrick (default server)
gem 'unicorn'
# gem 'custom_fields', :path => '../gems/custom_fields' # for Developers
# gem 'custom_fields', :git => 'git://github.com/locomotivecms/custom_fields.git', :branch => '2.0.0.rc' # Branch on Github
# gem 'locomotive-aloha-rails', :path => '../gems/aloha-rails' # for Developers
gem 'rspec-rails', '~> 2.8.0' # In order to have rspec tasks and generators
gem 'rspec-cells'
gem 'unicorn' # Using unicorn_rails instead of webrick (default server)
end
group :test, :development do
gem 'ruby-debug', :platforms => :mri_18
gem 'ruby-debug19', :platforms => :mri_19
gem 'bushido_stub', :git => 'git://github.com/did/bushido_stub.git'
# :path => '../gems/bushido_stub'
# gem 'bushido'
end
group :production do
gem 'bushido'
group :assets do
gem 'sass-rails', '~> 3.2.4'
gem 'coffee-rails', '~> 3.2.2'
gem 'uglifier', '~> 1.2.4'
gem 'compass-rails'
end
group :test do
gem 'autotest'
gem 'ZenTest'
gem 'growl-glue'
gem 'rspec-rails', '2.3.1'
gem 'factory_girl_rails'
gem 'launchy'
# gem 'autotest', :platforms => :mri
# gem 'ZenTest', :platforms => :mri
# gem 'growl-glue'
gem 'cucumber-rails', :require => false
gem 'poltergeist'
gem 'rspec-rails', '~> 2.8.0'
gem 'shoulda-matchers'
gem 'factory_girl_rails', '~> 1.6.0'
gem 'pickle'
gem 'xpath', :git => 'https://github.com/wunderbread/xpath.git'
gem 'mocha', '0.9.12' # :git => 'git://github.com/floehopper/mocha.git'
gem 'capybara'
gem 'xpath', '~> 0.1.4'
gem 'json_spec'
gem 'database_cleaner'
gem 'cucumber', '0.8.5'
gem 'cucumber-rails'
gem 'spork'
gem 'launchy'
gem 'mocha', :git => 'git://github.com/floehopper/mocha.git'
# gem 'debugger', :git => 'git://github.com/cldwalker/debugger.git'
end

View File

@ -1,316 +1,345 @@
GIT
remote: git://github.com/did/bushido_stub.git
revision: 6b83b2c4847832ffe7a213e725d2ceb7f864e360
PATH
remote: .
specs:
bushido_stub (0.0.1)
activesupport (>= 3.0.7)
GIT
remote: git://github.com/floehopper/mocha.git
revision: 6da1242f26b12a24c4fcf67bf5921a25bc1bc88d
specs:
mocha (0.9.12.20110213002255)
GIT
remote: https://github.com/wunderbread/xpath.git
revision: d04da707886287e7dfe82705fda5b3d4f65e94c3
specs:
xpath (0.1.2)
nokogiri (~> 1.4)
locomotive_cms (2.0.0.rc8)
RedCloth (~> 4.2.8)
actionmailer-with-request (~> 0.3.0)
bson_ext (~> 1.5.2)
cancan (~> 1.6.7)
carrierwave-mongoid (~> 0.2.1)
cells (~> 3.8.0)
codemirror-rails (~> 2.21)
custom_fields (~> 2.0.0.rc12)
devise (~> 2.1.0)
devise-encryptable (~> 0.1.1)
dragonfly (~> 0.9.8)
flash_cookie_session (~> 1.1.1)
fog (~> 1.3.1)
formtastic (~> 2.0.2)
haml (~> 3.1.6)
highline (~> 1.6.2)
httparty (~> 0.8.1)
jquery-rails (~> 1.0.19)
kaminari (~> 0.13.0)
locomotive-aloha-rails (~> 0.20.1.4)
locomotive-mongoid-tree (~> 0.6.2)
locomotive-tinymce-rails (~> 3.4.7.2)
locomotive_liquid (= 2.2.2)
mimetype-fu (~> 0.1.2)
mongo (~> 1.5.2)
mongoid (~> 2.4.9)
multi_json (~> 1.3.4)
rack-cache (~> 1.1)
rails (~> 3.2.5)
rails-backbone (~> 0.6.1)
rake (~> 0.9.2)
responders (~> 0.6.4)
rmagick (~> 2.12.2)
sanitize (~> 2.0.3)
unidecoder (~> 1.1.1)
GEM
remote: http://rubygems.org/
specs:
POpen4 (0.1.4)
Platform (>= 0.4.0)
open4
Platform (0.4.0)
RedCloth (4.2.7)
SystemTimer (1.2.3)
ZenTest (4.5.0)
abstract (1.0.0)
actionmailer (3.0.7)
actionpack (= 3.0.7)
mail (~> 2.2.15)
RedCloth (4.2.9)
actionmailer (3.2.5)
actionpack (= 3.2.5)
mail (~> 2.4.4)
actionmailer-with-request (0.3.0)
rails (>= 3)
actionpack (3.0.7)
activemodel (= 3.0.7)
activesupport (= 3.0.7)
builder (~> 2.1.2)
erubis (~> 2.6.6)
i18n (~> 0.5.0)
rack (~> 1.2.1)
rack-mount (~> 0.6.14)
rack-test (~> 0.5.7)
tzinfo (~> 0.3.23)
activemodel (3.0.7)
activesupport (= 3.0.7)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.7)
activemodel (= 3.0.7)
activesupport (= 3.0.7)
arel (~> 2.0.2)
tzinfo (~> 0.3.23)
activeresource (3.0.7)
activemodel (= 3.0.7)
activesupport (= 3.0.7)
activesupport (3.0.7)
archive-tar-minitar (0.5.2)
arel (2.0.10)
autotest (4.4.6)
ZenTest (>= 4.4.1)
bcrypt-ruby (2.1.4)
bson (1.3.1)
bson_ext (1.3.1)
builder (2.1.2)
bushido (0.0.14)
highline (>= 1.6.1)
json (>= 1.4.6)
rest-client (>= 1.6.1)
capybara (0.4.0)
celerity (>= 0.7.9)
culerity (>= 0.2.4)
actionpack (3.2.5)
activemodel (= 3.2.5)
activesupport (= 3.2.5)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
activemodel (3.2.5)
activesupport (= 3.2.5)
builder (~> 3.0.0)
activerecord (3.2.5)
activemodel (= 3.2.5)
activesupport (= 3.2.5)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.5)
activemodel (= 3.2.5)
activesupport (= 3.2.5)
activesupport (3.2.5)
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.2.8)
arel (3.0.2)
bcrypt-ruby (3.0.1)
bson (1.5.2)
bson_ext (1.5.2)
bson (= 1.5.2)
builder (3.0.0)
cancan (1.6.7)
capybara (1.1.2)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (>= 0.0.27)
xpath (~> 0.1.2)
celerity (0.8.9)
childprocess (0.1.9)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
carrierwave (0.6.2)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
carrierwave-mongoid (0.2.1)
carrierwave (~> 0.6.1)
mongoid (~> 2.1)
cells (3.8.5)
actionpack (~> 3.0)
railties (~> 3.0)
childprocess (0.3.2)
ffi (~> 1.0.6)
columnize (0.3.2)
configuration (1.2.0)
crack (0.1.8)
cucumber (0.8.5)
builder (~> 2.1.2)
diff-lcs (~> 1.1.2)
gherkin (~> 2.1.4)
json_pure (~> 1.4.3)
term-ansicolor (~> 1.0.4)
cucumber-rails (0.3.2)
cucumber (>= 0.8.0)
culerity (0.2.15)
custom_fields (1.0.0.beta.13)
activesupport (>= 3.0.7)
locomotive_carrierwave
mongoid (~> 2.0.1)
daemons (1.1.3)
database_cleaner (0.6.7)
delayed_job (2.1.4)
activesupport (~> 3.0)
daemons
delayed_job_mongoid (1.0.2)
delayed_job (~> 2.1.1)
mongoid (~> 2.0.0.rc)
devise (1.1.3)
bcrypt-ruby (~> 2.1.2)
warden (~> 0.10.7)
diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
excon (0.6.3)
factory_girl (1.3.3)
factory_girl_rails (1.0.1)
factory_girl (~> 1.3)
chunky_png (1.2.5)
codemirror-rails (2.24)
railties (~> 3.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.3.3)
compass (0.12.1)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
compass-rails (1.0.2)
compass (>= 0.12.0, < 0.14)
cucumber (1.2.1)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
cucumber-rails (1.3.0)
capybara (>= 1.1.2)
cucumber (>= 1.1.8)
nokogiri (>= 1.5.0)
custom_fields (2.0.0.rc12)
activesupport (~> 3.2.1)
carrierwave-mongoid (~> 0.2.1)
mongoid (~> 2.4.9)
database_cleaner (0.8.0)
devise (2.1.0)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.0.7)
railties (~> 3.1)
warden (~> 1.1.1)
devise-encryptable (0.1.1)
devise (>= 2.1.0.rc)
diff-lcs (1.1.3)
dragonfly (0.9.12)
rack
ejs (1.0.0)
erubis (2.7.0)
eventmachine (0.12.10)
excon (0.13.4)
execjs (1.4.0)
multi_json (~> 1.0)
factory_girl (2.5.2)
activesupport (>= 2.3.9)
factory_girl_rails (1.6.0)
factory_girl (~> 2.5.0)
railties (>= 3.0.0)
ffi (1.0.9)
fog (0.3.7)
faye-websocket (0.4.5)
eventmachine (>= 0.12.0)
ffi (1.0.11)
flash_cookie_session (1.1.3)
rails (~> 3.0)
fog (1.3.1)
builder
excon (>= 0.2.3)
formatador (>= 0.0.15)
json
excon (~> 0.13.0)
formatador (~> 0.2.0)
mime-types
net-ssh (~> 2.0.23)
nokogiri (~> 1.4.3.1)
multi_json (~> 1.0)
net-scp (~> 1.0.4)
net-ssh (>= 2.1.3)
nokogiri (~> 1.5.0)
ruby-hmac
formatador (0.1.4)
formtastic (1.2.3)
actionpack (>= 2.3.7)
activesupport (>= 2.3.7)
i18n (~> 0.4)
gherkin (2.1.5)
trollop (~> 1.16.2)
growl-glue (1.0.7)
haml (3.0.25)
has_scope (0.5.0)
heroku (1.19.1)
activesupport (>= 2.1.0)
launchy (~> 0.3.2)
rest-client (< 1.7.0, >= 1.4.0)
highline (1.6.2)
httparty (0.7.7)
crack (= 0.1.8)
i18n (0.5.0)
inherited_resources (1.1.2)
has_scope (~> 0.5.0)
responders (~> 0.6.0)
jammit (0.6.3)
yui-compressor (>= 0.9.3)
json (1.5.1)
json_pure (1.4.6)
kgio (2.4.1)
launchy (0.3.7)
configuration (>= 0.0.5)
rake (>= 0.8.1)
linecache (0.43)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
locomotive_carrierwave (0.5.0.1.beta3)
activesupport (~> 3.0)
locomotive_jammit-s3 (0.5.4.4)
jammit (>= 0.5.4)
mimemagic (>= 0.1.7)
s3 (>= 0.3.7)
formatador (0.2.3)
formtastic (2.0.2)
rails (~> 3.0)
fssm (0.2.9)
gherkin (2.11.0)
json (>= 1.4.6)
haml (3.1.6)
highline (1.6.12)
hike (1.2.1)
http_parser.rb (0.5.3)
httparty (0.8.3)
multi_json (~> 1.0)
multi_xml
i18n (0.6.0)
journey (1.0.3)
jquery-rails (1.0.19)
railties (~> 3.0)
thor (~> 0.14)
json (1.7.3)
json_spec (1.0.3)
multi_json (~> 1.0)
rspec (~> 2.0)
kaminari (0.13.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
kgio (2.7.4)
launchy (2.1.0)
addressable (~> 2.2.6)
libwebsocket (0.1.3)
addressable
locomotive-aloha-rails (0.20.1.4)
actionpack (~> 3.2.1)
locomotive-mongoid-tree (0.6.2)
mongoid (~> 2.0)
locomotive-tinymce-rails (3.4.7.2)
actionpack (~> 3.0)
locomotive_liquid (2.2.2)
locomotive_mongoid_acts_as_tree (0.1.5.5)
mongoid (~> 2.0.0.rc.7)
mail (2.2.19)
activesupport (>= 2.3.6)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
mimemagic (0.1.8)
mime-types (1.18)
mimetype-fu (0.1.2)
mongo (1.3.1)
bson (>= 1.3.1)
mongoid (2.0.2)
activemodel (~> 3.0)
mongo (~> 1.3)
mocha (0.9.12)
mongo (1.5.2)
bson (= 1.5.2)
mongoid (2.4.11)
activemodel (~> 3.1)
mongo (<= 1.6.2)
tzinfo (~> 0.3.22)
net-ssh (2.0.24)
nokogiri (1.4.3.1)
open4 (1.0.1)
pickle (0.4.7)
multi_json (1.3.6)
multi_xml (0.5.1)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-ssh (2.5.2)
nokogiri (1.5.3)
orm_adapter (0.0.7)
pickle (0.4.10)
cucumber (>= 0.8)
rake
polyglot (0.3.1)
proxies (0.2.1)
rack (1.2.3)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.7)
actionmailer (= 3.0.7)
actionpack (= 3.0.7)
activerecord (= 3.0.7)
activeresource (= 3.0.7)
activesupport (= 3.0.7)
bundler (~> 1.0)
railties (= 3.0.7)
railties (3.0.7)
actionpack (= 3.0.7)
activesupport (= 3.0.7)
rake (>= 0.8.7)
thor (~> 0.14.4)
rake (0.8.7)
responders (0.6.4)
rest-client (1.6.1)
mime-types (>= 1.16)
rmagick (2.12.2)
rspec (2.3.0)
rspec-core (~> 2.3.0)
rspec-expectations (~> 2.3.0)
rspec-mocks (~> 2.3.0)
rspec-core (2.3.1)
rspec-expectations (2.3.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.3.0)
rspec-rails (2.3.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.3.0)
ruby-debug (0.10.4)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.4.0)
ruby-debug-base (0.10.4)
linecache (>= 0.3)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4)
ruby-debug19 (0.11.6)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby-hmac (0.4.0)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
rubyzip (0.9.4)
s3 (0.3.8)
proxies (~> 0.2.0)
selenium-webdriver (0.2.0)
childprocess (>= 0.1.7)
ffi (>= 1.0.7)
json_pure
rubyzip
spork (0.8.5)
term-ansicolor (1.0.5)
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
trollop (1.16.2)
tzinfo (0.3.27)
unicorn (3.6.2)
kgio (~> 2.3)
poltergeist (0.6.0)
capybara (~> 1.0)
childprocess (~> 0.3)
faye-websocket (~> 0.4, >= 0.4.4)
http_parser.rb (~> 0.5.3)
multi_json (~> 1.0)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack
warden (0.10.7)
rack (>= 1.0.0)
will_paginate (2.3.15)
yui-compressor (0.9.6)
POpen4 (>= 0.1.4)
rack-test (0.6.1)
rack (>= 1.0)
rails (3.2.5)
actionmailer (= 3.2.5)
actionpack (= 3.2.5)
activerecord (= 3.2.5)
activeresource (= 3.2.5)
activesupport (= 3.2.5)
bundler (~> 1.0)
railties (= 3.2.5)
rails-backbone (0.6.1)
coffee-script (~> 2.2.0)
ejs (~> 1.0.0)
railties (>= 3.1.0)
railties (3.2.5)
actionpack (= 3.2.5)
activesupport (= 3.2.5)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
raindrops (0.9.0)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
responders (0.6.5)
rmagick (2.12.2)
rspec (2.8.0)
rspec-core (~> 2.8.0)
rspec-expectations (~> 2.8.0)
rspec-mocks (~> 2.8.0)
rspec-cells (0.1.2)
cells (~> 3.4)
rails (~> 3.0)
rspec-rails (~> 2.2)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0)
rspec-rails (2.8.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.8.0)
ruby-hmac (0.4.0)
rubyzip (0.9.8)
sanitize (2.0.3)
nokogiri (>= 1.4.4, < 1.6)
sass (3.1.19)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
selenium-webdriver (2.22.2)
childprocess (>= 0.2.5)
ffi (~> 1.0)
libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
shoulda-matchers (1.1.0)
activesupport (>= 3.0.0)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thor (0.15.2)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.33)
uglifier (1.2.4)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
unicorn (4.3.1)
kgio (~> 2.6)
rack
raindrops (~> 0.7)
unidecoder (1.1.1)
warden (1.1.1)
rack (>= 1.0)
xpath (0.1.4)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
RedCloth (= 4.2.7)
SystemTimer
ZenTest
actionmailer-with-request
autotest
bson_ext (~> 1.3.0)
bushido
bushido_stub!
capybara
cucumber (= 0.8.5)
coffee-rails (~> 3.2.2)
compass-rails
cucumber-rails
custom_fields (= 1.0.0.beta.13)
database_cleaner
delayed_job (= 2.1.4)
delayed_job_mongoid (= 1.0.2)
devise (= 1.1.3)
factory_girl_rails
fog (= 0.3.7)
formtastic (~> 1.2.3)
growl-glue
haml (= 3.0.25)
heroku (= 1.19.1)
httparty (>= 0.6.1)
inherited_resources (~> 1.1.2)
factory_girl_rails (~> 1.6.0)
json_spec
launchy
locomotive_carrierwave (= 0.5.0.1.beta3)
locomotive_jammit-s3
locomotive_liquid (= 2.2.2)
locomotive_mongoid_acts_as_tree (= 0.1.5.5)
mimetype-fu
mocha!
mongoid (~> 2.0.1)
locomotive_cms!
mocha (= 0.9.12)
pickle
rails (>= 3.0.7)
rake (= 0.8.7)
rmagick (= 2.12.2)
rspec-rails (= 2.3.1)
ruby-debug
ruby-debug19
rubyzip
spork
poltergeist
rspec-cells
rspec-rails (~> 2.8.0)
sass-rails (~> 3.2.4)
shoulda-matchers
uglifier (~> 1.2.4)
unicorn
warden
will_paginate
xpath!
xpath (~> 0.1.4)

View File

@ -1,6 +1,6 @@
== MIT License
Copyright (c) 2010, Didier Lafforgue.
Copyright (c) 2010-2012, Didier Lafforgue.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,14 +1,19 @@
h1. Locomotive CMS
"!https://secure.travis-ci.org/locomotivecms/engine.png!":http://travis-ci.org/locomotivecms/engine
Locomotive is a simple but powerful CMS based on liquid templates and mongodb database. At my company ("NoCoffee":http://www.nocoffee.fr), we use it for our clients when they request a simple website.
If we have to give only 5 main features to describe our application, there will be:
If we have to give a couple of features to describe our application, there will be:
* managing as many websites as you want with one application instance
* nice looking UI (see http://www.locomotivecms.com for some screenshots)
* flexible content types
* playing smoothly with Heroku and MongoHQ
* inline editing (beta)
* content localization out of the box
* playing smoothly with Heroku, Bushido and MongoHQ
* inline editing (wip)
* API
h2. Strategy / Development status
@ -17,26 +22,53 @@ Now, our goal is to port our prototype to Rails 3 and migrate from mongomapper t
h2. Gems
Here is a short list of main gems used in the application.
Here is a short list of main gems / technologies used in the application.
* Rails 3.0.7
* Mongoid 2.0.1 (with MongoDB 1.6)
* Rails 3.2.5
* Mongoid 2.4.9 (with MongoDB 2.0)
* Liquid
* Devise
* Carrierwave
* Haml
* Delayed job
* Jammit-s3
* Formtastic
* Cells
* Coffeescript / Backbone / SASS
h2. Installation
See the "official website":http://www.locomotivecms.com
h2. Upgrading
We work on the procedure to upgrade from a previous version of the engine (below the 2.0.0)
h2. Community
* Get help or discuss locomotive CMS at the "LocomotiveCMS Google group":https://groups.google.com/forum/?fromgroups#!forum/locomotivecms or the "LocomotiveCMS Discussion Forums":http://locomotive.vanillaforums.com/ (deprecated)
* Join us on IRC "#locomotivecms at irc.freenode.net!":http://webchat.freenode.net/
* "Follow us on twitter":http://twitter.com/locomotivecms
h2. Contributing to Locomotive
Locomotive CMS is an open source project, we encourage contributions. If you have found a bug and want to contribute a fix, or have a new feature you would like to add, follow the steps below to get your patch into the project:
* Install ruby and mongoDB
* Clone the project <code>git clone git@github.com:locomotivecms/engine.git</code>
* Setup a virtual host entry for <code>test.example.com</code> to point to localhost
* Install PhantomJS (Required for the cucumber suite See: https://github.com/jonleighton/poltergeist)
* Run the tests <code>rake</code>
* Write your failing tests
* Make the tests pass
* "Create a GitHub pull request":http://help.github.com/send-pull-requests
For new features (especially large ones) it is best to create a topic on the "Google group":https://groups.google.com/forum/?fromgroups#!forum/locomotivecms first to make sure it fits into the goals of the project.
h2. Team
* Developers: "Didier Lafforgue":http://www.nocoffee.fr, "Jacques Crocker":http://www.railsjedi.com
* Contributors: "Dirk Kelly":http://www.dirkkelly.com, "Mario Visic":http://www.mariovisic.com, "Raphael Costa":http://raphaelcosta.net (Brazilian Portuguese translation), "Bernd Hauser":http://www.designhunger.de (German translation), "Andrea Frigido":http://www.frisoft.it (Italian translation)
* Developers: "Didier Lafforgue":http://www.nocoffee.fr, "Mario Visic":http://www.mariovisic.com, "Jacques Crocker":http://www.railsjedi.com
* Contributors: "Dirk Kelly":http://www.dirkkelly.com, "Raphael Costa":http://raphaelcosta.net (Brazilian Portuguese translation), "Bernd Hauser":http://www.designhunger.de (German translation), "Andrea Frigido":http://www.frisoft.it (Italian translation), "Enrique García":https://github.com/kikito (Spanish translation), "Lars Smit":https://github.com/larssmit (Dutch translation), "PitOn":https://github.com/GarPit (Russian translation), "paulsponagl":https://github.com/paulsponagl
* UI Designer: "Sacha Greif":http://www.sachagreif.com
* IE maintainer: "Alex Sanford":https://github.com/alexsanford
h2. Support
@ -52,4 +84,5 @@ h2. Contact
Feel free to contact me at didier at nocoffee dot fr.
Copyright (c) 2011 NoCoffee, released under the MIT license
Copyright (c) 2012 NoCoffee, released under the MIT license
...

View File

@ -1,20 +1,33 @@
require File.expand_path('../config/application', __FILE__)
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
Locomotive::Application.load_tasks
gemspec = eval(File.read('locomotive_cms.gemspec'))
Rake::GemPackageTask.new(gemspec) do |pkg|
pkg.gem_spec = gemspec
#!/usr/bin/env rake
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
desc "build the gem and release it to rubygems.org"
task :release => :gem do
sh "gem push pkg/locomotive_cms-#{gemspec.version}.gem"
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
# === Locomotive tasks ===
load 'lib/tasks/locomotive.rake'
# === Gems install tasks ===
Bundler::GemHelper.install_tasks
# === Travis
task :travis do
["rspec spec", "cucumber -b"].each do |cmd|
puts "Starting to run #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
end
# === RSpec ===
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
# === Cucumber ===
load 'lib/tasks/cucumber.rake'
# === Default task ===
task :default => [:spec, :cucumber]

View File

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 221 B

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

View File

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 847 B

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 B

View File

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

View File

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 847 B

View File

Before

Width:  |  Height:  |  Size: 704 B

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

View File

Before

Width:  |  Height:  |  Size: 215 B

After

Width:  |  Height:  |  Size: 215 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

View File

Before

Width:  |  Height:  |  Size: 909 B

After

Width:  |  Height:  |  Size: 909 B

View File

Before

Width:  |  Height:  |  Size: 536 B

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 219 B

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 314 B

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 496 B

After

Width:  |  Height:  |  Size: 496 B

View File

Before

Width:  |  Height:  |  Size: 467 B

After

Width:  |  Height:  |  Size: 467 B

View File

Before

Width:  |  Height:  |  Size: 109 B

After

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,3 @@
button.aloha-locomotive-media-insert {
background: url(../img/image.gif) !important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

View File

@ -0,0 +1,96 @@
define(
['aloha/jquery', 'aloha/plugin', 'aloha/floatingmenu', 'i18n!aloha/nls/i18n', 'i18n!locomotive_media/nls/i18n', 'css!locomotive_media/css/image.css'],
function(aQuery, Plugin, FloatingMenu, i18nCore, i18n) {
var jQuery = aQuery;
var $ = aQuery;
var GENTICS = window.GENTICS, Aloha = window.Aloha;
return Plugin.create('locomotive_media', {
init: function() {
FloatingMenu.createScope(this.name, 'Aloha.continuoustext');
this._addUIInsertButton(i18nCore.t('floatingmenu.tab.insert'));
},
openDialog: function() {
var that = this;
var picker = window.parent.application_view.content_assets_picker_view;
picker.options.on_select = function(asset) {
if (asset.get('image') == true)
that.insertImg(asset);
else
that.insertLink(asset);
picker.close();
}
picker.fetch_assets();
},
/**
* This method will insert a new image dom element into the dom tree
*/
insertImg: function(asset) {
var range = Aloha.Selection.getRangeObject(),
imageUrl = asset.get('url'),
imagestyle, imagetag, newImg;
if (range.isCollapsed()) {
imagestyle = "max-width: " + asset.get('width') + "; max-height: " + asset.get('height');
imagetag = '<img style="'+ imagestyle + '" src="' + imageUrl + '" title="" />';
newImg = jQuery(imagetag);
GENTICS.Utils.Dom.insertIntoDOM(newImg, range, jQuery(Aloha.activeEditable.obj));
} else {
Aloha.Log.error('media cannot markup a selection');
}
},
/**
* This method will insert a new link dom element into the dom tree
*/
insertLink: function(asset) {
var range = Aloha.Selection.getRangeObject(),
linkText = asset.get('filename'),
linkUrl = asset.get('url'),
linktag, newLink;
if (range.isCollapsed()) {
linktag = '<a href="' + linkUrl + '">' + linkText + '</a>';
newLink = jQuery(linktag);
GENTICS.Utils.Dom.insertIntoDOM(newLink, range, jQuery(Aloha.activeEditable.obj));
range.startContainer = range.endContainer = newLink.contents().get(0);
range.startOffset = 0;
range.endOffset = linkText.length;
} else {
linktag = '<a href="' + linkUrl + '"></a>';
newLink = jQuery(linktag);
GENTICS.Utils.Dom.addMarkup(range, newLink, false);
}
},
/**
* Adds the insert button to the floating menu
*/
_addUIInsertButton: function(tabId) {
var that = this;
this.insertMediaButton = new Aloha.ui.Button({
'name' : 'insertlocomotivemedia',
'iconClass': 'aloha-button aloha-locomotive-media-insert',
'size' : 'small',
'onclick' : function () { that.openDialog(); },
'tooltip' : i18n.t('button.addimg.tooltip'),
'toggle' : false
});
FloatingMenu.addButton(
'Aloha.continuoustext',
this.insertMediaButton,
tabId,
1
);
},
});
}
);

View File

@ -0,0 +1 @@
define({ 'button.addimg.tooltip': 'insérer média' });

View File

@ -0,0 +1,4 @@
define({
root: { "button.addimg.tooltip": "insert media" },
fr: true
});

View File

@ -0,0 +1,25 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require underscore
//= require backbone
//= require codemirror
//= require tinymce-jquery
//= require codemirror/utils/overlay
//= require codemirror/modes/css
//= require codemirror/modes/javascript
//= require codemirror/modes/xml
//= require codemirror/modes/htmlmixed
//= require locomotive/vendor
//= require ./locomotive/application
$(document).ready(function() {
$.datepicker.setDefaults($.datepicker.regional[window.locale]);
});

View File

@ -0,0 +1,2 @@
#= require ./utils/aloha_settings
#= require aloha

View File

@ -0,0 +1,12 @@
#= require_self
#= require_tree ./utils
#= require_tree ./models
#= require_tree ./views
window.Locomotive =
mounted_on: window.Locomotive.mounted_on
Models: {}
Collections: {}
Views: {}
window.Locomotive.Views.Memberships = {}

View File

@ -0,0 +1,22 @@
#= require jquery
#= require jquery-ui
#= require jquery_ujs
#= require underscore
#= require backbone
#= require locomotive/backbone.sync
#= require locomotive/growl
#= require locomotive/handlebars
#= require locomotive/ICanHandlebarz
#= require locomotive/resize
#= require locomotive/toggle
#= require_self
#= require_tree ./utils
#= require_tree ./models
#= require_tree ./views/content_assets
#= require_tree ./views/inline_editor
window.Locomotive =
mounted_on: '/locomotive' # default path
Models: {}
Collections: {}
Views: {}

View File

@ -0,0 +1,11 @@
class Locomotive.Models.Account extends Backbone.Model
paramRoot: 'account'
urlRoot: "#{Locomotive.mounted_on}/accounts"
class Locomotive.Models.CurrentAccount extends Locomotive.Models.Account
url: "#{Locomotive.mounted_on}/my_account"

View File

@ -0,0 +1,20 @@
class Locomotive.Models.ContentAsset extends Backbone.Model
paramRoot: 'content_asset'
urlRoot: "#{Locomotive.mounted_on}/content_assets"
initialize: ->
@prepare()
prepare: ->
@set
image: @get('content_type') == 'image'
return @
class Locomotive.Models.ContentAssetsCollection extends Backbone.Collection
model: Locomotive.Models.ContentAsset
url: "#{Locomotive.mounted_on}/content_assets"

View File

@ -0,0 +1,61 @@
class Locomotive.Models.ContentEntry extends Backbone.Model
paramRoot: 'content_entry'
urlRoot: "#{Locomotive.mounted_on}/content_types/:slug/entries"
initialize: ->
@urlRoot = @urlRoot.replace(':slug', @get('content_type_slug'))
_.each @get('has_many_custom_fields'), (field) =>
name = field[0]
collection = new Locomotive.Models.ContentEntriesCollection(@get(name))
@set_attribute name, collection
_.each @get('many_to_many_custom_fields'), (field) =>
name = field[0]
collection = new Locomotive.Models.ContentEntriesCollection(@get(name))
collection.comparator = (entry) -> entry.get('__position') || 0
@set_attribute name, collection
set_attribute: (attribute, value) ->
data = {}
data[attribute] = value
@set data
update_attributes: (attributes) ->
_.each attributes.file_custom_fields, (field) => # special treatment for files
attribute = "#{field}_url"
@set_attribute attribute, attributes[attribute]
@set_attribute "remove_#{field}", false
toMinJSON: ->
_.tap {}, (hash) =>
_.each @attributes, (val, key) =>
if key == 'id' || key == '_destroy' || key.indexOf('position_in_') == 0
hash[key] = val
toJSON: ->
_.tap super, (hash) =>
hash['_slug'] = '' if hash['_slug'] == null # avoid empty hash
_.each _.keys(hash), (key) =>
unless _.include(@get('safe_attributes'), key)
delete hash[key]
_.each @get('has_many_custom_fields'), (field) => # include the has_many relationships
name = field[0]
if @get(name).length > 0
hash["#{name}_attributes"] = @get(name).toMinJSON()
_.each @get('many_to_many_custom_fields'), (field) => # include the many_to_many relationships
name = field[0]; setter_name = field[1]
hash[setter_name] = @get(name).sort().map (entry) => entry.id
class Locomotive.Models.ContentEntriesCollection extends Backbone.Collection
model: Locomotive.Models.ContentEntry
url: "#{Locomotive.mounted_on}/content_types/:slug/entries"
toMinJSON: ->
@map (entry) => entry.toMinJSON()

View File

@ -0,0 +1,23 @@
class Locomotive.Models.ContentType extends Backbone.Model
paramRoot: 'content_type'
urlRoot: "#{Locomotive.mounted_on}/content_types"
initialize: ->
@_normalize()
_normalize: ->
@set
entries_custom_fields: new Locomotive.Models.CustomFieldsCollection(@get('entries_custom_fields'))
toJSON: ->
_.tap super, (hash) =>
delete hash.entries_custom_fields
hash.entries_custom_fields_attributes = @get('entries_custom_fields').toJSONForSave() if @get('entries_custom_fields')? && @get('entries_custom_fields').length > 0
class Locomotive.Models.ContentTypesCollection extends Backbone.Collection
model: Locomotive.Models.ContentType
url: "#{Locomotive.mounted_on}/content_types"

View File

@ -0,0 +1,38 @@
class Locomotive.Models.CustomField extends Backbone.Model
initialize: ->
@_normalize()
unless @get('name')?
@set name: @get('label').slugify()
_normalize: ->
@set
select_options: new Locomotive.Models.CustomFieldSelectOptionsCollection(@get('select_options'))
_undesired_fields:
['select_options', 'type_text', 'text_formatting_text', 'inverse_of_text', 'class_name_text', 'undefined_text', 'undefined', 'created_at', 'updated_at']
_relationship_fields:
['class_name', 'inverse_of', 'ui_enabled']
is_relationship_type: ->
_.include(['belongs_to', 'has_many', 'many_to_many'], @get('type'))
toJSONForSave: ->
_.tap {}, (hash) =>
for key, value of @.toJSON()
unless _.include(@_undesired_fields, key)
if _.include(@_relationship_fields, key)
hash[key] = value if @is_relationship_type()
else
hash[key] = value
hash.select_options_attributes = @get('select_options').toJSONForSave() if @get('select_options')? && @get('select_options').length > 0
class Locomotive.Models.CustomFieldsCollection extends Backbone.Collection
model: Locomotive.Models.CustomField
toJSONForSave: ->
@map (model) => model.toJSONForSave()

View File

@ -0,0 +1,13 @@
class Locomotive.Models.CustomFieldSelectOption extends Backbone.Model
toJSONForSave: ->
_.tap {}, (hash) =>
for key, value of @.toJSON()
hash[key] = value unless _.include(['created_at', 'updated_at'], key)
class Locomotive.Models.CustomFieldSelectOptionsCollection extends Backbone.Collection
model: Locomotive.Models.CustomFieldSelectOption
toJSONForSave: ->
@map (model) => model.toJSONForSave()

View File

@ -0,0 +1,3 @@
class Locomotive.Models.Domain extends Backbone.Model

View File

@ -0,0 +1,27 @@
class Locomotive.Models.EditableElement extends Backbone.Model
toJSONForSave: ->
_.tap {}, (hash) =>
for key, value of @.toJSON()
hash[key] = value if _.include(['id', 'source', 'content', 'remove_source'], key)
if @get('type') == 'EditableFile'
delete hash['content']
else
delete hash['source']
class Locomotive.Models.EditableElementsCollection extends Backbone.Collection
model: Locomotive.Models.EditableElement
blocks: ->
names = _.uniq(@map (editable, index) -> editable.get('block_name'))
_.tap [], (list) =>
_.each names, (name, index) ->
list.push name: name, index: index
by_block: (name) ->
@filter (editable) -> editable.get('block_name') == name
toJSONForSave: ->
@map (model) => model.toJSONForSave()

View File

@ -0,0 +1,13 @@
class Locomotive.Models.Membership extends Backbone.Model
toJSONForSave: ->
_.tap {}, (hash) =>
for key, value of @.toJSON()
hash[key] = value if _.include(['id', '_id', 'role', '_destroy'], key)
class Locomotive.Models.MembershipsCollection extends Backbone.Collection
model: Locomotive.Models.Membership
toJSONForSave: ->
@map (model) => model.toJSONForSave()

View File

@ -0,0 +1,27 @@
class Locomotive.Models.Page extends Backbone.Model
paramRoot: 'page'
urlRoot: "#{Locomotive.mounted_on}/pages"
initialize: ->
@_normalize()
@set
edit_url: "#{Locomotive.mounted_on}/pages/#{@id}/edit"
_normalize: ->
@set
editable_elements: new Locomotive.Models.EditableElementsCollection(@get('editable_elements') || [])
toJSON: ->
_.tap super, (hash) =>
_.each ['fullpath', 'localized_fullpaths', 'templatized_from_parent', 'target_klass_name_text', 'content_type_id_text', 'edit_url', 'parent_id_text', 'response_type_text'], (key) => delete hash[key]
delete hash['editable_elements']
hash.editable_elements = @get('editable_elements').toJSONForSave() if @get('editable_elements')? && @get('editable_elements').length > 0
delete hash['target_klass_name']
hash.target_klass_name = @get('target_klass_name') if @get('templatized') == true
class Locomotive.Models.PagesCollection extends Backbone.Collection

View File

@ -0,0 +1,33 @@
class Locomotive.Models.Site extends Backbone.Model
paramRoot: 'site'
urlRoot: "#{Locomotive.mounted_on}/sites"
initialize: ->
# Be careful, domains_without_subdomain becomes domains
domains = _.map @get('domains_without_subdomain'), (name) =>
new Locomotive.Models.Domain(name: name)
memberships = new Locomotive.Models.MembershipsCollection(@get('memberships'))
@set domains: domains, memberships: memberships
includes_domain: (name) ->
name == @domain_with_domain() || _.any(@get('domains'), (domain) -> domain.get('name') == name)
domain_with_domain: ->
"#{@get('subdomain')}.#{@get('domain_name')}"
toJSON: ->
_.tap super, (hash) =>
delete hash.memberships
hash.memberships_attributes = @get('memberships').toJSONForSave() if @get('memberships')? && @get('memberships').length > 0
delete hash.domains
hash.domains = _.map(@get('domains'), (domain) -> domain.get('name'))
class Locomotive.Models.CurrentSite extends Locomotive.Models.Site
url: "#{Locomotive.mounted_on}/current_site"

View File

@ -0,0 +1,11 @@
class Locomotive.Models.Snippet extends Backbone.Model
paramRoot: 'snippet'
urlRoot: "#{Locomotive.mounted_on}/snippets"
class Locomotive.Models.SnippetsCollection extends Backbone.Collection
model: Locomotive.Models.Snippet
url: "#{Locomotive.mounted_on}/snippets"

View File

@ -0,0 +1,11 @@
class Locomotive.Models.ThemeAsset extends Backbone.Model
paramRoot: 'theme_asset'
urlRoot: "#{Locomotive.mounted_on}/theme_assets"
class Locomotive.Models.ThemeAssetsCollection extends Backbone.Collection
model: Locomotive.Models.ThemeAsset
url: "#{Locomotive.mounted_on}/theme_assets"

View File

@ -0,0 +1 @@
#= require jquery

View File

@ -0,0 +1,37 @@
window.Aloha = window.Aloha ?= {}
window.Aloha.settings =
logLevels: { 'error': true, 'warn': true, 'info': false, 'debug': false }
errorhandling: true
plugins:
format:
config: [ 'b', 'i', 'u','del','sub','sup', 'p', 'title', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'pre', 'removeFormat']
editables:
'.editable-short-text' : [ 'b', 'i', 'u' ]
link:
config: [ 'a' ]
editables:
'.editable-short-text': [ ]
list:
config: [ 'ul' ]
editables:
'.editable-short-text': [ ]
image:
ui:
insert: false
crop: false
i18n:
available: ['en', 'fr', 'pt-BR', 'es', 'de', 'no', 'ru', 'nl']
sidebar:
disabled: true

View File

@ -0,0 +1,75 @@
(function() {
String.prototype.trim = function() {
return this.replace(/^\s+/g, '').replace(/\s+$/g, '');
}
String.prototype.repeat = function(num) {
for (var i = 0, buf = ""; i < num; i++) buf += this;
return buf;
}
String.prototype.truncate = function(length) {
if (this.length > length) {
return this.slice(0, length - 3) + "...";
} else {
return this;
}
}
String.prototype.slugify = function(sep) {
if (typeof sep == 'undefined') sep = '_';
var alphaNumRegexp = new RegExp('[^\\w\\' + sep + ']', 'g');
var avoidDuplicateRegexp = new RegExp('[\\' + sep + ']{2,}', 'g');
return this.replace(/\s/g, sep).replace(alphaNumRegexp, '').replace(avoidDuplicateRegexp, sep).toLowerCase();
}
window.addParameterToURL = function(key, value, context) { // code from http://stackoverflow.com/questions/486896/adding-a-parameter-to-the-url-with-javascript
if (typeof context == 'undefined') context = document;
key = encodeURIComponent(key); value = encodeURIComponent(value);
var kvp = context.location.search.substr(1).split('&');
var i = kvp.length; var x; while(i--) {
x = kvp[i].split('=');
if (x[0] == key) {
x[1] = value;
kvp[i] = x.join('=');
break;
}
}
if (i < 0) { kvp[kvp.length] = [key,value].join('='); }
//this will reload the page, it's likely better to store this until finished
context.location.search = kvp.join('&');
}
window.addJavascript = function(doc, src, options) {
var script = doc.createElement('script');
script.type = 'text/javascript';
script.src = src;
if (options && options.onload) {
script.onload = options.onload;
delete(options.onload);
}
for (var key in options) {
script.setAttribute(key, options[key]);
}
doc.body.appendChild(script);
}
window.addStylesheet = function(doc, src, options) {
var stylesheet = doc.createElement('link');
stylesheet.style = 'text/css';
stylesheet.href = src;
stylesheet.media = 'screen';
stylesheet.rel = 'stylesheet';
doc.head.appendChild(stylesheet);
}
$.ui.dialog.prototype.overlayEl = function() { return this.overlay.$el; }
})();

View File

@ -0,0 +1,14 @@
$.growl.settings.noticeTemplate = '' +
'<div class="notice %title%">' +
' <p>%message%</p>' +
'</div>';
$.growl.settings.dockCss = {
position: 'fixed',
bottom: '20px',
left: '0px',
width: '100%',
zIndex: 50000
};
// $.growl.settings.displayTimeout = 500;

View File

@ -0,0 +1,9 @@
Handlebars.registerHelper 'each_with_index', (context, block) ->
ret = ""
for num in context
data = context[num]
data._index = num
ret = ret + block(data)
ret

Some files were not shown because too many files have changed in this diff Show More