summaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
Diffstat (limited to 'client/html')
-rw-r--r--client/html/index.htm2
-rw-r--r--client/html/post_merge_side.tpl1
-rw-r--r--client/html/post_readonly_sidebar.tpl11
-rw-r--r--client/html/post_upload.tpl17
-rw-r--r--client/html/post_upload_row.tpl1
-rw-r--r--client/html/posts_header.tpl7
-rw-r--r--client/html/posts_page.tpl4
7 files changed, 36 insertions, 7 deletions
diff --git a/client/html/index.htm b/client/html/index.htm
index a5cd68e..2f0f4e4 100644
--- a/client/html/index.htm
+++ b/client/html/index.htm
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset='utf-8'/>
- <meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=1'/>
+ <meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta name='theme-color' content='#24aadd'/>
<meta name='apple-mobile-web-app-capable' content='yes'/>
<meta name='apple-mobile-web-app-status-bar-style' content='black'/>
diff --git a/client/html/post_merge_side.tpl b/client/html/post_merge_side.tpl
index fe70502..a08070f 100644
--- a/client/html/post_merge_side.tpl
+++ b/client/html/post_merge_side.tpl
@@ -42,6 +42,7 @@
'image/heic': 'HEIC',
'video/webm': 'WEBM',
'video/mp4': 'MPEG-4',
+ 'video/quicktime': 'MOV',
'application/x-shockwave-flash': 'SWF',
}[ctx.post.mimeType] +
' (' +
diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl
index 1cae84f..3e0927b 100644
--- a/client/html/post_readonly_sidebar.tpl
+++ b/client/html/post_readonly_sidebar.tpl
@@ -15,9 +15,10 @@
'image/heic': 'HEIC',
'video/webm': 'WEBM',
'video/mp4': 'MPEG-4',
+ 'video/quicktime': 'MOV',
'application/x-shockwave-flash': 'SWF',
- }[ctx.post.mimeType] %>
- </a>
+ }[ctx.post.mimeType] %><!--
+ --></a>
(<%- ctx.post.canvasWidth %>x<%- ctx.post.canvasHeight %>)
<% if (ctx.post.flags.length) { %><!--
--><% if (ctx.post.flags.includes('loop')) { %><i class='fa fa-redo-alt'></i><% } %><!--
@@ -57,7 +58,7 @@
Search on
<a target="_blank" href='http://iqdb.org/?url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>IQDB</a> &middot;
<a target="_blank" href='https://danbooru.donmai.us/posts?tags=md5:<%- ctx.post.checksumMD5 %>'>Danbooru</a> &middot;
- <a target="_blank" href='https://www.google.com/searchbyimage?&image_url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>Google Images</a>
+ <a target="_blank" href='https://lens.google.com/uploadbyurl?url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>Google Images</a>
</section>
<section class='social'>
@@ -111,10 +112,10 @@
--><% if (ctx.canListPosts) { %><!--
--><a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeTagName(tag.names[0])}) %>' class='<%= ctx.makeCssName(tag.category, 'tag') %>'><!--
--><% } %><!--
- --><%- ctx.getPrettyName(tag.names[0]) %>&#32;<!--
+ --><%- ctx.getPrettyName(tag.names[0]) %><!--
--><% if (ctx.canListPosts) { %><!--
--></a><!--
- --><% } %><!--
+ --><% } %>&#32;<!--
--><span class='tag-usages' data-pseudo-content='<%- tag.postCount %>'></span><!--
--></li><!--
--><% } %><!--
diff --git a/client/html/post_upload.tpl b/client/html/post_upload.tpl
index 0dc4f0b..c256e55 100644
--- a/client/html/post_upload.tpl
+++ b/client/html/post_upload.tpl
@@ -7,7 +7,7 @@
<span class='skip-duplicates control-checkbox'>
<%= ctx.makeCheckbox({
- text: 'Skip duplicates',
+ text: 'Skip duplicate',
name: 'skip-duplicates',
checked: false,
}) %>
@@ -17,10 +17,25 @@
<%= ctx.makeCheckbox({
text: 'Copy tags to originals',
name: 'copy-tags-to-originals',
+ }) %>
+ </span>
+
+ <span class='always-upload-similar'>
+ <%= ctx.makeCheckbox({
+ text: 'Force upload similar',
+ name: 'always-upload-similar',
checked: false,
}) %>
</span>
+ <span class='pause-remain-on-error'>
+ <%= ctx.makeCheckbox({
+ text: 'Pause on error',
+ name: 'pause-remain-on-error',
+ checked: true,
+ }) %>
+ </span>
+
<div class='tags'>
<%= ctx.makeTextInput({}) %>
</div>
diff --git a/client/html/post_upload_row.tpl b/client/html/post_upload_row.tpl
index 559e935..26f174b 100644
--- a/client/html/post_upload_row.tpl
+++ b/client/html/post_upload_row.tpl
@@ -61,6 +61,7 @@
text: 'Upload anonymously',
name: 'anonymous',
checked: ctx.uploadable.anonymous,
+ readonly: ctx.uploadable.forceAnonymous,
}) %>
</div>
<% } %>
diff --git a/client/html/posts_header.tpl b/client/html/posts_header.tpl
index ef2e253..7d5fa78 100644
--- a/client/html/posts_header.tpl
+++ b/client/html/posts_header.tpl
@@ -76,6 +76,13 @@
%><a href class='mousetrap button append open'>Mass add relation</a><%
%><a href class='mousetrap button append close'>Stop adding relation</a><%
%></form><%
+ if (ctx.canBulkDelete) {
+ %><form class='horizontal bulk-edit bulk-edit-delete'><%
+ %><a href class='mousetrap button append open'>Mass delete</a><%
+ %><input class='mousetrap start' type='submit' value='Delete selected posts'/><%
+ %><a href class='mousetrap button append close'>Stop deleting</a><%
+ %></form><%
+ }
%></div><%
if (ctx.canViewMetrics) {
%><div class='metrics-block hidden'></div><%
diff --git a/client/html/posts_page.tpl b/client/html/posts_page.tpl
index 5336fe8..bbf6a2d 100644
--- a/client/html/posts_page.tpl
+++ b/client/html/posts_page.tpl
@@ -54,6 +54,10 @@
<% } %>
</span>
<% } %>
+ <% if (ctx.canBulkDelete && ctx.parameters && ctx.parameters.delete) { %>
+ <a href class='delete-flipper'>
+ </a>
+ <% } %>
</span>
</li>
<% } %>