mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove 'new' tag from updates table
It was hard to make it consistent with the other new icons from Open Iconic and it hadn't much use after all. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
7d7fc18405
commit
1664a24198
4 changed files with 1 additions and 17 deletions
|
@ -16,10 +16,6 @@
|
||||||
margin: 0 .25em;
|
margin: 0 .25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pkg-updates td.pkg-new {
|
|
||||||
padding: 0 .5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pkg-stats td.stat-desc {
|
#pkg-stats td.stat-desc {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
@ -45,10 +41,6 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pkg-updates td.pkg-new {
|
|
||||||
width: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pkg-updates td.pkg-date {
|
#pkg-updates td.pkg-date {
|
||||||
text-align:right;
|
text-align:right;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
<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>
|
|
Before Width: | Height: | Size: 223 B |
|
@ -11,7 +11,7 @@ function updates_table() {
|
||||||
$dbh = DB::connect();
|
$dbh = DB::connect();
|
||||||
$key = 'recent_updates';
|
$key = 'recent_updates';
|
||||||
if(!($newest_packages = get_cache_value($key))) {
|
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.= 'FROM Packages INNER JOIN PackageBases ON ';
|
||||||
$q.= 'Packages.PackageBaseID = PackageBases.ID ';
|
$q.= 'Packages.PackageBaseID = PackageBases.ID ';
|
||||||
$q.= 'WHERE PackageBases.PackagerUID IS NOT NULL ';
|
$q.= 'WHERE PackageBases.PackagerUID IS NOT NULL ';
|
||||||
|
|
|
@ -9,11 +9,6 @@
|
||||||
<td class="pkg-name">
|
<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>
|
<a href="<?= get_pkg_uri($row["Name"]); ?>" title="<?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?>"><?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a>
|
||||||
</td>
|
</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">
|
<td class="pkg-date">
|
||||||
<span><?= gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
|
<span><?= gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue