From 5282a24effdd94bdac07956138809a4304124639 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sat, 26 Jan 2013 14:07:39 +0100 Subject: Moved screencasts into the image directory. --- app/views/page/docu/_screencast_list.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/page/docu/_screencast_list.html.haml') diff --git a/app/views/page/docu/_screencast_list.html.haml b/app/views/page/docu/_screencast_list.html.haml index 23d4708..aa22c68 100644 --- a/app/views/page/docu/_screencast_list.html.haml +++ b/app/views/page/docu/_screencast_list.html.haml @@ -9,11 +9,11 @@ %tbody - ['mp4', 'mov', 'gif'].each do |file_extension| - filename = "screencasts/de/#{screencast_name}/#{screencast_name}.#{file_extension}" - - if File.exists?("#{Rails.root}/app#{asset_path(filename)}") + - if File.exists?("#{Rails.root}/public/#{image_path(filename)}") %tr %td - %a{:href => asset_path(filename)} + %a{:href => image_path(filename)} %i{:class => 'icon-download'} =file_extension.upcase %td - = number_to_human_size(File.size("#{Rails.root}/app#{asset_path(filename)}"), :precision => 3) + = number_to_human_size(File.size("#{Rails.root}/public/#{image_path(filename)}"), :precision => 3) -- cgit v1.2.3