From 567363a8b8bf88524c268d7becf28d5ef1318647 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 28 Oct 2014 09:40:35 -0300 Subject: [PATCH 1/2] fix top-bar. no test when grunt watch --- Gruntfile.js | 4 ---- js/controllers/head.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 421548ece..807fc88a0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -83,10 +83,6 @@ module.exports = function(grunt) { config: { files: ['config.js'], tasks: ['shell:dev', 'concat:main'] - }, - test: { - files: ['test/**/*.js', 'js/**/*.js'], - tasks: ['mochaTest'] } }, mochaTest: { diff --git a/js/controllers/head.js b/js/controllers/head.js index ac18238c6..32d9e906d 100644 --- a/js/controllers/head.js +++ b/js/controllers/head.js @@ -2,7 +2,7 @@ angular.module('copayApp.controllers').controller('HeadController', function($scope, $rootScope, notification, controllerUtils) { - $scope.username = $rootScope.iden.profile.email; + $scope.username = $rootScope.iden ? $rootScope.iden.fullName || $rootScope.iden.email : 'undefined'; $scope.hoverMenu = false; $scope.hoverIn = function(){ From c8614b76c2d5d35d97a387cdc525dc21c248ae6d Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 28 Oct 2014 12:37:15 -0300 Subject: [PATCH 2/2] Sidebar support for small devices --- css/src/mobile.css | 9 ++++ index.html | 7 ++- js/controllers/head.js | 3 ++ js/controllers/sidebar.js | 4 ++ views/includes/sidebar-mobile.html | 81 ++++++++++++++++++++++++------ views/includes/sidebar.html | 1 - 6 files changed, 84 insertions(+), 21 deletions(-) diff --git a/css/src/mobile.css b/css/src/mobile.css index 7de308022..a51ae68c0 100644 --- a/css/src/mobile.css +++ b/css/src/mobile.css @@ -185,5 +185,14 @@ margin-bottom: 50px; } + .founds { + color: #8597A7; + } + + .side-nav.wallets { + padding: 0; + height: auto; + } + } diff --git a/index.html b/index.html index 1546191cf..74700d222 100644 --- a/index.html +++ b/index.html @@ -52,11 +52,10 @@ + - - - -
- - - +
-
-
-

- {{$root.wallet.getName()}} - {{$root.wallet.requiredCopayers}}-of-{{$root.wallet.totalCopayers}} -

-
- +
+
+ {{$root.wallet.getName()}} + {{$root.wallet.requiredCopayers}}-of-{{$root.wallet.totalCopayers}} + + + + + + + + + +
+ +
+ - {{totalBalance || 0 + {{totalBalance || 0 |noFractionNumber}} {{$root.wallet.settings.unitName}}
-
+
{{'Locked'|translate}} @@ -32,16 +76,21 @@  
+
-