diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index 6359ccc..856791f 100755
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -1348,6 +1348,18 @@ a.largeimg:hover {
background-image: none;
}
+a.rating-e:hover {
+ background-image: none;
+}
+
+a.rating-q:hover {
+ background-image: none;
+}
+
+a.rating-s:hover {
+ background-image: none;
+}
+
a.extremeimg:hover {
background-image: none;
}
@@ -1383,14 +1395,20 @@ a.directlink:hover > .directlink-info {
.has-parent .directlink-icon { display: none; }
.flagged .directlink-icon { display: none; }
.pending .directlink-icon { display: none; }
+
.extremeimg .directlink-icon-small { display: none; }
.extremeimg .directlink-icon-large { display: none; }
+
.largeimg .directlink-icon-small { display: none; }
.largeimg .directlink-icon-uhd { display: none; }
.smallimg .directlink-icon-large { display: none; }
.smallimg .directlink-icon-uhd { display: none; }
+.rating-e .image-rating-s,.rating-e .image-rating-q { display: none; }
+.rating-q .image-rating-s,.rating-q .image-rating-e { display: none; }
+.rating-s .image-rating-q,.rating-s .image-rating-e { display: none; }
+
.similar .directlink-icon { display: none; }
.top-corner-float {
diff --git a/app/helpers/PostHelper.php b/app/helpers/PostHelper.php
index ecb91c3..1a3a4fa 100755
--- a/app/helpers/PostHelper.php
+++ b/app/helpers/PostHelper.php
@@ -28,7 +28,7 @@ class PostHelper extends Rails\ActionView\Helper
$image_id = isset($options['image_id']) ? 'id="'.$options['image_id'].'"' : null;
- $image_title = $is_post ? $this->h("Rating: ".$post->pretty_rating()." Score: ".$post->score." Tags: ".$this->h($post->cached_tags." User: ".$post->author())) : null;
+ $image_title = $is_post ? $this->h("Rating: ".$post->pretty_rating()." / Score: ".$post->score." / Tags: ".$this->h($post->cached_tags." / User: ".$post->author())) : null;
$link_onclick = isset($options['onclick']) ? 'onclick="'.$options['onclick'].'"' : null;
@@ -83,9 +83,12 @@ class PostHelper extends Rails\ActionView\Helper
+
+
+
-
+
';
@@ -98,6 +101,15 @@ class PostHelper extends Rails\ActionView\Helper
else
$ddl_class .= ($post->width > 1920 || $post->height > 1500 )? " largeimg":" smallimg";
+ if ($post->rating = s)
+ $ddl_class .= " rating-s";
+
+ if ($post->rating = q)
+ $ddl_class .= " rating-q";
+
+ if ($post->rating = e)
+ $ddl_class .= " rating-e";
+
if (!empty($options['similarity'])) {
$icon = '';
$ddl_class .= " similar similar-directlink";
diff --git a/public/assets/application-0b1f0761b0f488c409a80b516518e0e1.css b/public/assets/application-0b1f0761b0f488c409a80b516518e0e1.css
index e0ecc0e..3061dd8 100644
--- a/public/assets/application-0b1f0761b0f488c409a80b516518e0e1.css
+++ b/public/assets/application-0b1f0761b0f488c409a80b516518e0e1.css
@@ -731,6 +731,9 @@ a.directlink:hover>.directlink-info{display:none}
.largeimg .directlink-icon-uhd{display:none}
.smallimg .directlink-icon-large {display:none}
.smallimg .directlink-icon-uhd {display:none}
+.rating-e .image-rating-s,.rating-e .image-rating-q { display: none; }
+.rating-q .image-rating-s,.rating-q .image-rating-e { display: none; }
+.rating-s .image-rating-q,.rating-s .image-rating-e { display: none; }
.similar .directlink-icon{display:none}
.top-corner-float{background:#222;border:solid #000 2px;padding:6px;position:fixed;right:2px;top:2px;z-index:5;font-size: 12px}
.post-hover{background:#222;border:2px solid #000;max-width:30em;min-width:20em;padding:2px;position:absolute;z-index:2}