summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 21:43:55 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 21:43:55 +0200
commit8957808536e53bb9329cb6ae12835fde7835210b (patch)
tree4bcb4fe279ecd78f8c138f06aec62174beea24aa /app/views
parenta627a650fda4e22107245a3269465347bb778258 (diff)
Stage 7 click-testing fixes (2)
- nodes_controller: permit staged_slug and staged_parent_id in node params; these were silently dropped since strong parameters migration, breaking the two-phase slug/parent change workflow - file_attachment: add SVG support; vector files are copied to all style directories without rasterisation, preserving scalability in the browser - assets index/show: constrain image display with max-width/max-height via admin.css td img rule; fixes oversized SVG thumbnails while leaving raster variants unaffected
Diffstat (limited to 'app/views')
-rw-r--r--app/views/assets/index.html.erb2
-rw-r--r--app/views/assets/show.html.erb4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb
index 83d55c2..51fc486 100644
--- a/app/views/assets/index.html.erb
+++ b/app/views/assets/index.html.erb
@@ -10,7 +10,7 @@
10 </tr> 10 </tr>
11<% @assets.each do |asset| %> 11<% @assets.each do |asset| %>
12 <tr> 12 <tr>
13 <td><%= image_tag asset.upload.url(:thumb) %></td> 13 <td><%= image_tag asset.upload.url(:thumb), style: "max-width: 100px; max-height: 100px;" %></td>
14 <td><%= link_to asset.name, asset.upload.url %></td> 14 <td><%= link_to asset.name, asset.upload.url %></td>
15 <td><%= asset.upload.content_type %></td> 15 <td><%= asset.upload.content_type %></td>
16 <td><%= link_to 'Show', asset %></td> 16 <td><%= link_to 'Show', asset %></td>
diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb
index a64987c..694be5a 100644
--- a/app/views/assets/show.html.erb
+++ b/app/views/assets/show.html.erb
@@ -6,7 +6,7 @@
6<table> 6<table>
7 <tr> 7 <tr>
8 <td>Thumbnail</td> 8 <td>Thumbnail</td>
9 <td><%= image_tag @asset.upload.url(:medium) %></td> 9 <td><%= image_tag @asset.upload.url(:medium), style: "max-width: 300px; max-height: 300px;" %></td>
10 </tr> 10 </tr>
11 <tr> 11 <tr>
12 <td>Public Path</td> 12 <td>Public Path</td>
@@ -20,4 +20,4 @@
20 <td>Size</td> 20 <td>Size</td>
21 <td><%= "#{@asset.upload.size/1024} KB" %></td> 21 <td><%= "#{@asset.upload.size/1024} KB" %></td>
22 </tr> 22 </tr>
23</table> \ No newline at end of file 23</table>