Ready to start development
diff --git a/mCordPortal/src/app/view/home/home.html b/mCordPortal/src/app/view/home/home.html
index f464ad2..8fed31a 100644
--- a/mCordPortal/src/app/view/home/home.html
+++ b/mCordPortal/src/app/view/home/home.html
@@ -1,56 +1 @@
-<!-- Home page partial html -->
-<div id="home" class="container">
- <div class="row">
- <div class="col-sm-6 hidden-xs">
- <img class="img-responsive img-rounded" src="/imgs/stanford.jpg">
- <p class="text-right small">© Wikipedia</p>
- </div>
- <div class="col-sm-6">
- <div class="bundle-title">
- <h2>Welcome!</h2>
- <h5>You are subscribed to the</h5>
- </div>
-
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h3 class="panel-title">{{bundle_name}}</h3>
- </div>
- <div class="panel-body">
- {{bundle_desc}}
- </div>
- </div>
-
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h3 class="panel-title">Users</h3>
- </div>
- <table class="table">
- <thead>
- <tr>
- <th></th>
- <th>Name</th>
- <th>Last Login</th>
- </tr>
- </thead>
- <tbody>
-
- <!--<pre>{{users | json}}</pre>-->
-
- <tr ng-repeat="user in users" class="animate-repeat" ng-show="users">
- <td class="avatar">
- <img class="img-responsive img-rounded" ng-src="{{'/imgs/' + user.icon_id + '.jpg'}}">
- </td>
- <td>{{user.name}}</td>
- <td>{{shared.userActivity[user.id]}}</td>
- </tr>
- <tr ng-show="!users">
- <td colspan="3">
- <div class="loader"></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
-</div>
\ No newline at end of file
+<ng-map center="[40.74, -74.18]"></ng-map>
\ No newline at end of file
diff --git a/mCordPortal/src/app/view/home/home.js b/mCordPortal/src/app/view/home/home.js
index 1e32c0f..6e6b4a7 100644
--- a/mCordPortal/src/app/view/home/home.js
+++ b/mCordPortal/src/app/view/home/home.js
@@ -17,22 +17,16 @@
(function () {
'use strict';
- angular.module('cordHome', [])
- .controller('CordHomeCtrl', function ($log, $scope, $cookies, cordConfig, SubscriberUsers) {
-
- $scope.page.curr = 'dashboard';
-
- $scope.bundle_name = cordConfig.bundles[cordConfig.activeBundle].name;
- $scope.bundle_desc = cordConfig.bundles[cordConfig.activeBundle].desc;
-
- SubscriberUsers.query({subscriberId: $cookies.get('subscriberId')}).$promise
- .then(function(res){
- $scope.users = res;
- })
- .catch(function(){
- $log.error('Problem with resource', SubscriberUsers);
- });
-
- $log.debug('Cord Home Ctrl has been created.');
+ angular.module('mCord')
+ .directive('eNodeMap', function () {
+ return {
+ restric: 'E',
+ scope: {},
+ controllerAs: 'vm',
+ templateUrl: 'app/view/home/home.html',
+ controller: function($log){
+ $log.debug('Cord Home Ctrl has been created.');
+ }
+ }
});
}());