aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/css/post-main-view.styl4
-rw-r--r--client/html/post_readonly_sidebar.tpl1
-rw-r--r--client/js/models/post.js10
3 files changed, 13 insertions, 2 deletions
diff --git a/client/css/post-main-view.styl b/client/css/post-main-view.styl
index aeb99ab..48f3c15 100644
--- a/client/css/post-main-view.styl
+++ b/client/css/post-main-view.styl
@@ -7,8 +7,8 @@
>.sidebar
margin-right: 1em
- min-width: 20em
- max-width: 20em
+ min-width: 21em
+ max-width: 21em
line-height: 160%
a:active
diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl
index 7be5ba3..178b1d2 100644
--- a/client/html/post_readonly_sidebar.tpl
+++ b/client/html/post_readonly_sidebar.tpl
@@ -52,6 +52,7 @@
<section class='search'>
Search on
<a href='http://iqdb.org/?url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>IQDB</a> &middot;
+ <a href='https://danbooru.donmai.us/posts?tags=md5:<%- ctx.post.checksumMD5 %>'>Danbooru</a> &middot;
<a href='https://www.google.com/searchbyimage?&image_url=<%- encodeURIComponent(ctx.post.fullContentUrl) %>'>Google Images</a>
</section>
diff --git a/client/js/models/post.js b/client/js/models/post.js
index e90d0b2..2fb3d34 100644
--- a/client/js/models/post.js
+++ b/client/js/models/post.js
@@ -38,6 +38,14 @@ class Post extends events.EventTarget {
return this._mimeType;
}
+ get checksumSHA1() {
+ return this._checksumSHA1;
+ }
+
+ get checksumMD5() {
+ return this._checksumMD5;
+ }
+
get creationTime() {
return this._creationTime;
}
@@ -459,6 +467,8 @@ class Post extends events.EventTarget {
_id: response.id,
_type: response.type,
_mimeType: response.mimeType,
+ _checksumSHA1: response.checksum,
+ _checksumMD5: response.checksumMD5,
_creationTime: response.creationTime,
_user: response.user,
_safety: response.safety,

© 2015 - 2026 Jakob L. Kreuze