summaryrefslogtreecommitdiff
path: root/app/views/content/_headline_image.html.erb
blob: 71a4cb3e683ea9fee3987bda3ad86bb5205bc7ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<%= link_to_path(
  image_tag(@images[0].upload.url(:headline)),
  ("galleries/" + @page.node.unique_name)
) %>

<% if 1 < @images.length %>
  <div class="right">
    <%= "#{@images.length} #{t(:images)}" %>
  </div>
<% end %>

<div class="shadowbox_images" style="display: none">
  <% @images.each do |image| %>
    <%= link_to "hallo", image.upload.url, :class => "shadowbox_image" %>
  <% end %>
</div>