43 Commits

Author SHA1 Message Date
bterkuile 4013070e4f feat: migrate from Foundation to Fomantic-UI
Swap foundation-rails for fomantic-ui-sass across the gem's own
layout/menu/alerts partials and all 11 generic scaffold resources
(pages, news, faqs, quotes, images, directories, keywords, yml_files,
contact_forms, newsletter_subscriptions, users). Foundation grid/button
classes replaced with Fomantic ui.form/ui.button/ui.table conventions;
legacy Foundation mixins in the custom component sass (panel, button,
grid-row/grid-column) rewritten as plain CSS since they no longer exist
once foundation_and_overrides.scss is gone.

Also fixes a real bug found along the way: boolean_text used
`.present?` on values, but SimplyCouch stores booleans as the strings
"0"/"1" — and "0".present? is true in Ruby, so it always rendered
"Yes" regardless of actual value. Now uses ActiveModel::Type::Boolean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-07 23:36:35 -05:00
BenClaw 00be67de45 fix: use data: { mode: 'json' } instead of hash rocket syntax
Rails form helpers translate data: { mode: 'json' } to data-mode="json".
The hash rocket 'data-mode' => 'json' may not generate the attribute
correctly in Slim context.
2026-05-30 21:21:14 +02:00
bterkuile f54bfb63db Dont use haml style tags 2026-05-30 14:06:36 -05:00
BenClaw 548a227617 feat: add page_settings JSON property + ACE JSON mode
- Add property :page_settings (Hash, default {}) to Page model
- JSON.parse string input in setter (form submits as text)
- Add collapsible 'Page Settings (JSON)' section to page form
- Support data-mode='json' attribute for ACE editor
  (html_edit.js.coffee: check textarea data-mode attribute)
2026-05-30 20:33:15 +02:00
bterkuile fc3c2f268a Fixes for rails 8 support 2025-08-27 11:55:13 -05:00
bterkuile 3aa204aa30 Changes for mozo host 2020-03-05 11:36:19 -05:00
bterkuile cb77ce5921 upgrade and force html responses 2016-06-02 20:09:51 +02:00
bterkuile 97c4203c0e Better cmtool_user linking 2015-07-16 17:13:01 +02:00
bterkuile 17bd340071 Only hide menu user part if no cmtool_user is defined 2015-06-09 13:57:40 +02:00
bterkuile 0ab5903de6 Add application name to routing 2015-06-09 13:44:06 +02:00
bterkuile 7b333eec63 Fix yml editing not setting values correctly 2015-04-08 11:10:21 +02:00
bterkuile ba76940007 more hacky solution for preview iframe in foundation reveal modal 2015-03-08 10:22:20 +01:00
bterkuile 6a191e5d07 Add template support 2015-03-07 21:19:34 +01:00
bterkuile 3d98bcc89b Use ace to edit pages, and ass yml_files and preview setup 2015-03-07 16:56:07 +01:00
bterkuile 8ba2fa731e Fix directories and images 2015-03-06 11:28:11 +01:00
bterkuile aa11f4de80 Better authentication allowing non user model eg administrator model base 2015-03-04 15:23:01 +01:00
bterkuile b0491aa997 Better side menu 2015-02-25 10:11:48 +01:00
bterkuile 2df08b7348 further foundation refactor 2015-02-25 10:05:38 +01:00
bterkuile 82553ab0a2 Better styling 2015-02-25 09:33:02 +01:00
bterkuile e2f8459960 kinda update to foundation, depricate bootstrap 2 2015-01-28 18:15:25 +01:00
bterkuile 323e68bcad With working specs 2015-01-13 16:59:53 +01:00
bterkuile 978832bf25 Use configured available locales 2015-01-13 16:56:06 +01:00
bterkuile a4bef656cc Depricate haml 2014-12-11 13:41:09 +01:00
bterkuile 6afc9bdae9 fix logout link 2014-09-29 16:21:17 +02:00
bterkuile 6837917306 remove link_to_function dependency 2014-09-04 11:26:03 +02:00
bterkuile 372231b1b7 New gem readyness and strong parameter fixes 2014-07-14 18:58:23 +02:00
bterkuile 9d25f38bbf disable preview function 2014-07-14 17:42:11 +02:00
bterkuile 9c7645cc58 Rails upgrades 2014-01-01 20:39:29 +01:00
bterkuile bf83d33527 add engine link option 2012-12-26 20:45:22 +01:00
bterkuile 55efff20a8 additions for extra security and plugin integration, based on couch_i18n development 2012-12-17 15:57:13 +01:00
bterkuile c1ff4a9e50 refactor for better plugin integration 2012-12-17 14:19:04 +01:00
bterkuile e02a93bda1 cleaner menu layout, moved into partial 2012-12-15 12:53:03 +01:00
bterkuile 90fd490909 change load behaviour in a better engine way and add more tests 2012-12-14 18:19:04 +01:00
bterkuile 44e078ac69 untested test update 2012-11-25 16:32:48 +01:00
bterkuile e27485cb20 Move to twitter design 2012-11-25 11:48:39 +01:00
bterkuile 58f7ba93b6 migrate to new menu handling system 2012-11-25 09:52:46 +01:00
bterkuile bb8efcb616 Leiden top Amsterdam CS moving towards twitter bootstrap 2012-11-23 18:02:58 +01:00
bterkuile 2ef63f0517 initialize test framenwork and add form handlers for newsletter and contact forms 2012-04-02 18:04:47 +02:00
bterkuile 664b001e5c add changes 2012-03-28 15:47:20 +02:00
bterkuile 2ca8e2c533 progress 2012-03-28 10:17:52 +02:00
bterkuile a18d1bd646 fixes and styling upgrades 2012-03-25 14:38:59 +02:00
bterkuile 4c72fb10a1 upgrade styling 2012-03-25 14:24:02 +02:00
bterkuile 7bc602f476 initial version 2012-03-25 12:44:00 +02:00