From 032ae804b15f630ee48055dfe46dea83d04b307f Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 8 May 2014 15:48:00 -0300 Subject: [PATCH] general avatar polishing --- index.html | 16 ++++++---------- js/directives.js | 12 ++++++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index f86ddb2a5..b4160f35a 100644 --- a/index.html +++ b/index.html @@ -123,19 +123,15 @@
- + > + /> {{c.nick}}
@@ -240,7 +236,7 @@
-
Select required number of signatures
+
Select required signatures
diff --git a/js/directives.js b/js/directives.js index 1df4026d4..bbda156d6 100644 --- a/js/directives.js +++ b/js/directives.js @@ -89,12 +89,16 @@ angular.module('copay.directives') }); } } - }).directive('confvideo', function($rootScope) { + }).directive('avatar', function($rootScope) { return { link: function(scope, element, attrs) { - var peer = attrs.peer; - element.addClass(($rootScope.wallet.getOnlinePeerIDs().indexOf(peer) != -1) ? 'online' : 'offline'); - var muted = $rootScope.getVideoMutedStatus(peer); + var peer = JSON.parse(attrs.peer) + var peerId = peer.peerId; + var nick = peer.nick; + element.addClass(($rootScope.wallet.getOnlinePeerIDs().indexOf(peerId) != -1) ? 'online' : 'offline'); + element.addClass('video-small'); + element.attr('title', peerId + (peerId == $rootScope.wallet.network.peerId?' (You)':'')); + var muted = $rootScope.getVideoMutedStatus(peerId); if (muted) { element.attr("muted", true); }