#
# Displays a text like "a.", "a or b.", "a, b or c.", "a, b, c or d."
+#
+# XXX This implementation of PutTrailer outputs a default link back to the
+# query page instead of the index, which is inconsistent with other
+# PutTrailer() implementations.
#
sub PutTrailer (@)
print "OK, done.<p>\n";
if ($product) {
- PutTrailer("<A HREF=\"editcomponents.cgi?product=" . url_quote($product) . "\">edit</A> more components or <A HREF=\"editcomponents.cgi?product=". url_quote($product) . "&action=add\">Add</A> another component");
+ PutTrailer("<a href=\"editcomponents.cgi?product=" .
+ url_quote($product) . "\">edit</a> more components",
+ "<a href=\"editcomponents.cgi?product=". url_quote($product) .
+ "&action=add\">add</a> another component");
} else {
- PutTrailer("<A HREF=\"editcomponents.cgi\">edit</A> more components or <A HREF=\"editcomponents.cgi?action=add\">Add</A> another component");
+ PutTrailer("<a href=\"editcomponents.cgi\">edit</a> more components",
+ "<a href=\"editcomponents.cgi?action=add\">add</a>" .
+ "another component");
}
exit;
}
sub PutTrailer (@)
{
- my (@links) = ("<a href=\"./\">Back to the Main Bugs Page</a>", @_);
+ my (@links) = ("Back to the <a href=\"./\">index</a>", @_);
my $count = $#links;
my $num = 0;
- PutTrailer("<a href=editgroups.cgi>Back to group list</a>");
+ PutTrailer("back to the <a href=\"editgroups.cgi\">group list</a>");
exit;
}
print "products\" option will prevent this and make the group become ";
print "visible only when its controls have been added to a product.<P>\n";
- PutTrailer("<a href=editgroups.cgi>Back to the group list</a>");
+ PutTrailer("back to the <a href=\"editgroups.cgi\">group list</a>");
exit;
}
"FROM products");
}
print "OK, done.<p>\n";
- PutTrailer("<a href=\"editgroups.cgi?action=add\">Add another group</a>",
- "<a href=\"editgroups.cgi\">Back to the group list</a>");
+ PutTrailer("<a href=\"editgroups.cgi?action=add\">add</a> another group",
+ "back to the <a href=\"editgroups.cgi\">group list</a>");
exit;
}
"records in the database which refer to it. All such records " .
"must be removed or altered to remove the reference to this " .
"group before the group can be deleted.");
- print "<A HREF=\"editgroups.cgi?action=del&group=$gid\">" .
- "View the list of which records are affected</A><BR>";
- PutTrailer("<a href=editgroups.cgi>Back to group list</a>");
+ print "<a href=\"editgroups.cgi?action=del&group=$gid\">" .
+ "View</a> the list of which records are affected.<br>";
+ PutTrailer("back to the <a href=\"editgroups.cgi\">group list</a>");
exit;
}
print "<B>Group $gid has been deleted.</B><BR>";
- PutTrailer("<a href=editgroups.cgi>Back to group list</a>");
+ PutTrailer("back to the <a href=\"editgroups.cgi\">group list</a>");
exit;
}
SendSQL("UPDATE groups SET last_changed = NOW() WHERE id = $gid");
print "Done.<p>\n";
}
- PutTrailer("<a href=editgroups.cgi>Back to the group list</a>");
+ PutTrailer("back to the <a href=\"editgroups.cgi\">group list</a>");
exit;
}
#
# Displays a text like "a.", "a or b.", "a, b or c.", "a, b, c or d."
+#
+# XXX This implementation of PutTrailer outputs a default link back to
+# the query page instead of the index, which is inconsistent with other
+# PutTrailer() implementations.
#
sub PutTrailer (@)
unlink "data/versioncache";
print "OK, done.<p>\n";
- PutTrailer("<A HREF=\"editkeywords.cgi\">edit</A> more keywords or <A HREF=\"editkeywords.cgi?action=add\">add</a> another keyword");
+ PutTrailer("<a href=\"editkeywords.cgi\">edit</a> more keywords",
+ "<a href=\"editkeywords.cgi?action=add\">add</a> another keyword");
exit;
}
unlink "data/versioncache";
print "OK, done.<p>\n";
- PutTrailer($localtrailer, "<a href=\"editcomponents.cgi?action=add&product=" . url_quote($product) . "\">add</a> components to this new product.");
+ PutTrailer($localtrailer,
+ "<a href=\"editcomponents.cgi?action=add&product=" .
+ url_quote($product) . "\">add</a> components to this new product");
exit;
}
sub PutTrailer (@)
{
- my (@links) = ("Back to the <A HREF=\"./\">index</A>");
+ my (@links) = ("Back to the <a href=\"./\">index</a>");
if($editall && Bugzilla::Auth->can_edit) {
- push(@links, "<A HREF=\"editusers.cgi?action=add\">Add a new user</A>");
+ push(@links,
+ "<a href=\"editusers.cgi?action=add\">add</a> a new user");
}
push(@links, @_);
SendSQL("SELECT last_insert_id()");
my ($newuserid) = FetchSQLData();
- print "To change ${user}'s permissions, go back and <a href=\"editusers.cgi?action=edit&user=" . url_quote($user)."\">edit this user</A>";
+ print "To change ${user}'s permissions, go back and " .
+ "<a href=\"editusers.cgi?action=edit&user=" . url_quote($user) .
+ "\">edit</a> this user.";
print "<p>\n";
- PutTrailer($localtrailer,
- "<a href=\"editusers.cgi?action=add\">add</a> another user.");
+ PutTrailer($localtrailer);
exit;
}