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.css | 6 +-- src/main/webapp/apps/app.js | 31 ++++++++++++- src/main/webapp/apps/core/navbar.html | 15 +++---- src/main/webapp/apps/frontPageApp/frontPage.html | 55 ++++++++---------------- 4 files changed, 57 insertions(+), 50 deletions(-) (limited to 'src/main/webapp') diff --git a/src/main/webapp/apps/app.css b/src/main/webapp/apps/app.css index 761b765..5ffd104 100644 --- a/src/main/webapp/apps/app.css +++ b/src/main/webapp/apps/app.css @@ -3,9 +3,9 @@ bronze ii = #a67d3d */ -.badge-level-1 { background-color: #a67d3d; } -.badge-level-2 { background-color: silver; } -.badge-level-3 { background-color: #ffd700; } +.badge-level-1 { background-color: #a67d3d; color: #000000 } +.badge-level-2 { background-color: silver; color: #000000 } +.badge-level-3 { background-color: #ffd700; color: #000000 } #content { background-color: #ffffff; 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 diff --git a/src/main/webapp/apps/core/navbar.html b/src/main/webapp/apps/core/navbar.html index 4ae715b..eb1f798 100644 --- a/src/main/webapp/apps/core/navbar.html +++ b/src/main/webapp/apps/core/navbar.html @@ -1,19 +1,14 @@ -- cgit v1.2.3