quad-j/views/file.ejs

26 lines
907 B
Text
Raw Normal View History

2020-10-01 23:10:41 +03:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= filename %></title>
<meta property="og:title" content="<%= filename %>" />
<% if (fileType !== 'file') { %>
2020-10-02 21:19:59 +03:00
<% if (fileType === 'video' || fileType === 'image') { %>
<meta property="og:<%= fileType %>:width" content="640" />
<meta property="og:<%= fileType %>:height" content="426" />
<% } %>
2020-10-01 23:10:41 +03:00
<meta property="og:<%= fileType %>" content="<%= fileUrl %>" />
2020-10-02 21:07:57 +03:00
<meta property="og:<%= fileType %>:type" content="<%= mimeType %>" />
2020-10-01 23:10:41 +03:00
<% } %>
</head>
<body>
<% if (fileType !== 'file' && fileType !== 'image') { %>
<<%= fileType %> controls name="media" />
<source src="<%= fileUrl %>" type="<%= mimeType %>">
</<%= fileType %>>
<% } %>
</body>
</html>