Replace new package icon

Use a flat icon from the Open Iconic collection to mark new packages.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-12-12 12:55:37 +01:00
parent a35dc4022a
commit 9c98523494
4 changed files with 5 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 B

3
web/html/images/new.svg Normal file
View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8">
<path style="fill:#66aa22;fill-opacity:1" d="M4 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1l3 3h-2v3h-2v-3h-2l3-3z" />
</svg>

After

Width:  |  Height:  |  Size: 223 B

View file

@ -165,7 +165,6 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
readfile("./$path"); readfile("./$path");
break; break;
case "/css/archnavbar/archlogo.gif": case "/css/archnavbar/archlogo.gif":
case "/images/new.png":
header("Content-Type: image/png"); header("Content-Type: image/png");
readfile("./$path"); readfile("./$path");
break; break;
@ -182,6 +181,7 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
case "/images/pin.min.svg": case "/images/pin.min.svg":
case "/images/unpin.min.svg": case "/images/unpin.min.svg":
case "/images/rss.svg": case "/images/rss.svg":
case "/images/new.svg":
header("Content-Type: image/svg+xml"); header("Content-Type: image/svg+xml");
readfile("./$path"); readfile("./$path");
break; break;

View file

@ -11,7 +11,7 @@
</td> </td>
<td class="pkg-new"> <td class="pkg-new">
<?php if ($row["ModifiedTS"] - $row["SubmittedTS"] < 3600): ?> <?php if ($row["ModifiedTS"] - $row["SubmittedTS"] < 3600): ?>
<img src="images/new.png" alt="New!" /> <img src="images/new.svg" alt="New!" />
<?php endif; ?> <?php endif; ?>
</td> </td>
<td class="pkg-date"> <td class="pkg-date">