Ticket #5268 (closed Bug: fixed)

Opened 6 years ago

Last modified 6 years ago

Username link in personal bar needs to point to the profile + have fullname

Reported by: limi Owned by:
Priority: major Milestone: 2.1.3
Component: Users/Groups Keywords:
Cc:

Description

Username link in personal bar needs to point to the profile + have fullname. With the new UI added to the profile page, this is the logical way of accessing and editing your personal settings.

Change History

comment:1 Changed 6 years ago by optilude

  • Status changed from new to closed
  • Resolution set to fixed

(In [9157]) Making the personal-bar point to the author profile. Fixes #5268

comment:2 Changed 6 years ago by limi

  • Status changed from closed to reopened
  • Resolution fixed deleted

Halfway fixed. ;)

It also needs to show the full name of the person logged in - should be simple, just re-opening so we don't forget. :)

comment:3 Changed 6 years ago by limi

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [9161]) Making the full name of the user show up in the personal bar; this fixes #5268.

Somebody, can we please, please, please add a convenience method on the relevant tool to get the full name with fallback to username if there is none?

Doing the following dance every time you want to get the full name of the person in a template is insane:

<p tal:define="author python:mtool.getMemberInfo(user.getId())">

<span tal:replace="python:author and authorfullname? or user.getId()"> Fullname with fallback to username </span>

</p>

Poi has a method getNiceName() that does this, I think. Backport? :)

Note: See TracTickets for help on using tickets.