[aur-dev] [PATCH 3/3] Replace new package icon

Lukas Fleischer lfleischer at archlinux.org
Sat Dec 12 12:06:46 UTC 2015


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

Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/html/images/new.png              | Bin 378 -> 0 bytes
 web/html/images/new.svg              |   3 +++
 web/html/index.php                   |   2 +-
 web/template/stats/updates_table.php |   2 +-
 4 files changed, 5 insertions(+), 2 deletions(-)
 delete mode 100644 web/html/images/new.png
 create mode 100644 web/html/images/new.svg

diff --git a/web/html/images/new.png b/web/html/images/new.png
deleted file mode 100644
index 6a9bf0370708a165d3e49047c09e110e02074a53..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 378
zcmV-=0fqjFP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV00004XF*Lt006JZ
zHwB960000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUz3`s;mR5;7s
zlEF#>Q51$RwCw?WgWe;0fi^vY%UagXRhyB(O=1wVPFJlYqlK$kNFcaSBrLFKHcpU(
zVj5rP+%se7wuRup#~J3_|C at 8?jsx6(aN8gV+_?~^wID=7QAmWo&=P9GzK~Bj7P?xU
z4^LybJ-~;P$nL)ri2Lx-f?f?uyKtX3G(76UWeycgm{0H$eX9nWr+ASHH8>r~vom;o
zFz$}vYpDI9TZY<K7R&^TnN9E>Lgxm?Z}9nS!RQHI8Y*b~3AE}I>k|Ynq_|_kL0z^}
zg`YWG?`i*VRiHt=)+fle*{;CjiLD9r5bPAPFRr!h8&+rODTKm>mjte|vSwTU#7zr+
Y0SIdSJYsEaB>(^b07*qoM6N<$g6XKB5dZ)H

diff --git a/web/html/images/new.svg b/web/html/images/new.svg
new file mode 100644
index 0000000..87f1a4c
--- /dev/null
+++ b/web/html/images/new.svg
@@ -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>
diff --git a/web/html/index.php b/web/html/index.php
index 817c20b..8b5cb62 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -165,7 +165,6 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
 		readfile("./$path");
 		break;
 	case "/css/archnavbar/archlogo.gif":
-	case "/images/new.png":
 		header("Content-Type: image/png");
 		readfile("./$path");
 		break;
@@ -182,6 +181,7 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
 	case "/images/pin.min.svg":
 	case "/images/unpin.min.svg":
 	case "/images/rss.svg":
+	case "/images/new.svg":
 		header("Content-Type: image/svg+xml");
 		readfile("./$path");
 		break;
diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index b783bd8..7cad3fa 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -11,7 +11,7 @@
 			</td>
 			<td class="pkg-new">
 				<?php if ($row["ModifiedTS"] - $row["SubmittedTS"] < 3600): ?>
-				<img src="images/new.png" alt="New!" />
+				<img src="images/new.svg" alt="New!" />
 				<?php endif; ?>
 			</td>
 			<td class="pkg-date">
-- 
2.6.4


More information about the aur-dev mailing list