From 841c8d69fcfbf1277127d6bd5cc41f1c8825fdaa Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 16 Oct 2015 14:30:23 +0200 Subject: [PATCH] removes unused avatar directive --- .../directives/html/umbavatar.directive.js | 27 ------------------- .../src/views/directives/umb-avatar.html | 3 --- 2 files changed, 30 deletions(-) delete mode 100644 src/Umbraco.Web.UI.Client/src/common/directives/html/umbavatar.directive.js delete mode 100644 src/Umbraco.Web.UI.Client/src/views/directives/umb-avatar.html diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/html/umbavatar.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/html/umbavatar.directive.js deleted file mode 100644 index 5979d07095..0000000000 --- a/src/Umbraco.Web.UI.Client/src/common/directives/html/umbavatar.directive.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* @ngdoc directive -* @name umbraco.directives.directive:umbAvatar -* @restrict E -**/ -function avatarDirective() { - return { - restrict: "E", // restrict to an element - replace: true, // replace the html element with the template - templateUrl: 'views/directives/umb-avatar.html', - scope: { - name: '@', - email: '@', - hash: '@' - }, - link: function(scope, element, attr, ctrl) { - - scope.$watch("hash", function (val) { - //set the gravatar url - scope.gravatar = "https://www.gravatar.com/avatar/" + val + "?s=40"; - }); - - } - }; -} - -angular.module('umbraco.directives').directive("umbAvatar", avatarDirective); diff --git a/src/Umbraco.Web.UI.Client/src/views/directives/umb-avatar.html b/src/Umbraco.Web.UI.Client/src/views/directives/umb-avatar.html deleted file mode 100644 index b89bd2065a..0000000000 --- a/src/Umbraco.Web.UI.Client/src/views/directives/umb-avatar.html +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file