summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2012-02-18 22:02:12 +0100
committerhukl <contact@smyck.org>2012-02-18 22:02:12 +0100
commit99579f95be6deb2d2e4b7de1ba42f082971906b9 (patch)
tree942b20cafcf7aeb6fffccf14115f461c99010017 /app/views
parent16ffafb4ebbc7118b50a09205666ffafda05ad6b (diff)
show number of gallery images if more than one
Diffstat (limited to 'app/views')
-rw-r--r--app/views/content/_headline_image.html.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/content/_headline_image.html.erb b/app/views/content/_headline_image.html.erb
index ac2e86a..71a4cb3 100644
--- a/app/views/content/_headline_image.html.erb
+++ b/app/views/content/_headline_image.html.erb
@@ -3,6 +3,12 @@
3 ("galleries/" + @page.node.unique_name) 3 ("galleries/" + @page.node.unique_name)
4) %> 4) %>
5 5
6<% if 1 < @images.length %>
7 <div class="right">
8 <%= "#{@images.length} #{t(:images)}" %>
9 </div>
10<% end %>
11
6<div class="shadowbox_images" style="display: none"> 12<div class="shadowbox_images" style="display: none">
7 <% @images.each do |image| %> 13 <% @images.each do |image| %>
8 <%= link_to "hallo", image.upload.url, :class => "shadowbox_image" %> 14 <%= link_to "hallo", image.upload.url, :class => "shadowbox_image" %>