started on avatar directive
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name umbraco.directives:login
|
||||
* @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'
|
||||
};
|
||||
}
|
||||
|
||||
angular.module('umbraco.directives').directive("umbAvatar", avatarDirective);
|
||||
@@ -0,0 +1,3 @@
|
||||
<a href="#" title="{{name}}">
|
||||
<img ng-src="{{email}}" />
|
||||
</a>
|
||||
@@ -1,17 +1,16 @@
|
||||
<div id="leftcolumn" ng-controller="NavigationController" ng-mouseleave="hideTree()">
|
||||
<div id="applications" ng-class="{faded:ui.stickyNavigation}">
|
||||
<ul class="sections">
|
||||
|
||||
<li class="avatar">
|
||||
<a href="#" title="{{user.name}}">
|
||||
<img ng-src="{{user.avatar}}" />
|
||||
</a>
|
||||
<umb-avatar name="{{user.name}}" email="{{user.email}}"></umb-avatar>
|
||||
</li>
|
||||
|
||||
<li ng-repeat="section in sections">
|
||||
<a href="#/{{section.alias}}"
|
||||
ng-click="changeSection(section.alias)"
|
||||
ng-mouseenter="showTree(section.alias)"
|
||||
prevent-default>
|
||||
ng-click="changeSection(section.alias)"
|
||||
ng-mouseenter="showTree(section.alias)"
|
||||
prevent-default>
|
||||
<i class="{{section.cssclass}}"></i><span>{{section.name}}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user