2014-11-11 11:01:33 -08:00
< div class = "backup" ng-controller = "ProfileController" >
2014-10-27 12:13:06 -07:00
< h1 class = "hide-for-large-up" > {{$root.title}}< / h1 >
2014-11-11 11:01:33 -08:00
2014-11-05 12:33:51 -08:00
< div class = "row" >
2014-11-11 11:01:33 -08:00
< div class = "large-12 columns" >
2014-11-12 19:07:33 -08:00
< div class = "panel" >
< div class = "row" >
< div class = "large-2 medium-2 columns text-center" >
< a class = "photo-container profile" href = "https://en.gravatar.com/" ng-init = "isHover=0" ng-mouseenter = "isHover=1" ng-mouseleave = "isHover=0" target = "_blank" >
< img ng-show = "!isHover" gravatar-src = "'{{username}}'" gravatar-size = "80" >
< img ng-show = "isHover" src = "img/change-avatar.png" with = "80" >
< / a >
2014-11-11 11:01:33 -08:00
< / div >
2014-11-12 19:07:33 -08:00
< div class = "large-7 medium-7 columns" >
< h2 > Backup Profile< / h2 >
< p translate class = "text-gray" > It's important to backup your profile so that you can recover it in case of disaster. The backup will include all your profile's wallets< / p >
< / div >
< div class = "large-3 medium-3 columns" >
< a translate class = "button primary m0" ng-click = "downloadProfileBackup()"
ng-show="!isSafari">Backup profile< / a >
< a translate class = "button primary m0" ng-click = "viewProfileBackup()"
ng-show="isSafari & & !hideViewProfileBackup">View profile backup< / a >
< / div >
< / div >
< div class = "row" ng-show = "backupProfilePlainText" >
< div class = "large-12 columns" >
< textarea rows = "5" > {{backupProfilePlainText}}< / textarea >
< div class = "show-for-large-up" >
< span translate class = "size-12" > Copy to clipboard< / span > < span
class="btn-copy" clip-copy="backupProfilePlainText"> < / span >
< / div >
< div class = "hide-for-large-up" >
< span translate class = "size-12" > Copy this text as it is in a safe place (notepad or email)< / span >
< / div >
2014-11-11 11:01:33 -08:00
< / div >
< / div >
< / div >
2014-10-22 11:03:28 -07:00
< / div >
< / div >
2014-11-10 11:41:07 -08:00
< div class = "line-dashed-h m20b" > < / div >
< div class = "row" ng-init = "getWallets()" >
< div class = "large-12 columns" >
2014-11-11 11:01:33 -08:00
< h2 > Manage wallets< / h2 >
2014-11-10 11:41:07 -08:00
< table width = "100%" role = "grid" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Status< / th >
< th > Balance< / th >
< th > Actions< / th >
< / tr >
< / thead >
< tbody >
< tr
data-ng-repeat="item in wallets | orderBy:'name'"
2014-11-11 05:59:05 -08:00
ng-init="isReady = item.isReady();
2014-11-11 11:53:57 -08:00
networkName = item.getNetworkName()"
ng-class="{'deleting':loading==item.id}">
2014-11-10 11:41:07 -08:00
< td > {{item.name || item.id }}< / td >
2014-11-11 05:59:05 -08:00
< td width = "120" > {{item.requiredCopayers}} of {{item.totalCopayers}} - {{networkName}}< / td >
< td width = "200" > {{isReady ? 'Complete' : 'Waiting for copayers...'}}< / td >
< td width = "200" >
2014-11-10 11:41:07 -08:00
< span ng-if = "!isReady" > -< / span >
< span ng-if = "isReady" >
{{item.balanceInfo.totalBalance || 0 |noFractionNumber}} {{item.settings.unitName}}
< / span >
< / td >
2014-11-12 12:44:50 -08:00
< td width = "90" class = "text-center" >
2014-11-11 11:53:57 -08:00
< div ng-show = "loading != item.id" >
2014-11-12 12:44:50 -08:00
< a title = "Download Backup" class = "text-gray" ng-click = "downloadWalletBackup(item)"
ng-show="!isSafari">< i class = "fi-download size-18 m10r" > < / i > < / a >
2014-11-11 11:53:57 -08:00
< a title = "View Backup" ng-click = "viewWalletBackup(item)"
ng-show="isSafari">< i class = "fi-eye" > < / i > < / a >
2014-11-12 12:44:50 -08:00
< a title = "Delete Wallet" ng-really-message = "{{'Are you sure you want to delete the wallet'}} {{(item.name || item.id)}}"
2014-11-11 11:53:57 -08:00
ng-really-click="deleteWallet(item)"
2014-11-12 12:44:50 -08:00
ng-show="loading != item.id">< i class = "fi-trash text-gray size-18" > < / i > < / a >
2014-11-11 11:53:57 -08:00
< / div >
2014-11-10 11:41:07 -08:00
< span ng-show = "loading == item.id" > < i class = "fi-bitcoin-circle icon-rotate spinner" > < / i > < / span >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
2014-11-11 11:01:33 -08:00
< / div >
2014-10-11 13:26:10 -07:00
< / div >