Opened 8 years ago

Last modified 2 years ago

#5640 new enhancement

Better readability for 'How long ago' column

Reported by: Ryan J Ollos 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 8 years ago by Ryan J Ollos

Owner: changed from Pedro Paixao to Ryan J Ollos
Type: taskenhancement

comment:2 Changed 7 years ago by Ryan J Ollos

Priority: normalhigh
Status: newassigned

comment:3 Changed 7 years ago by Mark Cooke

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 6 years ago by Ryan J Ollos

Status: assignednew

comment:5 Changed 5 years ago by Steffen Hoffmann

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 2 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.

Add Comment

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

Note: See TracTickets for help on using tickets.