diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-04-05 16:52:15 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-04-05 16:52:15 +0200 |
commit | f08bfa5d014ac99e93deea2e0fd62fa59ee6be82 (patch) | |
tree | 78922c96f45bef1f103fa6a9d6c7a517eb61b381 /web | |
parent | 6ed9da2c3e56ccf776308f680791099c464b9ab2 (diff) |
pkg_search_results.php: Link to account when logged in
Replace the maintainer package search links with links to the
maintainer's account when browsing the search results as a logged-in
user.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r-- | web/template/pkg_search_results.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index c9da5f9..e47fcb2 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -73,7 +73,11 @@ if (!$result): ?> <td class="wrap"><?= htmlspecialchars($row['Description'], ENT_QUOTES); ?></td> <td> <?php if (isset($row["Maintainer"])): ?> + <?php if ($SID): ?> + <a href="<?= get_uri('/account/') . htmlspecialchars($row['Maintainer'], ENT_QUOTES) ?>" title="<?= __('View account information for %s', htmlspecialchars($row['Maintainer'])) ?>"><?= htmlspecialchars($row['Maintainer']) ?></a> + <?php else: ?> <a href="<?= get_uri('/packages/'); ?>?K=<?= htmlspecialchars($row['Maintainer'], ENT_QUOTES) ?>&SeB=m"><?= htmlspecialchars($row['Maintainer']) ?></a> + <?php endif; ?> <?php else: ?> <span><?= __("orphan") ?></span> <?php endif; ?> |