Commit Graph

85 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 da5db36b4c Migrate Paperclip → has_local_attached in Image, News, Quote models 2026-06-08 21:46:44 +02:00
BenClaw 74cbca706b Switch from simply_stored to simply_couch
- All models: SimplyStored::Couch → SimplyCouch::Model
- Gemfile: simply_stored → simply_couch
- devise_simply_stored → devise_simply_couch
- Remove stale couch_potato require (not used)
2026-06-07 18:24:21 +02:00
BenClaw 28be1d86d9 fix: require ace/mode-json for page_settings JSON editor
SetMode('ace/mode/json') fails silently when the mode isn't loaded,
skipping the JSON branch and falling through to handlebars mode.
2026-05-30 21:24:26 +02: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
BenClaw 37cbb428c6 Add SimplyStored::HasAttachment — Paperclip replacement for CouchDB
- New module lib/simply_stored/has_attachment.rb
  Drop-in replacement using MiniMagick for thumbnail generation.
  Same file paths as Paperclip — zero migration of existing files.
  Auto-declares CouchDB properties for attachment metadata.
  Proxy object mimics Paperclip::Attachment API for view compat.
- Wired into lib/cmtool.rb
- Added TODO migration comments to Image, News, Quote models
2026-05-18 04:41:56 +02:00
bterkuile 647cc38bad Better ruby3 forwarding for localization and have a default locale of en 2025-09-25 17:47:17 -05:00
bterkuile fc3c2f268a Fixes for rails 8 support 2025-08-27 11:55:13 -05:00
bterkuile a451ea622a Fase out bourbon 2025-02-13 11:44:53 -05:00
bterkuile 25f4fbebb7 Newest tinymce is without jquery. Not tested 2025-02-10 15:02:18 -05:00
bterkuile 3aa204aa30 Changes for mozo host 2020-03-05 11:36:19 -05:00
bterkuile 02e60c174d more custom managed security 2019-12-29 12:56:41 -05:00
bterkuile 10c2054318 Change Fixnum to Integer 2019-12-29 08:19:39 -05:00
bterkuile 4969be3e76 change before_filter to before_action 2019-12-29 08:00:52 -05:00
bterkuile 3caf808e22 Better funding spam block 2017-02-15 14:32:41 +01:00
bterkuile 96982e47a7 blacklist some funding sources 2016-06-04 14:39:16 +02:00
bterkuile cb77ce5921 upgrade and force html responses 2016-06-02 20:09:51 +02:00
bterkuile 7dc12ca3e8 Allow cmtool helpers to be used in other namespaces 2015-10-05 10:36:52 +02:00
bterkuile f7aa44ae2e Sync with latest simply_stored 2015-07-22 17:21:41 +02:00
bterkuile 97c4203c0e Better cmtool_user linking 2015-07-16 17:13:01 +02:00
bterkuile 11185626d7 Use default locale as cmtool default 2015-07-16 16:22:15 +02:00
bterkuile 335c4852e7 Enable cmtool_user for devise controller 2015-07-16 14:42:25 +02:00
bterkuile 42cc5afe6d Update dependencies, feature specs and sitemap 2015-07-14 14:11:33 +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 c4a7e7c987 Fix require dependency 2015-06-09 11:57:59 +02:00
bterkuile 9f225a1e1b Add datepicker functionality 2015-06-09 11:15:26 +02:00
bterkuile 1b82ab1784 Fix deep merging of yml files 2015-04-08 18:22:23 +02:00
bterkuile 20ebd784fc Add link-to helper with locale support 2015-04-08 12:28:30 +02:00
bterkuile 19a159e8d7 Use locale in template variables if available 2015-04-08 11:29:10 +02:00
bterkuile 7b333eec63 Fix yml editing not setting values correctly 2015-04-08 11:10:21 +02:00
bterkuile e937070277 Add other page fields to preview functionality 2015-03-11 07:33:26 +01: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 c931df94a0 Fix ace value setting 2015-03-07 17:11:19 +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 35296aa653 Merge branch 'master' of github.com:bterkuile/cmtool 2015-03-06 09:59:51 +01:00
bterkuile 829921d382 Formatted source editing and sitemap overload option 2015-03-06 09:59:43 +01:00
bterkuile 2b0d4816b8 User super exestance check on instance is more stable than method_defined 2015-03-04 16:04:18 +01:00
bterkuile 56a584e5db Fix helper issues 2015-03-04 15:31:57 +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