diff options
-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"> |