diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-25 13:02:44 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-25 13:02:44 +0100 |
commit | 969e7614b52469f7b826a9f865ad7852380a4f8b (patch) | |
tree | 833edb475b7a4dbbb34e07d48a16121000a958cf /app/views/page/docu/_screencast_list.html.haml | |
parent | 7cf109b32f3447454a084e31d2086667a896afb8 (diff) |
Added screencast files.
Diffstat (limited to 'app/views/page/docu/_screencast_list.html.haml')
-rw-r--r-- | app/views/page/docu/_screencast_list.html.haml | 21 |
1 files changed, 21 insertions, 0 deletions
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) |