Updated quality logos and added ultra res icon

This commit is contained in:
Yukimi Kazari 2017-06-06 15:24:30 -04:00
parent df98b67e0f
commit 0fdd28f5ab
4 changed files with 19 additions and 3 deletions

View File

@ -1328,6 +1328,10 @@ a.directlink {
white-space: nowrap; white-space: nowrap;
} }
a.extremeimg {
background: #111;
}
a.largeimg { a.largeimg {
background: #111; background: #111;
} }
@ -1344,6 +1348,10 @@ a.largeimg:hover {
background-image: none; background-image: none;
} }
a.extremeimg:hover {
background-image: none;
}
a.directlink > span.directlink-res { a.directlink > span.directlink-res {
display: none; display: none;
margin: 0; margin: 0;
@ -1375,8 +1383,9 @@ a.directlink:hover > .directlink-info {
.has-parent .directlink-icon { display: none; } .has-parent .directlink-icon { display: none; }
.flagged .directlink-icon { display: none; } .flagged .directlink-icon { display: none; }
.pending .directlink-icon { display: none; } .pending .directlink-icon { display: none; }
.largeimg .directlink-icon-small { display: none; } .extremeimg .directlink-icon-small .directlink-icon-large { display: none; }
.smallimg .directlink-icon-large { display: none; } .largeimg .directlink-icon-small .directlink-icon-uhd { display: none; }
.smallimg .directlink-icon-large .directlink-icon-uhd { display: none; }
.similar .directlink-icon { display: none; } .similar .directlink-icon { display: none; }

View File

@ -80,6 +80,7 @@ class PostHelper extends Rails\ActionView\Helper
$directlink_info = ' $directlink_info = '
<span class="directlink-info"> <span class="directlink-info">
<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-large" src="/images/ddl_large.gif" alt="">
<img class="directlink-icon directlink-icon-small" src="/images/ddl.gif" alt=""> <img class="directlink-icon directlink-icon-small" src="/images/ddl.gif" alt="">
<img class="parent-display" src="/images/post-star-parent.gif" alt=""> <img class="parent-display" src="/images/post-star-parent.gif" alt="">
@ -91,7 +92,13 @@ class PostHelper extends Rails\ActionView\Helper
$li_class = ""; $li_class = "";
$ddl_class = "directlink"; $ddl_class = "directlink";
$ddl_class .= ($post->width > 1920 || $post->height > 1500 )? " largeimg":" smallimg";
if ($post->width >= 3500 || $post->height >= 2600 )
$ddl_class .= " extremeimg"
elseif ($post->width >= 1920 || $post->height >= 1500 )
$ddl_class .= " largeimg"
else
$ddl_class .= " smallimg";
if (!empty($options['similarity'])) { if (!empty($options['similarity'])) {
$icon = '<img src="'.$post->service_icon().'" alt="'.$post->service().'" class="service-icon" id="source">'; $icon = '<img src="'.$post->service_icon().'" alt="'.$post->service().'" class="service-icon" id="source">';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB