[Rt-commit] rt branch, 4.2/users-collection-header, created. rt-4.2.3-68-ge74de94

Wallace Reis wreis at bestpractical.com
Wed Apr 2 13:37:02 EDT 2014


The branch, 4.2/users-collection-header has been created
        at  e74de946211cb642fa8dc663500a38bbafc8e291 (commit)

- Log -----------------------------------------------------------------
commit 6394662bb411e79b13adcc9598b6771b7e834e75
Author: Wallace Reis <wreis at bestpractical.com>
Date:   Wed Apr 2 14:31:32 2014 -0300

    Support align and style header attrs for collections
    
    Add support for the align and style attrs for the header part of
    collection table listing.

diff --git a/share/html/Elements/CollectionAsTable/Header b/share/html/Elements/CollectionAsTable/Header
index d311002..18611cf 100644
--- a/share/html/Elements/CollectionAsTable/Header
+++ b/share/html/Elements/CollectionAsTable/Header
@@ -72,9 +72,10 @@ $generic_query_args->{'Format'} = $FormatString if grep $_ eq 'Format', @PassArg
 my $item = 0;
 foreach my $col ( @Format ) {
     my $title = $col->{'title'} || '';
+    my $style = $col->{'style'} || 'collection-as-table';
     if ( $title eq 'NEWLINE' ) {
         while ( $item < $maxitems ) {
-            $m->out(qq{<th class="collection-as-table"> </th>\n});
+            $m->out(qq{<th class="$style"> </th>\n});
             $item++;
         }
 
@@ -83,16 +84,20 @@ foreach my $col ( @Format ) {
         next;
     } elsif ( $title eq 'NBSP' ) {
         $item++;
-        $m->out(qq{<th class="collection-as-table"> </th>\n});
+        $m->out(qq{<th class="$style"> </th>\n});
         next;
     }
 
     my $span = $col->{'span'};
     $item += ($span || 1);
 
-    $m->out('<th class="collection-as-table"');
+    $m->out(qq{<th class="$style"});
     $m->out(' colspan="' . $m->interp->apply_escapes($span  => 'h') . '"')
         if $span;
+
+    my $align = $col->{'align'};
+    $m->out(qq{ align="$align"}) if $align;
+
     $m->out('>');
 
     my $loc_title;

commit e74de946211cb642fa8dc663500a38bbafc8e291
Author: Wallace Reis <wreis at bestpractical.com>
Date:   Wed Apr 2 14:34:10 2014 -0300

    Set align and style for user collection
    
    This fixes the alignment for the title in header of id column in user
    collection listing page.

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 29f3414..1d1714d 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -2936,7 +2936,7 @@ Set(%AdminSearchResultFormat,
         .q{,'__Description__'},
 
     Users =>
-        q{'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__id__</a>/TITLE:#'}
+        q{'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__id__</a>/TITLE:#/STYLE:collection-as-table-right/ALIGN:right'}
         .q{,'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
         .q{,__RealName__, __EmailAddress__},
 

-----------------------------------------------------------------------


More information about the rt-commit mailing list