add gravatars

This commit is contained in:
Matias Alejo Garcia 2014-11-11 16:53:30 -03:00
parent 546d0c181e
commit 99dd65ed07
6 changed files with 20 additions and 6 deletions

View File

@ -123,7 +123,7 @@ module.exports = function(grunt) {
'lib/file-saver/FileSaver.js',
'lib/socket.io-client/socket.io.js',
'lib/sjcl.js',
'lib/ios-imagefile-megapixel/megapix-image.js',
'lib/ios-imagefile-megapixel/megapix-image.js',
'lib/qrcode-decoder-js/lib/qrcode-decoder.min.js',
'lib/zeroclipboard/ZeroClipboard.min.js'
],
@ -139,7 +139,9 @@ module.exports = function(grunt) {
'lib/angular-foundation/mm-foundation.min.js',
'lib/angular-foundation/mm-foundation-tpls.min.js',
'lib/angular-gettext/dist/angular-gettext.min.js',
'lib/angular-load/angular-load.min.js'
'lib/angular-load/angular-load.min.js',
'lib/angular-gravatar/build/md5.min.js',
'lib/angular-gravatar/build/angular-gravatar.min.js'
// If you add libs here, remember to add it too to karma.conf
],
dest: 'lib/angularjs-all.js'

View File

@ -24,7 +24,8 @@
"ng-idle": "*",
"inherits": "~0.0.1",
"angular-load": "0.2.0",
"lodash": "~2.4.1"
"lodash": "~2.4.1",
"angular-gravatar": "*"
},
"resolutions": {
"angular": "=1.2.19"

View File

@ -23,6 +23,7 @@ var modules = [
'monospaced.qrcode',
'ngIdle',
'gettext',
'ui.gravatar',
'copayApp.filters',
'copayApp.services',
'copayApp.controllers',
@ -44,6 +45,15 @@ copayApp.config(function($sceDelegateProvider) {
]);
});
angular.module('ui.gravatar').config([
'gravatarServiceProvider', function(gravatarServiceProvider) {
gravatarServiceProvider.defaults = {
size : 35
};
// Use https endpoint
gravatarServiceProvider.secure = true;
}
]);
angular.module('copayApp.filters', []);
angular.module('copayApp.services', []);

View File

@ -88,6 +88,7 @@
"sinon": "^1.10.3",
"socket.io-client": "^1.0.6",
"travis-cov": "^0.2.5",
"uglifyify": "^1.2.3"
"uglifyify": "^1.2.3",
"angular-gravatar": "*"
}
}

View File

@ -1,6 +1,6 @@
<div ng-controller="CopayersController">
<div class="copay-box" ng-repeat="copayer in copayersList()">
<span ng-include="'views/includes/photo.html'"></span>
<img gravatar-src="'{{copayer.nick}}'" gravatar-size="35">
<div
class="ellipsis"
tooltip="ID: {{copayer.peerId}}"

View File

@ -17,7 +17,7 @@
<div class="menu" ng-mouseover="hoverIn()" ng-mouseleave="hoverOut()"
ng-click="hoverMenu = !hoverMenu">
<a class="dropdown ellipsis text-gray" ng-class="{'hover': hoverMenu}">
<span ng-include="'views/includes/photo.html'"></span>
<img gravatar-src="'{{username}}'" gravatar-size="35">
<span class="m15t">{{username}} </span>
<i class="icon-arrow-down size-16 vm"></i>
</a>