|
|
|
@ -4,10 +4,10 @@
|
|
|
|
|
<h1><%= l('View file') %></h1> |
|
|
|
|
<div> |
|
|
|
|
<div> |
|
|
|
|
<%= link_to l('Upload') => "/filebin", class => 'filebin upload' %> |
|
|
|
|
<%= link_to l('Download') => $file->{path}, class => 'filebin download', download => $file->{fname} %> |
|
|
|
|
<%= link_to l('Upload') => "/filebin", class => 'btn upload' %> |
|
|
|
|
<%= link_to l('Download') => $file->{path}, class => 'btn download', download => $file->{fname} %> |
|
|
|
|
% if (config->{filebin}->{show_latest}) { |
|
|
|
|
<%= link_to l('Latest files') => "/filebin/latest", class => 'filebin latest' %> |
|
|
|
|
<%= link_to l('Latest files') => "/filebin/latest", class => 'btn latest' %> |
|
|
|
|
% } |
|
|
|
|
</div> |
|
|
|
|
<hr/> |
|
|
|
@ -15,9 +15,9 @@
|
|
|
|
|
% if ($file->{ftype} eq 'i') { |
|
|
|
|
<%= image $file->{path} %> |
|
|
|
|
% } elsif ($file->{ftype} eq 'a') { |
|
|
|
|
<%= tag audio => (src => $file->{path}, controls => 'controls', loop => 0, autoplay => 0) => l('HTML5-aware browser required') %> |
|
|
|
|
<%= tag audio => (src => $file->{path}, controls => 'controls', preload => 'metadata') => l('HTML5-aware browser required') %> |
|
|
|
|
% } elsif ($file->{ftype} eq 'v') { |
|
|
|
|
<%= tag video => (src => $file->{path}, controls => 'controls', loop => 0, autoplay => 0) => l('HTML5-aware browser required') %> |
|
|
|
|
<%= tag video => (src => $file->{path}, controls => 'controls', preload => 'metadata') => l('HTML5-aware browser required') %> |
|
|
|
|
% } |
|
|
|
|
</div> |
|
|
|
|
<hr/> |
|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
<tr><td><%= l('Name') %></td><td>:</td><td><%= $file->{fname} %></td></tr> |
|
|
|
|
<tr><td><%= l('Size') %></td><td>:</td><td><%= sprintf("%.1f kb", $file->{fsize} / 1024) %></td></tr> |
|
|
|
|
<tr><td><%= l('Mime') %></td><td>:</td><td><%= $file->{fmime} %></td></tr> |
|
|
|
|
% if ($file->{ftype} eq 'i' or $file->{ftype} eq 'v') { |
|
|
|
|
% if (($file->{ftype} eq 'i' or $file->{ftype} eq 'v') and ($file->{res_w} or $file->{res_h})) { |
|
|
|
|
<tr><td><%= l('Image size') %></td><td>:</td><td><%= sprintf("%dx%d", $file->{res_w}, $file->{res_h}) %></td></tr> |
|
|
|
|
% } |
|
|
|
|
</table> |
|
|
|
|