summaryrefslogtreecommitdiffstats
path: root/client/components/users/userAvatar.jade
blob: a76c46179081bf48bb6964ad82bc0a1913625efe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
template(name="userAvatar")
  .member(class="{{class}} {{# if draggable }}js-member{{else}}js-member-on-card-menu{{/if}}"
    title="{{userData.profile.name}} ({{userData.username}})")
    +avatar(user=userData size=size)
    if showStatus
      span.member-presence-status(class=presenceStatusClassName)
      span.member-type(class=memberType)


template(name="userPopup")
  .board-member-menu
    .mini-profile-info
      +userAvatar(user=user)
        .info
          h3.bottom
            a.js-profile(href="{{ pathFor route='Profile' username=user.username }}")= user.profile.name
            p.quiet.bottom @{{ user.username }}

template(name="memberName")
  a.inline-object.js-show-mem-menu(href="{{ pathFor route='Profile' username=user.username }}")
    = user.profile.name
    if username
      | ({{ user.username }})