diff options
Diffstat (limited to 'app/views/nodes/show.html.erb')
| -rw-r--r-- | app/views/nodes/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index f2b4b154..adf79dd8 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -253,12 +253,12 @@ | |||
| 253 | <% end %> | 253 | <% end %> |
| 254 | </div> | 254 | </div> |
| 255 | 255 | ||
| 256 | <% if @page.assets.images.any? %> | 256 | <% if @page.assets.any? %> |
| 257 | <% headline_asset_id = @page.headline_asset&.id %> | 257 | <% headline_asset_id = @page.headline_asset&.id %> |
| 258 | <div class="node_description">Images</div> | 258 | <div class="node_description">Images</div> |
| 259 | <div class="node_content node_info_group"> | 259 | <div class="node_content node_info_group"> |
| 260 | <ul class="thumbnail_list"> | 260 | <ul class="thumbnail_list"> |
| 261 | <% @page.assets.images.each do |asset| %> | 261 | <% @page.assets.each do |asset| %> |
| 262 | <li class="<%= "is_headline" if asset.id == headline_asset_id %>"> | 262 | <li class="<%= "is_headline" if asset.id == headline_asset_id %>"> |
| 263 | <%= link_to image_tag(asset.upload.url(:thumb)), asset_path(asset) %> | 263 | <%= link_to image_tag(asset.upload.url(:thumb)), asset_path(asset) %> |
| 264 | <% if asset.id == headline_asset_id %> | 264 | <% if asset.id == headline_asset_id %> |
