Opened 7 years ago

Last modified 19 months ago

#5640 new enhancement

Better readability for 'How long ago' column

Reported by: rjollos Owned by:
Priority: high Component: UserStatsMacro
Severity: normal Keywords: table content alignment
Cc: Trac Release: 0.11


The How long ago column currently looks like this,

joela 2009/04/03 16:18:09 126 day(s)
kangy 2009/08/07 00:06:26 <24h
kendrickw 2009/08/07 11:07:35 <24h
kenl 2009/08/04 13:36:44 3 day(s)

The layout of the How long ago column is pretty messy. I think the following looks much better:

joela 2009/04/03 16:18:09 126 day(s)
kangy 2009/08/07 00:06:26 < 1 day(s)
kendrickw 2009/08/07 11:07:35 < 1 day(s)
kenl 2009/08/04 13:36:44 3 day(s)

One of the changes is the use of a fixed width font. It doesn't necessarily have to be the font I used, but a fixed width font would be preferable.

Attachments (0)

Change History (6)

comment:1 Changed 7 years ago by rjollos

  • Owner changed from pedro to rjollos
  • Type changed from task to enhancement

comment:2 Changed 6 years ago by rjollos

  • Priority changed from normal to high
  • Status changed from new to assigned

comment:3 Changed 6 years ago by hieroglyph

Unfortunately, simply using a back tick for monospace font works but Trac 0.11 does not provide for right-aligning text (but the new table wiki markup in 0.12 does) and leading spaces are stripped (probably by the browser?)

The only option I can think of for 0.11+ would be to generate proper html instead of wiki text...

comment:4 Changed 5 years ago by rjollos

  • Status changed from assigned to new

comment:5 Changed 5 years ago by hasienda

  • Keywords table content alignment added

An alternative presentation has been developed for the UserQuery wiki macro provided by AccountManagerPlugin (see #9852 for details).

This is available since acct_mgr-0.4dev-r11345 in trunk development branch. We overcome wiki markup limitations by only using Genshi templates in that plugin, as suggested by hieroglyph's comment above. You can even opt for two additional columns 'email' and 'user full name'.

Testers beware, that you'll need to grant USER_VIEW permission to show this to some/all of your users. Comments welcome.

comment:6 Changed 19 months ago by rjollos

  • Owner rjollos deleted

Add Comment

Modify Ticket

as new The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.