From fe551453149f302eabd3e484d7ef69413c596656 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 12 Sep 2009 13:09:10 +0200 Subject: Moved galery template and changed width of headline image thumbnail preset --- app/controllers/content_controller.rb | 2 +- app/models/asset.rb | 2 +- app/views/content/gallery.html.erb | 5 +++++ app/views/custom/page_templates/public/gallery.html.erb | 5 ----- 4 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 app/views/content/gallery.html.erb delete mode 100644 app/views/custom/page_templates/public/gallery.html.erb diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index 250e6ba..13d06e9 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -29,7 +29,7 @@ class ContentController < ApplicationController def render_gallery @images = @page.assets.images - render :file => "custom/page_templates/public/gallery" + render :file => "content/gallery" end private diff --git a/app/models/asset.rb b/app/models/asset.rb index fda2dc0..41823e7 100644 --- a/app/models/asset.rb +++ b/app/models/asset.rb @@ -7,7 +7,7 @@ class Asset < ActiveRecord::Base :styles => { :medium => "300x300", :thumb => "100x100", - :headline => "530x250#" + :headline => "460x250#" } ) diff --git a/app/views/content/gallery.html.erb b/app/views/content/gallery.html.erb new file mode 100644 index 0000000..7511db3 --- /dev/null +++ b/app/views/content/gallery.html.erb @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/app/views/custom/page_templates/public/gallery.html.erb b/app/views/custom/page_templates/public/gallery.html.erb deleted file mode 100644 index 7511db3..0000000 --- a/app/views/custom/page_templates/public/gallery.html.erb +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file -- cgit v1.3