From 6ddc9d73f1299cdeb90bc88ed0bb53821c4825aa Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 14 Jul 2026 17:25:37 +0200 Subject: Supply related-asset URLs/name and public inline-image CSS RelatedAssetsController#create's JSON includes large_url, original_url, and name alongside thumb_url/url; the related-asset list items in both editors carry them as data-large-url, data-original-url, and data-name. ccc.css gets the public-facing .inline-image--full/--half/--left/ --right rules -- admin.css and TinyMCE's content_style cover the cockpit and in-editor renderings respectively. --- app/controllers/related_assets_controller.rb | 2 ++ app/views/nodes/edit.html.erb | 5 ++++- app/views/page_translations/edit.html.erb | 9 +++++++++ public/stylesheets/ccc.css | 21 +++++++++++++++++++++ 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/app/controllers/related_assets_controller.rb b/app/controllers/related_assets_controller.rb index 479ebec..5af73fc 100644 --- a/app/controllers/related_assets_controller.rb +++ b/app/controllers/related_assets_controller.rb @@ -27,6 +27,8 @@ class RelatedAssetsController < ApplicationController asset_id: asset.id, name: asset.name, thumb_url: asset.upload.url(:thumb), + large_url: asset.upload.url(:large), + original_url: asset.upload.url, url: node_related_asset_path(@node, related) } end diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 9506995..25f15c2 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb @@ -81,7 +81,10 @@ data-create-url="<%= node_related_assets_path(@node) %>">