[aur-dev] [PATCH] Remove 'new' tag from updates table

Marcel Korpel marcel.korpel at gmail.com
Sun Jan 31 18:48:15 UTC 2016


Signed-off-by: Marcel Korpel <marcel.korpel at gmail.com>
---
 web/html/css/aurweb.css              | 8 --------
 web/lib/stats.inc.php                | 2 +-
 web/template/stats/updates_table.php | 5 -----
 3 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
index 4c3fbe5..56158d2 100644
--- a/web/html/css/aurweb.css
+++ b/web/html/css/aurweb.css
@@ -16,10 +16,6 @@
     margin: 0 .25em;
 }
 
-#pkg-updates td.pkg-new {
-  padding: 0 .5em;
-}
-
 #pkg-stats td.stat-desc {
   white-space: normal;
 }
@@ -45,10 +41,6 @@
 	text-overflow: ellipsis;
 }
 
-#pkg-updates td.pkg-new {
-	width: 16px;
-}
-
 #pkg-updates td.pkg-date {
 	text-align:right;
 }
diff --git a/web/lib/stats.inc.php b/web/lib/stats.inc.php
index 5a24591..80619fe 100644
--- a/web/lib/stats.inc.php
+++ b/web/lib/stats.inc.php
@@ -11,7 +11,7 @@ function updates_table() {
 	$dbh = DB::connect();
 	$key = 'recent_updates';
 	if(!($newest_packages = get_cache_value($key))) {
-		$q = 'SELECT Packages.Name, Version, ModifiedTS, SubmittedTS ';
+		$q = 'SELECT Packages.Name, Version, ModifiedTS ';
 		$q.= 'FROM Packages INNER JOIN PackageBases ON ';
 		$q.= 'Packages.PackageBaseID = PackageBases.ID ';
 		$q.= 'WHERE PackageBases.PackagerUID IS NOT NULL ';
diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index cecfb9f..9c295c0 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -9,11 +9,6 @@
 			<td class="pkg-name">
 				<a href="<?= get_pkg_uri($row["Name"]); ?>" title="<?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?>"><?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a>
 			</td>
-			<td class="pkg-new">
-				<?php if ($row["ModifiedTS"] - $row["SubmittedTS"] < 3600): ?>
-				<img src="images/new.svg" alt="New!" />
-				<?php endif; ?>
-			</td>
 			<td class="pkg-date">
 				<span><?= gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
 			</td>
-- 
2.7.0


More information about the aur-dev mailing list