diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-17 21:45:03 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-17 22:41:49 +0200 |
commit | 10c774f0346b08fc4d720c4e80582476ba7e61a9 (patch) | |
tree | 0662f9135dc34a66d21342948f8be57a2470a399 /web/template | |
parent | 9ede9e0faaf4be0ff5682a7f8603c61fd1e15c9e (diff) |
Rearrange package actions
Move the flag/unflag action below the flag date.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/pkg_details.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index d4ba828..207ecfd 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -38,6 +38,11 @@ $sources = package_sources($row["ID"]); <li><a href="<?php echo $urlpath . '/' . $row['Name'] ?>.tar.gz"><?php echo __('Download tarball') ?></a></li> <li><span class="flagged"><?php if ($row["OutOfDateTS"] !== NULL) { echo __('Flagged out-of-date')." (${out_of_date_time})"; } ?></span></li> <?php if ($USE_VIRTUAL_URLS && $uid): ?> + <?php if ($row["OutOfDateTS"] === NULL): ?> + <li><a href="<?php echo get_pkg_uri($row['Name']) . 'flag/'; ?>"><?php echo __('Flag package out-of-date'); ?></a></li> + <?php else: ?> + <li><a href="<?php echo get_pkg_uri($row['Name']) . 'unflag/'; ?>"><?php echo __('Unflag package'); ?></a></li> + <?php endif; ?> <?php if (user_voted($uid, $row['ID'])): ?> <li><a href="<?php echo get_pkg_uri($row['Name']) . 'unvote/'; ?>"><?php echo __('Remove vote'); ?></a></li> <?php else: ?> @@ -48,11 +53,6 @@ $sources = package_sources($row["ID"]); <?php else: ?> <li><a href="<?php echo get_pkg_uri($row['Name']) . 'notify/'; ?>"><?php echo __('Notify of new comments'); ?></a></li> <?php endif; ?> - <?php if ($row["OutOfDateTS"] === NULL): ?> - <li><a href="<?php echo get_pkg_uri($row['Name']) . 'flag/'; ?>"><?php echo __('Flag package out-of-date'); ?></a></li> - <?php else: ?> - <li><a href="<?php echo get_pkg_uri($row['Name']) . 'unflag/'; ?>"><?php echo __('Unflag package'); ?></a></li> - <?php endif; ?> <?php endif; ?> </ul> <form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post"> |