diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-21 22:25:08 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-21 22:25:08 +0200 |
| commit | 987c8224c7f1bafb84d5e284ff0093921b92f1a0 (patch) | |
| tree | 4de2569131a8dd1cfce765227384ae38bcef8d23 /app/views/content | |
| parent | a2e4a1a5d3e73504e78461e0e39a3d24815b76d4 (diff) | |
Widen nodes#show to all attachments
Diffstat (limited to 'app/views/content')
| -rw-r--r-- | app/views/content/_headline_image.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/content/_headline_image.html.erb b/app/views/content/_headline_image.html.erb index e7b821b9..13a4ac78 100644 --- a/app/views/content/_headline_image.html.erb +++ b/app/views/content/_headline_image.html.erb | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | :class => "glightbox", | 7 | :class => "glightbox", |
| 8 | :data => { :gallery => "page-#{@page.node.id}", | 8 | :data => { :gallery => "page-#{@page.node.id}", |
| 9 | :glightbox => glightbox_data(@headline_asset, @headline_asset.name), | 9 | :glightbox => glightbox_data(@headline_asset, @headline_asset.name), |
| 10 | :"credit-selector" => (@headline_asset.has_credit? ? "#credit_for_asset_#{@headline_asset.id}" : nil) } | 10 | :"credit-selector" => (@headline_asset.show_credit? ? "#credit_for_asset_#{@headline_asset.id}" : nil) } |
| 11 | ) %> | 11 | ) %> |
| 12 | <% if gallery_images.size > 1 %> | 12 | <% if gallery_images.size > 1 %> |
| 13 | <div class="right"><%= "#{gallery_images.size} #{t(:images)}" %></div> | 13 | <div class="right"><%= "#{gallery_images.size} #{t(:images)}" %></div> |
| @@ -18,7 +18,7 @@ | |||
| 18 | :class => "glightbox right", | 18 | :class => "glightbox right", |
| 19 | :data => { :gallery => "page-#{@page.node.id}", | 19 | :data => { :gallery => "page-#{@page.node.id}", |
| 20 | :glightbox => glightbox_data(gallery_images.first, gallery_images.first.name), | 20 | :glightbox => glightbox_data(gallery_images.first, gallery_images.first.name), |
| 21 | :"credit-selector" => (gallery_images.first.has_credit? ? "#credit_for_asset_#{gallery_images.first.id}" : nil) } %> | 21 | :"credit-selector" => (gallery_images.first.show_credit? ? "#credit_for_asset_#{gallery_images.first.id}" : nil) } %> |
| 22 | <% end %> | 22 | <% end %> |
| 23 | 23 | ||
| 24 | <% gallery_images.each do |image| %> | 24 | <% gallery_images.each do |image| %> |
| @@ -27,5 +27,5 @@ | |||
| 27 | <%= link_to "", image.upload.url, :class => "glightbox", :style => "display: none", | 27 | <%= link_to "", image.upload.url, :class => "glightbox", :style => "display: none", |
| 28 | :data => { :gallery => "page-#{@page.node.id}", | 28 | :data => { :gallery => "page-#{@page.node.id}", |
| 29 | :glightbox => glightbox_data(image, image.name), | 29 | :glightbox => glightbox_data(image, image.name), |
| 30 | :"credit-selector" => (image.has_credit? ? "#credit_for_asset_#{image.id}" : nil) } %> | 30 | :"credit-selector" => (image.show_credit? ? "#credit_for_asset_#{image.id}" : nil) } %> |
| 31 | <% end %> | 31 | <% end %> |
