blob: 6669a422c87a9dde44cc7ef76289ea617125ffde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
|