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 ++++++++++ app/views/layouts/application.html.erb | 7 +------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 app/views/content/_headline_image.html.erb (limited to 'app/views') 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 diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index efa8c5d..5be2240 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -9,12 +9,8 @@ <%= stylesheet_link_tag "ccc" %> <%= javascript_include_tag 'jquery-1.3.2.min' %> <%= javascript_include_tag 'shadowbox/shadowbox' %> - <%= javascript_include_tag 'public' %> <%= stylesheet_link_tag "shadowbox" %> - - + <%= javascript_include_tag 'public' %> <%= auto_discovery_link_tag(:rss, {:controller => "rss", :action => "updates"}) %> @@ -45,6 +41,5 @@ <%= featured_articles %> - \ No newline at end of file -- cgit v1.3