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
LBNL

On Tue, Oct 19, 2010 at 6:18 PM, Ruslan Zakirov <r...@bestpractical.com>wrote:

> 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" <kfcroc...@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-ha...@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-boun...@lists.bestpractical.com [mailto:
> >> rt-users-boun...@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:
> >>
> >>
> >> <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 &#38; Dashboards
> for EHS Queues</a></b></td>
> >>
> >> <td class="collection-as-table" >TSG-RT</td>
> >>
> >> <td class="collection-as-table" >cpe...@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 <r...@bestpractical.com
> >
> >> wrote:
> >>
> >> Hi,
> >>
> >> Use "/ALIGN:..." in a format string.
> >>
> >>
> >> On Sat, Oct 16, 2010 at 12:27 AM, Kenneth Crocker <kfcroc...@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.
> >>
> >>
> >>
>

Reply via email to