diff options
| author | hukl <contact@smyck.org> | 2009-10-08 22:24:51 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-08 22:24:51 +0200 |
| commit | 2fd33c36428ae7684badc43dbe2142152f058b4e (patch) | |
| tree | c1025efc497973e268baa1b531120e726478d992 /app/views/content | |
| parent | 0db008d0bfb0803e5b000fcf08058e7d01f588eb (diff) | |
enabled shadowbox for headline images on public pages. if js is disabled the regular html version is rendered
Diffstat (limited to 'app/views/content')
| -rw-r--r-- | app/views/content/_headline_image.html.erb | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
| 1 | <%= link_to_path( | ||
| 2 | image_tag(@images[0].upload.url(:headline)), | ||
| 3 | ("galleries/" + @page.node.unique_name) | ||
| 4 | ) %> | ||
| 5 | |||
| 6 | <div class="shadowbox_images" style="display: none"> | ||
| 7 | <% @images.each do |image| %> | ||
| 8 | <%= link_to "hallo", image.upload.url, :class => "shadowbox_image" %> | ||
| 9 | <% end %> | ||
| 10 | </div> \ No newline at end of file | ||
