From 46cc69153482a6138e1057ece9cec836dd95451e Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Mon, 8 Jun 2015 11:47:06 +0200 Subject: Re-factor the avatar system and support avatar uploads The user is now able to upload an avatar, and pick one in a list. This functionality should eventually be abstracted in a community package but we still need to work on a great public API. We rely on collectionFS to manage uploaded avatars. We also removed bengott:avatar which was trying to solve the wrong problem (namely displaying the avatar, which is as simple as displaying an image), and not a avatar system as it should be. Gravatar support is coming (back) soon. We may also want to have a list of default fun avatars the user can choose instead of uploading its own one. --- client/components/cards/details.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/components/cards/details.jade') diff --git a/client/components/cards/details.jade b/client/components/cards/details.jade index 5ee962cd..dc3d3dc3 100644 --- a/client/components/cards/details.jade +++ b/client/components/cards/details.jade @@ -27,7 +27,7 @@ template(name="cardDetails") .card-details-item.card-details-item-members h3 {{_ 'members'}} each members - +userAvatar(userId=this size="small" cardId=../_id) + +userAvatar(userId=this cardId=../_id) a.member.add-member.card-details-item-add-button.js-add-members i.fa.fa-plus @@ -86,7 +86,7 @@ template(name="cardMembersPopup") each board.members li.item(class="{{#if isCardMember}}active{{/if}}") a.name.js-select-member(href="#") - +userAvatar(user=user size="small") + +userAvatar(userId=user._id) span.full-name = user.profile.name | ({{ user.username }}) -- cgit v1.2.3-1-g7c22