This repository has been archived on 2023-05-12. You can view files and clone it, but cannot push or open issues or pull requests.
media-host/views/pages/file-types/generic.ejs
2022-08-04 20:10:43 -04:00

47 lines
2.1 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title><%= name %> - <%= config["meta"]["name"] %></title>
<%- include("../../partial/html-head")%>
<link href="/css/file.css" rel="stylesheet">
<meta property="og:site_name" content="<%= config.meta.name %>">
<meta name="title" content="<%= name %> on <%= config.meta.name %>">
<meta property="og:title" content="<%= name %> on <%= config.meta.name %>">
<meta property="twitter:title" content="<%= name %> on <%= config.meta.name %>">
<meta name="description" content="A <%= file.humanSize %> <%= file.mime %> file.">
<meta property="og:description" content="A <%= file.humanSize %> <%= file.mime %> file.">
<meta property="twitter:description" content="A <%= file.humanSize %> <%= file.mime %> file.">
<meta name="author" content="<%= uploaderName %>">
<meta property="og:author" content="<%= uploaderName %>">
<meta property="og:type" content="website">
</head>
<body>
<%- include("../../partial/header") %>
<div class="modal">
<% if (
name.split(".")[name.split(".").length - 1] == "exe" ||
name.split(".")[name.split(".").length - 1] == "zip" ||
name.split(".")[name.split(".").length - 1] == "bat" ||
name.split(".")[name.split(".").length - 1] == "sh" ||
name.split(".")[name.split(".").length - 1] == "gz" ||
name.split(".")[name.split(".").length - 1] == "7z" ||
name.split(".")[name.split(".").length - 1] == "tar" ||
name.split(".")[name.split(".").length - 1] == "xpi" ||
name.split(".")[name.split(".").length - 1] == "crx" ||
name.split(".")[name.split(".").length - 1] == "apk" ||
name.split(".")[name.split(".").length - 1] == "xapk"
) { %>
<div class="err">
<p><a href="/"><%= config["meta"]["name"]%></a> does not currently scan files for viruses. Please be sure to trust the uploader of this file.</p>
</div>
<% } %>
<%- include("../../partial/file-metadata-block") %>
</div>
<%- include("../../partial/footer") %>
<script src="/js/date.js"></script>
</body>
</html>