diff --git a/README.md b/README.md index 6a584a0a97a0a591ca317302e656fa8ac9072f23..43fb82dd717e85e5323b83b344e93e83ce5626be 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ To build Cesium, you will have to: > or alternative: `ionic serve` -### Best pratices for development +### Best practices for development Cesium could be run on phone devices. Please read [performance tips on AgularJS + Ionic ](http://julienrenaux.fr/2015/08/24/ultimate-angularjs-and-ionic-performance-cheat-sheet/) before starting to contribute. diff --git a/package.json b/package.json index 377323bb368aa8fecb398f1276d2e82da785c945..113a0653e60f2145b9ba07424270017e63054e3a 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,9 @@ "ionic": "^1.7.16", "ionic-plugin-keyboard": "^2.2.1", "node-sass": "^3.3.3", - "phonegap-plugin-barcodescanner": "git+https://github.com/phonegap/phonegap-plugin-barcodescanner.git" + "phonegap-plugin-barcodescanner": "git+https://github.com/phonegap/phonegap-plugin-barcodescanner.git", + "moment": "~2.19.3", + "numeral": "1.5.3" }, "devDependencies": { "cordova-uglify": "^0.2.3", diff --git a/www/templates/home/home.html b/www/templates/home/home.html index 73d43586a38d5e7031be55642dc6e011c3c879c3..6e9895a8e257449f2f5c58c1bca8773b5a5b4f30 100644 --- a/www/templates/home/home.html +++ b/www/templates/home/home.html @@ -84,7 +84,10 @@ <button type="button" class="button button-block button-calm button-raised icon icon-left ion-wand ink-dark visible-xs visible-sm" - ng-click="showJoinModal()" ng-show="!login" translate>LOGIN.CREATE_ACCOUNT</button> + ng-click="showJoinModal()" ng-if="!login" translate>LOGIN.CREATE_ACCOUNT</button> + <button type="button" + class="button button-block button-assertive button-raised icon icon-left ion-wand ink-dark visible-xs visible-sm" + ng-click="logout()" ng-if="login" translate>COMMON.BTN_LOGOUT</button> <div class="text-center no-padding visible-xs stable">