Merge pull request #1768 from matiu/feature/gravater

Add gravatars
This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-13 00:11:13 -03:00
commit 6985d21233
11 changed files with 66 additions and 26 deletions

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

@ -1,5 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('ProfileController', function($scope, $rootScope, $location, $modal, controllerUtils, backupService) {
$scope.username = $rootScope.iden.getName();
$scope.isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
$rootScope.title = 'Profile';