From a9543bd5570b7435b760a8eb3c8b457c889a5fca Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 6 Jan 2013 11:46:23 +0100 Subject: o Better front page. --- src/main/webapp/apps/app.js | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'src/main/webapp/apps/app.js') diff --git a/src/main/webapp/apps/app.js b/src/main/webapp/apps/app.js index c1ea158..3e01e9e 100644 --- a/src/main/webapp/apps/app.js +++ b/src/main/webapp/apps/app.js @@ -3,6 +3,35 @@ var directives = angular.module('core.directives', []); directives.directive('navbar', function () { return { restrict: 'E', - templateUrl: '/apps/core/navbar.html' + templateUrl: '/apps/core/navbar.html?noCache=' + noCache }; }); + +directives.directive('badge', function() { + return { + restrict: 'E', + scope: { + badgeDetail: '=badgeDetail' + }, + template: '{{badgeDetail.badge.name}}' + + '' + + ' awarded to ' + + '{{badgeDetail.person.name}}' + } +}); + +/* + + {{badge.name}} + + + + + + {{badge.createdDate | date:'medium'}} + +*/ \ No newline at end of file -- cgit v1.2.3