From 2fd33c36428ae7684badc43dbe2142152f058b4e Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 8 Oct 2009 22:24:51 +0200 Subject: enabled shadowbox for headline images on public pages. if js is disabled the regular html version is rendered --- app/views/content/_headline_image.html.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/views/content/_headline_image.html.erb (limited to 'app/views/content') diff --git a/app/views/content/_headline_image.html.erb b/app/views/content/_headline_image.html.erb new file mode 100644 index 0000000..ac2e86a --- /dev/null +++ b/app/views/content/_headline_image.html.erb @@ -0,0 +1,10 @@ +<%= link_to_path( + image_tag(@images[0].upload.url(:headline)), + ("galleries/" + @page.node.unique_name) +) %> + + \ No newline at end of file -- cgit v1.3