mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Use virtual paths for package details
Extend the routing front/back ends to allow for using "/package/$pkgname/" for individual packages. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
2425f963f8
commit
03486c3b6f
10 changed files with 40 additions and 15 deletions
|
@ -52,7 +52,7 @@ if (!$result): ?>
|
|||
<td><input type="checkbox" name="IDs[<?php echo $row["ID"] ?>]" value="1" /></td>
|
||||
<?php endif; ?>
|
||||
<td><?php echo htmlspecialchars($row["Category"]) ?></td>
|
||||
<td><a href="<?php echo get_uri('/packages/'); ?>?ID=<?php echo $row["ID"] ?>"><?php echo htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]) ?></a></td>
|
||||
<td><a href="<?php echo htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?php echo htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]) ?></a></td>
|
||||
<td><?php echo $row["NumVotes"] ?></td>
|
||||
<?php if ($SID): ?>
|
||||
<td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue