]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 150770 - Lost <nobr> arround query results
authorbbaetz%student.usyd.edu.au <>
Mon, 1 Jul 2002 10:30:15 +0000 (10:30 +0000)
committerbbaetz%student.usyd.edu.au <>
Mon, 1 Jul 2002 10:30:15 +0000 (10:30 +0000)
r=jouni, justdave

checksetup.pl
globals.pl
t/004template.t
template/en/default/global/useful-links.html.tmpl
template/en/default/list/table.html.tmpl

index 97965408ea183ecbbe7f7acb2cf88f4ac2a48ddb..3ebc67aeb4c199b7017bfdba8693a5d92ee7cb07 100755 (executable)
@@ -882,7 +882,6 @@ END
          js => sub { return $_; },
          html => sub { return $_; },
          url_quote => sub { return $_; },
-         no_break => sub { return $_; }
         },
       }) || die ("Could not create Template: " . Template->error() . "\n");
 
index 8c9f479355080bdc4049b1675aad536093c936f5..ec66fccc867b9deacf72e2d4571b10740f70e757 100644 (file)
@@ -1574,15 +1574,6 @@ $::template ||= Template->new(
         # filter should be used for a full URL that may have
         # characters that need encoding.
         url_quote => \&url_quote ,
-        
-        # Returns the text with spaces converted to non-breaking space
-        # HTML entities.
-        no_break => sub
-        {
-            my ($var) = @_;            
-            $var =~ s/ /\&nbsp;/g;
-            return $var;
-       } ,
       } ,
   }
 ) || DisplayError("Template creation failed: " . Template->error())
index f56a3014054ee231064b463dda8b016b0823e8a0..ba50c1e66cd27d382ecefe9b263a522a6993e0fe 100644 (file)
@@ -80,7 +80,6 @@ my $template = Template->new(
         js        => sub { return $_ } ,
         strike    => sub { return $_ } ,
         url_quote => sub { return $_ } ,
-        no_break  => sub { return $_ } ,
     },
 }
 );
index 807c316b64289ad80c08b4cf045f3b20b9b55a0b..dcde76c56457f843c54ed1c20581efe71a913da0 100644 (file)
         [% FOREACH q = user.queries %]
           [% IF q.linkinfooter %]
             [% " | " IF print_pipe %]
-            <a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER url_quote %]">[% q.name FILTER html FILTER no_break %]</a>
+            <a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER url_quote %]">
+              <nobr>[% q.name FILTER html %]</nobr>
+            </a>
             [% print_pipe = 1 %]
           [% END %]        
         [% END %]
index 7658833193636f1242f724ef92f51ad555b2ee5e..6d5ee0d6cc11397f13761b5cb86e53a3aa9ab521 100644 (file)
@@ -28,6 +28,8 @@
   # the shortened title is included.  For columns whose values should be
   # abbreviated, a maximum length is provided along with the ellipsis that
   # should be added to an abbreviated value, if any.
+  # wrap is set if a column's contents should be allowed to be word-wrapped
+  # by the browser.
   #%]
 [% abbrev = 
   {
@@ -39,8 +41,9 @@
     "owner"             => { maxlength => 30 , ellipsis => "..." } , 
     "qa_contact"        => { maxlength => 30 , ellipsis => "..." , title => "QAContact" } , 
     "resolution"        => { maxlength => 4 } , 
-    "summary"           => { maxlength => 60 , ellipsis => "..." } , 
-    "status_whiteboard" => { title => "StatusSummary" } , 
+    "summary"           => { maxlength => 60 , ellipsis => "..." , wrap => 1 } ,
+    "summaryfull"       => { wrap => 1 } ,
+    "status_whiteboard" => { title => "StatusSummary" , wrap => 1 } , 
     "component"         => { maxlength => 8 , title => "Comp" } , 
     "product"           => { maxlength => 8 } , 
     "version"           => { maxlength => 5 , title => "Vers" } , 
 
     [% FOREACH column = displaycolumns %]
     <td>
-      [%+ bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html %]
+      [% '<nobr>' IF NOT abbrev.$column.wrap %]
+      [%- bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%]
+      [%- '</nobr>' IF NOT abbrev.$column.wrap %]
     </td>
     [% END %]