From 969e7614b52469f7b826a9f865ad7852380a4f8b Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Fri, 25 Jan 2013 13:02:44 +0100 Subject: Added screencast files. --- app/views/page/docu/_screencast_list.html.haml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/views/page/docu/_screencast_list.html.haml (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 new file mode 100644 index 0000000..cbfb826 --- /dev/null +++ b/app/views/page/docu/_screencast_list.html.haml @@ -0,0 +1,21 @@ +%p + Zu diesem Thema stehen Screencast-Videos in folgenden Formaten zum Download bereit: +%table.table.table-striped + %thead + %tr + %th + Format + %th + Dateigrösse + + %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)}") + %tr + %td + %a{:href => asset_path(filename)} + %i{:class => 'icon-download'} + =file_extension.upcase + %td + = number_to_human_size(File.size("#{Rails.root}/app#{asset_path(filename)}"), :precision => 3) -- cgit v1.2.3 From 03bda4ca389990d2158639e365bbac063614aa95 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Fri, 25 Jan 2013 13:50:46 +0100 Subject: page#help --- app/views/page/docu/_screencast_list.html.haml | 4 +--- 1 file changed, 1 insertion(+), 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 cbfb826..23d4708 100644 --- a/app/views/page/docu/_screencast_list.html.haml +++ b/app/views/page/docu/_screencast_list.html.haml @@ -1,12 +1,10 @@ -%p - Zu diesem Thema stehen Screencast-Videos in folgenden Formaten zum Download bereit: %table.table.table-striped %thead %tr %th Format %th - Dateigrösse + Dateigröße %tbody - ['mp4', 'mov', 'gif'].each do |file_extension| -- cgit v1.2.3