copay/views/profile.html

138 lines
5.5 KiB
HTML
Raw Normal View History

2014-12-01 12:21:39 -08:00
<div class="backup" ng-controller="ProfileController" ng-init="init()">
2014-11-26 13:50:58 -08:00
<div class="row hide-for-large-up">
<div class="large-12 medium-12 small-12 columns">
<h1>{{$root.title}}</h1>
</div>
</div>
<div class="row">
<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>
</div>
2014-11-12 19:07:33 -08:00
<div class="large-7 medium-7 columns">
2014-11-21 07:00:24 -08:00
<h2>Profile <span class="size-12 text-warning" ng-if="$root.iden.backupNeeded"> [ Needs Backup ]</span></h2>
2014-11-12 19:07:33 -08:00
<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 && !isCordova">Backup profile</a>
2014-11-12 19:07:33 -08:00
<a translate class="button primary m0" ng-click="viewProfileBackup()"
ng-show="isSafari || isCordova && !hideViewProfileBackup">View profile backup</a>
2014-11-12 19:07:33 -08:00
</div>
</div>
<div class="row" ng-show="backupProfilePlainText">
<div class="large-12 columns">
<textarea class="show-for-large-up" readonly rows="5">{{backupProfilePlainText}}</textarea>
<textarea class="hide-for-large-up" rows="5">{{backupProfilePlainText}}</textarea>
<div translate class="size-12 m10t text-gray text-right">
Copy this text as it is in a safe place (notepad or email)
2014-11-12 19:07:33 -08:00
</div>
</div>
</div>
</div>
2014-10-22 11:03:28 -07:00
</div>
</div>
2014-12-01 07:13:11 -08:00
2014-11-10 11:41:07 -08:00
<div class="line-dashed-h m20b"></div>
2014-12-01 12:21:39 -08:00
<div class="row" ng-init="setWallets()">
2014-11-10 11:41:07 -08:00
<div class="large-12 columns">
2014-12-09 09:37:12 -08:00
<h2>Manage wallets</h2>
<div class="box-notification" ng-show="success">
<div class="box-icon success">
<i class="fi-check size-24"></i>
</div>
<span class="text-success size-14">
{{success|translate}}
</span>
<a href ng-click="success=false" class="close-notification success">&#215;</a>
</div>
2014-12-09 07:48:03 -08:00
<table class="manage-wallets">
2014-11-14 09:00:23 -08:00
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="hide-for-small-only">Status</th>
2014-12-09 07:48:03 -08:00
<th class="hide-for-small-only">Balance</th>
<th class="hide-for-small-only">Approx Size</th>
2014-11-14 09:00:23 -08:00
</tr>
</thead>
<tbody>
<tr
data-ng-repeat="item in wallets | orderBy:'name'"
2014-12-09 07:48:03 -08:00
ng-init="isComplete = item.isComplete(); networkName = item.getNetworkName()"
2014-12-09 14:29:56 -08:00
ng-click="showWalletInfo(item)">
2014-12-09 07:48:03 -08:00
<td>
<span ng-show="loading == item.id"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
<span ng-show="loading != item.id">
{{item.name || item.id }}
</span>
</td>
2014-11-14 09:00:23 -08:00
<td>{{item.requiredCopayers}} of {{item.totalCopayers}} - {{networkName}}</td>
<td class="hide-for-small-only">
2014-11-29 19:31:17 -08:00
{{isComplete ? 'Complete' : 'Waiting for copayers...'}}
</td>
2014-12-09 07:48:03 -08:00
<td class="hide-for-small-only">
2014-11-29 19:31:17 -08:00
<span ng-if="!isComplete">-</span>
<span ng-if="isComplete">
2014-12-01 00:24:19 -08:00
{{item.balanceInfo.totalBalance || 0}} {{item.settings.unitName}}
2014-11-14 09:00:23 -08:00
</span>
</td>
2014-12-09 07:48:03 -08:00
<td class="hide-for-small-only">
2014-11-30 06:08:51 -08:00
<span>
2014-12-01 12:21:39 -08:00
{{item.kb}} kB
2014-12-01 14:17:22 -08:00
<span ng-if="item.usage">({{item.usage}}%) </span>
2014-11-30 06:08:51 -08:00
</span>
</td>
</tr>
</tbody>
</table>
2014-12-01 12:21:39 -08:00
<div class="size-12">
<div ng-if="perItem">
<p> Your current Insight server usage quotas are: {{perItem}}kB per walelt and up to {{nrWallets}} wallets.
</div>
<div ng-if="$root.needsEmailConfirmation">
<p> <i class="fi-alert"></i> Confirming for email with increase your storage usage limits.
</div>
</div>
2014-11-10 11:41:07 -08:00
</div>
</div>
2014-12-01 07:13:11 -08:00
<div class="line-dashed-h m20b"></div>
<div class="m20b row oh">
2014-12-01 07:13:11 -08:00
<div class="large-12 columns">
<a class="small left button-setup" ng-click="hideAdv=!hideAdv">
2014-12-01 07:13:11 -08:00
<i class="fi-widget m3r"></i>
<span translate ng-hide="!hideAdv">Show</span>
<span translate ng-hide="hideAdv">Hide</span>
<span translate>advanced options</span>
<i ng-if="hideAdv" class="icon-arrow-down4"></i>
<i ng-if="!hideAdv" class="icon-arrow-up4"></i>
</a>
</div>
</div>
<div ng-hide="hideAdv" class="row">
<div class="large-12 columns">
<div class="panel">
<h2><i class="fi-minus-circle m10r"></i>
<span translate>Delete Profile</span>
</h2>
<p translate class="text-gray">Permanently delete this profile and all its wallets. WARNING: this action cannot be reversed.</p>
<a translate class="button warning m0" ng-really-message="{{'Are you sure you want to delete this profile?' | translate}}"
ng-really-click="deleteProfile()">Delete Profile
</a>
2014-12-01 07:13:11 -08:00
</div>
</div>
</div>
</div>