diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-01-31 10:25:59 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-01-31 10:26:07 -0800 |
commit | 9aa5a510941d5d1e1b794ee985b99a3eb4400151 (patch) | |
tree | e77687e0a2451cabade77e8ab8ddd20895159104 /custom_userhistory.cgi | |
parent | custom_userhistory: be clear about all exits (diff) | |
download | bugzilla-9aa5a510941d5d1e1b794ee985b99a3eb4400151.tar.gz bugzilla-9aa5a510941d5d1e1b794ee985b99a3eb4400151.tar.bz2 bugzilla-9aa5a510941d5d1e1b794ee985b99a3eb4400151.zip |
custom_userhistory: HTML fixup.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'custom_userhistory.cgi')
-rwxr-xr-x | custom_userhistory.cgi | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/custom_userhistory.cgi b/custom_userhistory.cgi index 2208c8134..ba9054d81 100755 --- a/custom_userhistory.cgi +++ b/custom_userhistory.cgi @@ -37,7 +37,7 @@ $userid = $matchstr ? login_to_id($matchstr) : $userid; my $login_name = $matchstr ? $matchstr : Bugzilla::User->new($matchstr)->login; if(!$userid || !$login_name) { - print "Bad user!<br>"; + print "Bad user!<br/>"; exit(0); } @@ -69,7 +69,7 @@ push(@bindValues2, $userid); push(@bindValues2, $userid); #print Dumper($vars); -printf "%s<br>",$login_name; +printf "%s<br/>",$login_name; my $actions = $dbh->selectall_arrayref( $query, { Slice => {} }, @@ -78,10 +78,10 @@ my $actions = $dbh->selectall_arrayref( my $counter = 0; foreach my $row (@$actions) { - printf "<a href=\"%9d\">%9d</a>: %s %s<br>", $row->{'bug_id'}, $row->{'bug_id'}, $row->{'bug_when'}, $row->{'field'}; + printf "<a href=\"%9d\">%9d</a>: %s %s<br/>", $row->{'bug_id'}, $row->{'bug_id'}, $row->{'bug_when'}, $row->{'field'}; $counter++; } -printf "History Done. Limit=%d Count=%d<br><br>",$limit,$counter; +printf "History Done. Limit=%d Count=%d<br/><br/>",$limit,$counter; $query = 'SELECT p2.userid AS grantor_id, p1.userid AS grantee_id, @@ -100,17 +100,17 @@ $actions = $dbh->selectall_arrayref( @bindValues3 ); -printf "Applied to %s:<br>",$login_name; +printf "Applied to %s:<br/>",$login_name; foreach my $row (@$actions) { - printf "%s: by %s: %s%s %s%s<br>", $row->{'profiles_when'}, $row->{'grantor'}, $row->{'oldvalue'} ? '-' : '', $row->{'oldvalue'}, $row->{'newvalue'}? '+' : '', $row->{'newvalue'} if $row->{'grantee_id'} == $userid; + printf "%s: by %s: %s%s %s%s<br/>", $row->{'profiles_when'}, $row->{'grantor'}, $row->{'oldvalue'} ? '-' : '', $row->{'oldvalue'}, $row->{'newvalue'}? '+' : '', $row->{'newvalue'} if $row->{'grantee_id'} == $userid; } -printf "<br>"; +printf "<br/>"; -printf "Applied by %s:<br>",$login_name; +printf "Applied by %s:<br/>",$login_name; foreach my $row (@$actions) { - printf "%s: to %s: %s%s %s%s<br>", $row->{'profiles_when'}, $row->{'grantee'}, $row->{'oldvalue'} ? '-' : '', $row->{'oldvalue'}, $row->{'newvalue'}? '+' : '', $row->{'newvalue'} if $row->{'grantor_id'} == $userid; + printf "%s: to %s: %s%s %s%s<br/>", $row->{'profiles_when'}, $row->{'grantee'}, $row->{'oldvalue'} ? '-' : '', $row->{'oldvalue'}, $row->{'newvalue'}? '+' : '', $row->{'newvalue'} if $row->{'grantor_id'} == $userid; } -printf "<br>"; +printf "<br/>"; $query = 'SELECT p1.userid AS watcher_id, p2.userid AS watched_id, @@ -124,16 +124,16 @@ $actions = $dbh->selectall_arrayref( $query, { Slice => {} }, ); -printf "Watchers of %s:<br>", $login_name; +printf "Watchers of %s:<br/>", $login_name; foreach my $row (@$actions) { -printf "%s<br>", $row->{'watcher'} if $row->{'watched_id'} == $userid; +printf "%s<br/>", $row->{'watcher'} if $row->{'watched_id'} == $userid; } -printf "<br>"; +printf "<br/>"; -printf "Watched by %s:<br>", $login_name; +printf "Watched by %s:<br/>", $login_name; foreach my $row (@$actions) { -printf "%s<br>", $row->{'watched'} if $row->{'watcher_id'} == $userid; +printf "%s<br/>", $row->{'watched'} if $row->{'watcher_id'} == $userid; } -printf "<br>"; +printf "<br/>"; -printf "Done.<br>"; +printf "Done.<br/>"; |