31 lines
1.5 KiB
Plaintext
31 lines
1.5 KiB
Plaintext
section.profile-contacts
|
|
div(ng-if="vm.contacts === undefined")
|
|
div.spin
|
|
img(src="/#{v}/svg/spinner-circle.svg", alt="Loading...")
|
|
|
|
div.empty-tab(ng-if="vm.contacts && !vm.contacts.size")
|
|
include ../../../svg/hide.svg
|
|
|
|
div(ng-if="!vm.isCurrentUser")
|
|
p(translate="USER.PROFILE.CONTACTS_EMPTY", translate-values="{username: vm.user.get('full_name_display')}")
|
|
div(ng-if="vm.isCurrentUser")
|
|
p(translate="USER.PROFILE.CURRENT_USER_CONTACTS_EMPTY")
|
|
p(translate="USER.PROFILE.CURRENT_USER_CONTACTS_EMPTY_EXPLAIN")
|
|
//-
|
|
nav.profile-contact-filters
|
|
a.active(href="", title="No Filter") all
|
|
a(href="", title="Only show your team") team
|
|
a(href="", title="Only show people you follow") following
|
|
a(href="", title="Only show people follow you") followers
|
|
|
|
div.list-itemtype-user(tg-repeat="contact in ::vm.contacts")
|
|
a.list-itemtype-avatar(tg-nav="user-profile:username=contact.get('username')", title="{{::contact.get('name')}}")
|
|
img(ng-src="{{::contact.get('photo')}}", alt="{{::contact.get('full_name')}}")
|
|
|
|
div.list-itemtype-user-data
|
|
h2
|
|
a(tg-nav="user-profile:username=contact.get('username')", title="{{::contact.get('full_name_display') }}") {{::contact.get('full_name_display')}}
|
|
|
|
p {{::contact.get('roles').join(", ")}}
|
|
p.extra-info(ng-if="contact.get('bio')") {{::contact.get('bio')}}
|