2014-10-06 13:19:51 +02:00
|
|
|
% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
|
2015-03-10 12:47:07 +01:00
|
|
|
% my $g = ($mimetype eq 'image/gif') ? 1 : 0;
|
2014-10-06 13:19:51 +02:00
|
|
|
<!DOCTYPE html>
|
2015-03-10 12:47:07 +01:00
|
|
|
<html style="max-height:100%;">
|
2014-10-06 13:19:51 +02:00
|
|
|
<head>
|
|
|
|
<title>Lutim</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta charset="utf-8" />
|
2015-03-10 12:47:07 +01:00
|
|
|
<link rel="icon" type="image/png" href="<%= index_url(1) %>img/favicon.png">
|
|
|
|
<meta property="og:title" content="Lutim" />
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:url" content="<%= index_url(1).$short %>?t" />
|
|
|
|
<meta property="og:image" content="<%= index_url(1).$short %>" />
|
|
|
|
<meta property="og:image:url" content="<%= index_url(1).$short %>" />
|
|
|
|
<meta property="og:image:type" content="<%= $mimetype %>" />
|
2014-10-06 13:19:51 +02:00
|
|
|
<meta name="twitter:site" content="<%= config('tweet_card_via') %>">
|
2015-03-10 12:47:07 +01:00
|
|
|
<meta name="twitter:image:src" content="<%= index_url(1).$short %>">
|
|
|
|
% if ($g) {
|
|
|
|
<meta name="twitter:card" content="player">
|
|
|
|
<meta name="twitter:image" content="<%= index_url(1).$short %>">
|
|
|
|
<meta name="twitter:player" content="<%= index_url(1).$short.'?t' %>">
|
|
|
|
<meta name="twitter:title" content="<%= $filename %>">
|
|
|
|
<meta name="twitter:player:width" content="<%= $width %>">
|
|
|
|
<meta name="twitter:player:height" content="<%= $height %>">
|
|
|
|
%= asset 'freeze.js', { inline => 1 }
|
|
|
|
%= javascript begin
|
|
|
|
freezeframe_options = {
|
|
|
|
trigger_event: "click",
|
|
|
|
animation_play_duration: 60000
|
|
|
|
}
|
|
|
|
% end
|
|
|
|
% } else {
|
|
|
|
<meta name="twitter:card" content="photo">
|
|
|
|
% }
|
2014-10-06 13:19:51 +02:00
|
|
|
</head>
|
2015-03-10 12:47:07 +01:00
|
|
|
<body<%= ($g) ? '' : ' style="height: 97%;"' %>>
|
|
|
|
<img<%= ' class="freezeframe"' if ($g) %> style="<%= 'max-' unless ($g) %>width:100%; max-height:100%;" src="<%= index_url(1).$short %><%= '.gif' if ($g) %>" alt="<%= $filename %>">
|
2014-10-06 13:19:51 +02:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|