Ticket #296 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Template for user listing

Reported by: tarmo Assigned to: gbalazs
Priority: critical Milestone: 0.3 Louhi
Component: generic Version:
Keywords: Cc:
Time spent: 3.0h Time remaining: 0h
Time planned: 6h

Description

(story #72) Create template macros (that can be reused wherever needed) for the following into the user info page:

User image:

  • shows the portrait of the user
  • is a link to the user info page

User name:

  • shows the user's full name
  • is a link to the user info page

User info:

  • shows the portrait (user image macro)
  • information about user:
    • (user name macro)
    • IM info
    • home page info

Change History

04/21/06 11:16:13 changed by gbalazs

  • owner changed from anonymous to gbalazs.
  • status changed from new to assigned.
  • tt_remaining changed.
  • tt_spent changed.
  • tt_estimated set to 6h.

04/21/06 13:47:25 changed by gbalazs

  • status changed from assigned to closed.
  • tt_spent set to 3.0h.
  • resolution set to fixed.
  • tt_remaining set to 0h.

(In [185]) close #296 spent 3h

If you want to call these macros, you need to declare a variable called user_id in the block that contains the desired macro like this:

<div metal:fill-slot="main" style="width:100%"
                tal:define="user_id string:test">
            <div metal:use-macro="here/usermacro/macros/user_info">
                USERNAME
            </div>
</div>

I also added 2 more methods into the ToolboxUserTool? to handle all of the userinfo related stuff there, and modified the the author.cpt to use these new methods.