Added Rateing icon

This commit is contained in:
Yukimi Kazari 2017-06-06 17:24:53 -04:00
parent 71649250ca
commit 34623ae194
3 changed files with 35 additions and 2 deletions

View File

@ -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 {

View File

@ -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,6 +83,9 @@ class PostHelper extends Rails\ActionView\Helper
<img class="directlink-icon directlink-icon-uhd" src="/images/ddl_uhd.gif" alt="">
<img class="directlink-icon directlink-icon-large" src="/images/ddl_large.gif" alt="">
<img class="directlink-icon directlink-icon-small" src="/images/ddl.gif" alt="">
<img class="directlink-icon image-rating-s" src="/images/rate-s.gif" alt="">
<img class="directlink-icon image-rating-q" src="/images/rate-q.gif" alt="">
<img class="directlink-icon image-rating-e" src="/images/rate-e.gif" alt="">
<img class="parent-display" src="/images/post-star-parent.gif" alt="">
<img class="child-display" src="/images/post-star-child.gif" alt="">
<img class="flagged-display" src="/images/post-star-flagged.gif" alt="">
@ -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 = '<img src="'.$post->service_icon().'" alt="'.$post->service().'" class="service-icon" id="source">';
$ddl_class .= " similar similar-directlink";

View File

@ -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}