]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 65316: Typos on edit*.cgi. Change use of PutTrailer() (and the
authorkiko%async.com.br <>
Sat, 27 Sep 2003 06:47:07 +0000 (06:47 +0000)
committerkiko%async.com.br <>
Sat, 27 Sep 2003 06:47:07 +0000 (06:47 +0000)
default output, in certain cases) in the edit pages. Patch by Vlad
Dascalu <jocuri@softhome.net>, r=kiko, a=justdave

editcomponents.cgi
editgroups.cgi
editkeywords.cgi
editproducts.cgi
editusers.cgi

index 018c89cdf14f6c109a09cac95100bda3d953232d..539da47a5d31021ca13e6e66f62758d4617acaee 100755 (executable)
@@ -151,6 +151,10 @@ sub EmitFormElements ($$$$$)
 
 #
 # 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 (@)
@@ -475,9 +479,14 @@ if ($action eq 'new') {
 
     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;
 }
index a283d05016129004b4641a126374a2a2e6264716..e793f296a83cc0dffa1e25500c8665d095a3e47b 100755 (executable)
@@ -73,7 +73,7 @@ sub ShowError ($)
 
 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;
@@ -271,7 +271,7 @@ if ($action eq 'changeform') {
 
 
 
-    PutTrailer("<a href=editgroups.cgi>Back to group list</a>");
+    PutTrailer("back to the <a href=\"editgroups.cgi\">group list</a>");
     exit;
 }
 
@@ -326,7 +326,7 @@ probably want it to be usable for bugs, in which case you should leave this chec
     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;
 }
 
@@ -409,8 +409,8 @@ if ($action eq 'new') {
                 "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;
 }
 
@@ -558,9 +558,9 @@ if ($action eq 'delete') {
           "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;
     }
 
@@ -572,7 +572,7 @@ if ($action eq 'delete') {
     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;
 }
 
@@ -666,7 +666,7 @@ if ($action eq 'postchanges') {
         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;
 }
 
index 8ef11aee001f7d568085a6d9882dc0ee28b818b7..073dfbb9d4da8793b191bed1b99c66c5aa66ff8f 100755 (executable)
@@ -30,6 +30,10 @@ my $localtrailer = "<A HREF=\"editkeywords.cgi\">edit</A> more keywords";
 
 #
 # 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 (@)
@@ -242,7 +246,8 @@ if ($action eq 'new') {
     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;
 }
 
index 55089d9aeffab979861835313f1234e72a713c9c..1782a74b8c3ece9a0d6c09827bdd7f011bdd41e7 100755 (executable)
@@ -433,7 +433,9 @@ if ($action eq 'new') {
     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;
 }
 
index ecd179793d8c78304b9b5e2faf1bcedaa435d328..823035fe50850cf5a7659a4ce3072deeb679dc2e 100755 (executable)
@@ -207,9 +207,10 @@ sub EmitFormElements ($$$$)
 
 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, @_);
 
@@ -489,10 +490,11 @@ if ($action eq 'new') {
     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;
 
 }