CORD GUI -- Bundle Icons added to git. Login/logout functionality added.
Change-Id: I291b8e3106db3f47c5a9d9b4d06403b35e53d635
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.css b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.css
index 8f5002c..addb453 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.css
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.css
@@ -23,7 +23,7 @@
width: 42%;
}
#home div.move-down {
- margin-top: 10%;
+ margin-top: 5%;
}
#home div.image-holder {
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.html b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.html
index a51ab18..bdab3fc 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.html
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.html
@@ -7,6 +7,7 @@
<div class="main-right">
<div class="move-down">
<div class="bundle-title">
+ <h4>Welcome {{shared.login}}!</h4>
<h5>You are subscribed to the</h5>
<h3>{{bundle}}</h3>
</div>
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.js b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.js
index dc027e6..72b37a5 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.js
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.js
@@ -20,7 +20,9 @@
var urlSuffix = '/rs/dashboard';
function randomDate(start, end) {
- return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()));
+ return new Date(
+ start.getTime() + Math.random() * (end.getTime() - start.getTime())
+ );
}
angular.module('cordHome', [])
@@ -38,12 +40,13 @@
if ($.isEmptyObject($scope.shared.userActivity)) {
$scope.users.forEach(function (user) {
- var date = randomDate(new Date(2015, 0, 1), new Date());
+ var date = randomDate(new Date(2015, 0, 1),
+ new Date());
- $scope.shared.userActivity[user.id] = $filter('date')(date, 'mediumTime');
+ $scope.shared.userActivity[user.id] =
+ $filter('date')(date, 'mediumTime');
});
}
-
},
// error
function () {