15 lines
738 B
Ruby
15 lines
738 B
Ruby
|
|
class DownloadController < ApplicationController
|
||
|
|
|
||
|
|
before_filter(:only => [:show]){ |c| c.find_product("download_url", UrlDestination['product-download']) }
|
||
|
|
before_filter :init_objects, :only => [:show]
|
||
|
|
|
||
|
|
private
|
||
|
|
|
||
|
|
def init_objects
|
||
|
|
@download_url = direct_download_url(:filename => @product.file_url)
|
||
|
|
@testimonial = @product.testimonial_by_location('download')
|
||
|
|
@meta_title = I18n.t('txt.download_page.meta_title', :product => @product.name.strip_version, :version => @product.current_version)
|
||
|
|
@meta_description = I18n.t('txt.download_page.meta_description', :product => @product.name.strip_version)
|
||
|
|
@meta_keywords = I18n.t('txt.download_page.meta_keywords', :product => @product.name.strip_version)
|
||
|
|
end
|
||
|
|
end
|