Another Query question: justification of data

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

Hi,

Use “/ALIGN:…” in a format string.On Sat, Oct 16, 2010 at 12:27 AM, Kenneth Crocker kfcrocker@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.

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:

85141 Develop Admin Queries & Dashboards for EHS Queues TSG-RT CPeach@lbl.gov 3 new Requested KFCrocker 2010-09-10

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
LBNLOn Mon, Oct 18, 2010 at 12:50 PM, Ruslan Zakirov ruz@bestpractical.comwrote:

Hi,

Use “/ALIGN:…” in a format string.

On Sat, Oct 16, 2010 at 12:27 AM, Kenneth Crocker kfcrocker@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.

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;
RoyFrom: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kenneth Crocker
Sent: 18 October 2010 22:32
To: rt-users@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:

85141 Develop Admin Queries & Dashboards for EHS Queues TSG-RT CPeach@lbl.gov 3 new Requested KFCrocker 2010-09-10

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

Hi,

Use “/ALIGN:…” in a format string.

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
LBNLOn Tue, Oct 19, 2010 at 2:41 AM, Raed El-Hames Raed.El-Hames@vialtus.comwrote:

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@lists.bestpractical.com [mailto:
rt-users-bounces@lists.bestpractical.com] *On Behalf Of *Kenneth Crocker
Sent: 18 October 2010 22:32
To: rt-users@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:

85141 Develop Admin Queries & Dashboards for EHS Queues TSG-RT CPeach@lbl.gov 3 new Requested KFCrocker 2010-09-10

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@bestpractical.com wrote:

Hi,

Use “/ALIGN:…” in a format string.

On Sat, Oct 16, 2010 at 12:27 AM, Kenneth Crocker kfcrocker@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.

Usually numbers are right aligned in tables, but it’s not always followed in
rt.

Regards, Ruslan. From phone.

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

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@lists.bestpractical.com [mailto:
rt-users-bounces@lists.bestpractical.com] *On Behalf Of *Kenneth Crocker
Sent: 18 October 2010 22:32
To: rt-users@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:

<a

href="/Ticket/Display.html?id=85141">85141

<a

href="/Ticket/Display.html?id=85141">Develop Admin Queries & Dashboards
for EHS Queues

Ruslan,

I think that makes sense in most cases. The problem is, Ticket Id is not for
arithmetic expression. No addition, no decimal alignment, etc. just a
number. So it is used/displayed like it is a character so I think it would
at least LOOK better if it was aligned to the left. Just an opinion.

Kenn
LBNLOn Tue, Oct 19, 2010 at 6:18 PM, Ruslan Zakirov ruz@bestpractical.comwrote:

Usually numbers are right aligned in tables, but it’s not always followed
in rt.

Regards, Ruslan. From phone.
2010 10 19 21:15 пользователь “Kenneth Crocker” kfcrocker@lbl.gov
написал:

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@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@lists.bestpractical.com [mailto:
rt-users-bounces@lists.bestpractical.com] *On Behalf Of *Kenneth
Crocker

Sent: 18 October 2010 22:32
To: rt-users@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:

<a

href="/Ticket/Display.html?id=85141">85141

<a

href="/Ticket/Display.html?id=85141">Develop Admin Queries & Dashboards
for EHS Queues

TSG-RT CPeach@lbl.gov 3 new Requested KFCrocker 2010-09-10

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@bestpractical.com wrote:

Hi,

Use “/ALIGN:…” in a format string.

On Sat, Oct 16, 2010 at 12:27 AM, Kenneth Crocker kfcrocker@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.