Skip to content
Snippets Groups Projects
Commit fe044cfd authored by Benoit Lavenier's avatar Benoit Lavenier Committed by GitHub
Browse files

Merge pull request #234 from CotonnecC/master

Add stepMax and xpercent resolve #209
parents 4b4f44b0 63acf2e9
Branches
No related tags found
No related merge requests found
......@@ -149,7 +149,9 @@
"SIG_QTY_RULE": "Required certifications<br/>to become a member",
"SIG_STOCK": "Maximal number of certifications<br/>sent by member",
"SIG_PERIOD": "Minimum delay between 2 certifications<br/>of a same issuer.",
"SIG_WINDOW": "Maximum delay a certification can wait<br/>before being expired for non-writing."
"SIG_WINDOW": "Maximum delay a certification can wait<br/>before being expired for non-writing.",
"STEP_MAX": "Maximum distance between<br/>each WoT member and a newcomer.",
"XPERCENT":"Minimum percent of sentries<br />to reach to match the distance rule"
}
},
"PEER": {
......
......@@ -149,7 +149,9 @@
"SIG_QTY_RULE": "Nombre de certifications requises<br/>pour devenir membre",
"SIG_STOCK": "Nombre maximal de certifications émises<br/>par membre",
"SIG_PERIOD": "Délai minimal d'attente entre 2 certifications<br/>successives émises par une même personne.",
"SIG_WINDOW": "Délai maximal d'attente avant<br/>prise en compte d'une certification"
"SIG_WINDOW": "Délai maximal d'attente avant<br/>prise en compte d'une certification",
"STEP_MAX": "Distance maximale dans la toile de confiance <br /> entre chaque membre et un nouvel entrant.",
"XPERCENT":"Pourcentage minimum de sentinelle<br />à atteindre pour respecter la règle de distance."
}
},
"PEER": {
......
......@@ -113,6 +113,8 @@ function CurrencyViewController($scope, $q, $translate, $timeout, BMA, UIUtils,
$scope.difficulty = 0;
$scope.Nprev = 0;
$scope.screen = UIUtils.screen;
$scope.stepMax = 0;
$scope.xpercent = 0;
$scope.$on('$ionicView.enter', function(e, state) {
$translate(['COMMON.DATE_PATTERN'])
......@@ -195,6 +197,8 @@ function CurrencyViewController($scope, $q, $translate, $timeout, BMA, UIUtils,
$scope.sigStock = json.sigStock;
$scope.sigWindow = json.sigWindow;
$scope.sigPeriod = json.sigPeriod;
$scope.stepMax = json.stepMax;
$scope.xpercent = json.xpercent;
}),
// Get the current block informations
......
......@@ -18,6 +18,12 @@
<span class="badge badge-stable">{{difficulty | formatInteger}}</span>
</ion-item>
<ion-item class="item-icon-left">
<i class="icon ion-steam"></i>
<span translate>CURRENCY.VIEW.XPERCENT</span>
<span class="badge badge-stable">{{xpercent}}</span>
</ion-item>
<div id="helptip-currency-peers"
class="item item-divider item-icon-right">
{{'PEER.PEERS'|translate}}
......
......@@ -108,4 +108,11 @@
<span translate>CURRENCY.VIEW.SIG_WINDOW</span>
<span class="badge badge-stable">{{sigWindow | formatDuration}}</span>
</ion-item>
<ion-item class="item-icon-left">
<i class="icon ion-steam"></i>
<span translate>CURRENCY.VIEW.STEP_MAX</span>
<span class="badge badge-stable">{{stepMax}}</span>
</ion-item>
</ion-list>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment