summaryrefslogtreecommitdiff
path: root/app/views/page/docu/_screencast_list.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/page/docu/_screencast_list.html.haml')
-rw-r--r--app/views/page/docu/_screencast_list.html.haml19
1 files changed, 19 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..6669a42
--- /dev/null
+++ b/app/views/page/docu/_screencast_list.html.haml
@@ -0,0 +1,19 @@
+%table.table.table-striped
+ %thead
+ %tr
+ %th
+ Format
+ %th
+ Dateigröße
+
+ %tbody
+ - ['mp4', 'mov'].each do |file_extension|
+ - filename = "screencasts/de/#{screencast_name}/#{screencast_name}.#{file_extension}"
+ - if File.exists?("#{Rails.root}/public/#{image_path(filename)}")
+ %tr
+ %td
+ %a{:href => image_path(filename)}
+ %i{:class => 'icon-download'}
+ =file_extension.upcase
+ %td
+ = number_to_human_size(File.size("#{Rails.root}/public/#{image_path(filename)}"), :precision => 3)