From 99579f95be6deb2d2e4b7de1ba42f082971906b9 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 18 Feb 2012 22:02:12 +0100 Subject: show number of gallery images if more than one --- app/views/content/_headline_image.html.erb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app') 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 @@ ("galleries/" + @page.node.unique_name) ) %> +<% if 1 < @images.length %> +
+ <%= "#{@images.length} #{t(:images)}" %> +
+<% end %> +