[rt-users] Another Query question: justification of data

Kenneth Crocker kfcrocker at lbl.gov
Tue Oct 19 13:14:32 EDT 2010


Roy,

Thanks. Yea. I think that "Id" should default to the left anyway, but what
do I know, huh?

I'll make that change.

Kenn
LBNL

On Tue, Oct 19, 2010 at 2:41 AM, Raed El-Hames <Raed.El-Hames at vialtus.com>wrote:

>  Hi Ken its me again:
>
>
>
> Have a look at share/html/Elements/ColumnMap
>
> # This is scary and should totally be refactored -- jesse
>
> my $COLUMN_MAP = {
>
>     id => {
>
>         attribute => 'id',
>
>         title    => 'id', # loc
>
>         align     => 'right',
>
>         value     => sub { return $_[0]->id }
>
>     },
>
>
>
>
>
> You will see the align = ‘right’, you can either remove the whole line (I
> do n’t think it will break anything), or you can simply change the right to
> left.
>
> Restart the web server and all should be fine.
>
>
>
> For me I would remove the align line from there and do this via the css,
> not sure which stylesheets you use, If its web2, look in ticket-lists.css
> for
>
> th.collection-as-table , td.collection-as-table {
>
>  padding-right: 0.5em;
>
> }
>
> And add text-align: left; in between {}
>
> This in theory will apply it to all fields within CollectionList.
>
>
>
> Regards;
>
> Roy
>
>
>
>
>
> *From:* rt-users-bounces at lists.bestpractical.com [mailto:
> rt-users-bounces at lists.bestpractical.com] *On Behalf Of *Kenneth Crocker
> *Sent:* 18 October 2010 22:32
> *To:* rt-users at lists.bestpractical.com
> *Subject:* Re: [rt-users] Another Query question: justification of data
>
>
>
> Ruslan,
>
> I can't seem to get that to work. What I REALLY want to do is have ALL
> Search results align the Ticket ID to the left. I know most people want a
> field defined as "Number" to align to the right. But Ticket ID is never used
> in arithmetic expressions so there's no reason to treat it like any other
> character field and align it to the left or the center. Otherwise, it looks
> way out of alignment. When I look at the source code generated for the
> results, I get:
>
>
>  <td class="collection-as-table" align="right"><b><a href="/Ticket/Display.html?id=85141">85141</a></b></td>
>
> <td class="collection-as-table" ><b><a href="/Ticket/Display.html?id=85141">Develop Admin Queries & Dashboards for EHS Queues</a></b></td>
>
> <td class="collection-as-table" >TSG-RT</td>
>
> <td class="collection-as-table" >CPeach at lbl.gov</td>
>
> <td class="collection-as-table" >3</td>
>
> <td class="collection-as-table" >new</td>
>
> <td class="collection-as-table" >Requested</td>
>
> <td class="collection-as-table" >KFCrocker</td>
>
> <td class="collection-as-table" >2010-09-10</a></b></td>
>
>
>
> So it looks to me like something it automatically inserting "align=right"
> in the "collection-as-table". I went to main.css and tried  changing
> "ticket-lists.css" and put a change in it (text-align: left;) for the td
> label and it seems to get overridden. Do you know where the code is that
> overrides "ticket-lists.css" so I can change that behavior?
>
> Thanks.
>
> Kenn
> LBNL
>
>  On Mon, Oct 18, 2010 at 12:50 PM, Ruslan Zakirov <ruz at bestpractical.com>
> wrote:
>
> Hi,
>
> Use "/ALIGN:..." in a format string.
>
>
> On Sat, Oct 16, 2010 at 12:27 AM, Kenneth Crocker <kfcrocker at lbl.gov>
> wrote:
> > To List,
> >
> > I noticed that when I run a query, the Ticket number seems to be
> justified
> > to the right of it's column, but Priority Subject, and others are
> justified
> > left. Does anyone know why? Does anyone know how to change that?
> >
> > Kenn
> > LBNL
> >
> >
>
> > RT Training in Washington DC, USA on Oct 25 & 26 2010
> > Last one this year -- Learn how to get the most out of RT!
> >
>
>
>
> --
> Best regards, Ruslan.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20101019/1c50a0d2/attachment.htm>


More information about the rt-users mailing list