2016-07-03 13:46:20 +02:00
|
|
|
<div class='readonly-sidebar'>
|
|
|
|
<article class='details'>
|
|
|
|
<section class='download'>
|
|
|
|
<a rel='external' href='<%- ctx.post.contentUrl %>'>
|
|
|
|
<i class='fa fa-download'></i><!--
|
|
|
|
--><%= ctx.makeFileSize(ctx.post.fileSize) %> <!--
|
|
|
|
--><%- {
|
|
|
|
'image/gif': 'GIF',
|
|
|
|
'image/jpeg': 'JPEG',
|
|
|
|
'image/png': 'PNG',
|
2019-10-05 16:34:12 +02:00
|
|
|
'image/webp': 'WEBP',
|
2021-05-09 10:29:36 +02:00
|
|
|
'image/bmp': 'BMP',
|
2021-05-07 23:36:58 +02:00
|
|
|
'image/avif': 'AVIF',
|
2021-05-08 06:20:42 +02:00
|
|
|
'image/heif': 'HEIF',
|
2021-05-07 23:36:58 +02:00
|
|
|
'image/heic': 'HEIC',
|
2016-07-03 13:46:20 +02:00
|
|
|
'video/webm': 'WEBM',
|
2018-09-12 21:57:22 +02:00
|
|
|
'video/mp4': 'MPEG-4',
|
2016-07-03 13:46:20 +02:00
|
|
|
'application/x-shockwave-flash': 'SWF',
|
|
|
|
}[ctx.post.mimeType] %>
|
|
|
|
</a>
|
|
|
|
(<%- ctx.post.canvasWidth %>x<%- ctx.post.canvasHeight %>)
|
2019-02-05 06:32:04 +01:00
|
|
|
<% if (ctx.post.flags.length) { %><!--
|
|
|
|
--><% if (ctx.post.flags.includes('loop')) { %><i class='fa fa-repeat'></i><% } %><!--
|
|
|
|
--><% if (ctx.post.flags.includes('sound')) { %><i class='fa fa-volume-up'></i><% } %>
|
2018-09-13 21:48:13 +02:00
|
|
|
<% } %>
|
2016-07-03 13:46:20 +02:00
|
|
|
</section>
|
2016-06-06 20:57:22 +02:00
|
|
|
|
2016-07-03 13:46:20 +02:00
|
|
|
<section class='upload-info'>
|
|
|
|
<%= ctx.makeUserLink(ctx.post.user) %>,
|
|
|
|
<%= ctx.makeRelativeTime(ctx.post.creationTime) %>
|
|
|
|
</section>
|
2016-06-06 20:57:22 +02:00
|
|
|
|
2017-03-30 20:50:12 +02:00
|
|
|
<% if (ctx.enableSafety) { %>
|
|
|
|
<section class='safety'>
|
|
|
|
<i class='fa fa-circle safety-<%- ctx.post.safety %>'></i><!--
|
|
|
|
--><%- ctx.post.safety[0].toUpperCase() + ctx.post.safety.slice(1) %>
|
|
|
|
</section>
|
|
|
|
<% } %>
|
2016-06-06 20:57:22 +02:00
|
|
|
|
2016-07-03 13:46:20 +02:00
|
|
|
<section class='zoom'>
|
2016-08-22 01:25:10 +02:00
|
|
|
<a href class='fit-original'>Original zoom</a> ·
|
|
|
|
<a href class='fit-width'>fit width</a> ·
|
|
|
|
<a href class='fit-height'>height</a> ·
|
|
|
|
<a href class='fit-both'>both</a>
|
2016-07-03 13:46:20 +02:00
|
|
|
</section>
|
2016-06-06 20:57:22 +02:00
|
|
|
|
2018-12-27 10:22:36 +01:00
|
|
|
<% if (ctx.post.source) { %>
|
|
|
|
<section class='source'>
|
2020-01-26 23:49:04 +01:00
|
|
|
Source: <% for (let i = 0; i < ctx.post.sourceSplit.length; i++) { %>
|
|
|
|
<% if (i != 0) { %>·<% } %>
|
|
|
|
<a href='<%- ctx.post.sourceSplit[i] %>' title='<%- ctx.post.sourceSplit[i] %>'><%- ctx.extractRootDomain(ctx.post.sourceSplit[i]) %></a>
|
|
|
|
<% } %>
|
2018-12-27 10:22:36 +01:00
|
|
|
</section>
|
|
|
|
<% } %>
|
|
|
|
|
2016-07-03 13:46:20 +02:00
|
|
|
<section class='search'>
|
|
|
|
Search on
|
2018-07-06 01:25:08 +02:00
|
|
|
<a href='http://iqdb.org/?url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>IQDB</a> ·
|
2021-01-08 17:03:38 +01:00
|
|
|
<a href='https://danbooru.donmai.us/posts?tags=md5:<%- ctx.post.checksumMD5 %>'>Danbooru</a> ·
|
2018-07-06 01:25:08 +02:00
|
|
|
<a href='https://www.google.com/searchbyimage?&image_url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>Google Images</a>
|
2016-07-03 13:46:20 +02:00
|
|
|
</section>
|
2016-06-06 20:57:22 +02:00
|
|
|
|
2016-07-03 13:46:20 +02:00
|
|
|
<section class='social'>
|
|
|
|
<div class='score-container'></div>
|
2016-06-06 20:57:22 +02:00
|
|
|
|
2016-07-03 13:46:20 +02:00
|
|
|
<div class='fav-container'></div>
|
|
|
|
</section>
|
|
|
|
</article>
|
2016-06-06 20:57:22 +02:00
|
|
|
|
2016-07-03 13:46:20 +02:00
|
|
|
<% if (ctx.post.relations.length) { %>
|
|
|
|
<nav class='relations'>
|
|
|
|
<h1>Relations (<%- ctx.post.relations.length %>)</h1>
|
|
|
|
<ul><!--
|
|
|
|
--><% for (let post of ctx.post.relations) { %><!--
|
|
|
|
--><li><!--
|
2016-07-07 21:18:35 +02:00
|
|
|
--><a href='<%= ctx.getPostUrl(post.id, ctx.parameters) %>'><!--
|
2016-07-03 13:46:20 +02:00
|
|
|
--><%= ctx.makeThumbnail(post.thumbnailUrl) %><!--
|
|
|
|
--></a><!--
|
|
|
|
--></li><!--
|
2016-06-11 09:59:29 +02:00
|
|
|
--><% } %><!--
|
2016-07-03 13:46:20 +02:00
|
|
|
--></ul>
|
|
|
|
</nav>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<nav class='tags'>
|
|
|
|
<h1>Tags (<%- ctx.post.tags.length %>)</h1>
|
2016-07-28 22:05:35 +02:00
|
|
|
<% if (ctx.post.tags.length) { %>
|
2016-08-26 23:52:03 +02:00
|
|
|
<ul class='compact-tags'><!--
|
2016-07-28 22:05:35 +02:00
|
|
|
--><% for (let tag of ctx.post.tags) { %><!--
|
|
|
|
--><li><!--
|
|
|
|
--><% if (ctx.canViewTags) { %><!--
|
2017-10-01 21:46:53 +02:00
|
|
|
--><a href='<%- ctx.formatClientLink('tag', tag.names[0]) %>' class='<%= ctx.makeCssName(tag.category, 'tag') %>'><!--
|
2016-07-28 22:05:35 +02:00
|
|
|
--><i class='fa fa-tag'></i><!--
|
|
|
|
--><% } %><!--
|
|
|
|
--><% if (ctx.canViewTags) { %><!--
|
|
|
|
--></a><!--
|
|
|
|
--><% } %><!--
|
|
|
|
--><% if (ctx.canListPosts) { %><!--
|
2021-04-10 15:10:39 +02:00
|
|
|
--><a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeTagName(tag.names[0])}) %>' class='<%= ctx.makeCssName(tag.category, 'tag') %>'><!--
|
2016-07-28 22:05:35 +02:00
|
|
|
--><% } %><!--
|
2020-06-23 18:36:26 +02:00
|
|
|
--><%- ctx.getPrettyName(tag.names[0]) %> <!--
|
2016-07-28 22:05:35 +02:00
|
|
|
--><% if (ctx.canListPosts) { %><!--
|
|
|
|
--></a><!--
|
|
|
|
--><% } %><!--
|
2017-10-01 21:46:53 +02:00
|
|
|
--><span class='tag-usages' data-pseudo-content='<%- tag.postCount %>'></span><!--
|
2016-07-28 22:05:35 +02:00
|
|
|
--></li><!--
|
|
|
|
--><% } %><!--
|
|
|
|
--></ul>
|
|
|
|
<% } else { %>
|
|
|
|
<p>
|
|
|
|
No tags yet!
|
|
|
|
<% if (ctx.canEditPosts) { %>
|
|
|
|
<a href='<%= ctx.getPostEditUrl(ctx.post.id, ctx.parameters) %>'>Add some.</a>
|
|
|
|
<% } %>
|
|
|
|
</p>
|
|
|
|
<% } %>
|
2016-07-03 13:46:20 +02:00
|
|
|
</nav>
|
|
|
|
</div>
|