diff options
author | spag <spag@golwen.net> | 2013-01-25 17:22:35 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-25 17:22:35 +0100 |
commit | f6c1afe53f5d17c42422c2a845e5922e6166947a (patch) | |
tree | 96921b0a905f5437d4d3a8554e263909612ce830 /app/views/page/docu/_screencast_list.html.haml | |
parent | 0236ddcd35479936b3bb24f74826f0001eee2828 (diff) | |
parent | 5d3c52dad03a9898e1dc15ca54b322f267c3e108 (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/views/page/docu/_screencast_list.html.haml')
-rw-r--r-- | app/views/page/docu/_screencast_list.html.haml | 19 |
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..23d4708 --- /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', '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) |