summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2001-03-10 14:52:54 +0100
committercyeh%bluemartini.com <>2001-03-10 14:52:54 +0100
commit99c542cd94fb91f9d763be59eeec9140925245ac (patch)
treeb682a2e9e065f6a468935c5086e4e256443bb0c6 /CGI.pl
parent6ba10a1b6b1f5cc87ec8c885f6e61a0a77166abf (diff)
downloadbugzilla-99c542cd94fb91f9d763be59eeec9140925245ac.tar.gz
bugzilla-99c542cd94fb91f9d763be59eeec9140925245ac.tar.xz
fix for "My Votes" floating in space like a disconnected astronaut
Diffstat (limited to 'CGI.pl')
-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";