62 lines
2.7 KiB
Plaintext
62 lines
2.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<%- include('./partials/head'); -%>
|
|
<%- include('./partials/social-meta', {
|
|
socialTitle: image.name,
|
|
socialDescription: image.description,
|
|
socialImage: (!tracer ? (image.isVideo ? '/gallery/thumbnail/' + image.thumbnailName : '/gallery/image/' + image.imageName) : '/assets/images/storage-tc.png')
|
|
}); -%>
|
|
<% if (!tracer) { %>
|
|
<meta name="twitter:image:alt" content="<%= image.name %>" />
|
|
<meta property="dc:creator" content="<%= artists.map(e => e.name).join(', ') %>">
|
|
<% } %>
|
|
<title><%= title %></title>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="center-n page-content">
|
|
<h1><%= title %></h1>
|
|
<%- include('./partials/back-link', { href: t('/gallery'), label: 'Back to gallery' }); -%>
|
|
<%- include('./partials/access-codes'); -%>
|
|
|
|
<div class="media-view">
|
|
<h2><%= image.name %></h2>
|
|
<% if (image.description) { %>
|
|
<p class="media-description"><%= image.description %></p>
|
|
<% } %>
|
|
|
|
<% if (image.isVideo) { %>
|
|
<div class="media-frame video-frame">
|
|
<video class="full-video"
|
|
src="/gallery/video/<%= image.id %><%= accessCode?.code ? '?access_code=' + accessCode.code : '' %>"
|
|
controls
|
|
preload="metadata"
|
|
data-duration="<%= image.videoDuration || 0 %>"
|
|
data-loop="<%= (image.videoDuration && image.videoDuration < 30) ? 'true' : 'false' %>"
|
|
poster="/gallery/thumbnail/<%= image.thumbnailName %>">
|
|
</video>
|
|
</div>
|
|
<% } else { %>
|
|
<a class="media-frame" href="/gallery/image/<%= image.imageName %><%= accessCode?.code ? '?access_code=' + accessCode.code : '' %>">
|
|
<img class="full-image" src="/gallery/image/<%= image.imageName %><%= accessCode?.code ? '?access_code=' + accessCode.code : '' %>" alt="<%= image.name %>">
|
|
</a>
|
|
<% } %>
|
|
|
|
<div class="media-details">
|
|
<%- include('./partials/media-details', {
|
|
createAt,
|
|
artists,
|
|
sources: image.sources,
|
|
tags: image.tags,
|
|
tagSearchBase: '/gallery',
|
|
accessCode
|
|
}); -%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%- include('footer'); -%>
|
|
</body>
|
|
</html>
|