summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CGI.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/CGI.pl b/CGI.pl
index c557473a8..091055dd7 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -1073,7 +1073,13 @@ Actions:
$html .=
qq{ <BR> <INPUT TYPE=SUBMIT VALUE="Find"> bug \# <INPUT NAME=id SIZE=6>};
- $html .= " | <a href='reports.cgi'>Reports</a></TD>\n";
+ $html .= " | <a href='reports.cgi'>Reports</a>";
+ if ($loggedin) {
+ if ($::anyvotesallowed) {
+ $html .= " | <A HREF=\"showvotes.cgi\">My votes</A>";
+ }
+ }
+ $html .= "</TD>\n";
if ($loggedin) {
#a little mandatory SQL, used later on
SendSQL("SELECT mybugslink, userid, blessgroupset FROM profiles " .
@@ -1108,9 +1114,6 @@ Actions:
if (!defined $::anyvotesallowed) {
GetVersionTable();
}
- if ($::anyvotesallowed) {
- $html .= qq{ <BR> <A HREF="showvotes.cgi"><NOBR>My votes</NOBR></A>};
- }
$html .= "</TR><TR>";
$html .= "<TD>Preset Queries: </TD>";
$html .= "<TD colspan=2>\n";