Skip to content
Snippets Groups Projects
Commit dbc5f121 authored by CamilleC's avatar CamilleC
Browse files

add stepMax and xpercent resolve #209

parent 8869eaa0
No related branches found
No related tags found
1 merge request!234Add stepMax and xpercent resolve #209
...@@ -149,7 +149,9 @@ ...@@ -149,7 +149,9 @@
"SIG_QTY_RULE": "Required certifications<br/>to become a member", "SIG_QTY_RULE": "Required certifications<br/>to become a member",
"SIG_STOCK": "Maximal number of certifications<br/>sent by member", "SIG_STOCK": "Maximal number of certifications<br/>sent by member",
"SIG_PERIOD": "Minimum delay between 2 certifications<br/>of a same issuer.", "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": { "PEER": {
......
...@@ -149,7 +149,9 @@ ...@@ -149,7 +149,9 @@
"SIG_QTY_RULE": "Nombre de certifications requises<br/>pour devenir membre", "SIG_QTY_RULE": "Nombre de certifications requises<br/>pour devenir membre",
"SIG_STOCK": "Nombre maximal de certifications émises<br/>par 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_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": { "PEER": {
......
...@@ -112,7 +112,10 @@ function CurrencyViewController($scope, $q, $translate, $timeout, BMA, UIUtils, ...@@ -112,7 +112,10 @@ function CurrencyViewController($scope, $q, $translate, $timeout, BMA, UIUtils,
$scope.medianTime = 0; $scope.medianTime = 0;
$scope.difficulty = 0; $scope.difficulty = 0;
$scope.Nprev = 0; $scope.Nprev = 0;
$scope.stepMax = 0;
$scope.screen = UIUtils.screen; $scope.screen = UIUtils.screen;
$scope.stepMax = 0;
$scope.xpercent = 0;
$scope.$on('$ionicView.enter', function(e, state) { $scope.$on('$ionicView.enter', function(e, state) {
$translate(['COMMON.DATE_PATTERN']) $translate(['COMMON.DATE_PATTERN'])
...@@ -195,6 +198,8 @@ function CurrencyViewController($scope, $q, $translate, $timeout, BMA, UIUtils, ...@@ -195,6 +198,8 @@ function CurrencyViewController($scope, $q, $translate, $timeout, BMA, UIUtils,
$scope.sigStock = json.sigStock; $scope.sigStock = json.sigStock;
$scope.sigWindow = json.sigWindow; $scope.sigWindow = json.sigWindow;
$scope.sigPeriod = json.sigPeriod; $scope.sigPeriod = json.sigPeriod;
$scope.stepMax = json.stepMax;
$scope.xpercent = json.xpercent;
}), }),
// Get the current block informations // Get the current block informations
......
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
<span class="badge badge-stable">{{difficulty | formatInteger}}</span> <span class="badge badge-stable">{{difficulty | formatInteger}}</span>
</ion-item> </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" <div id="helptip-currency-peers"
class="item item-divider item-icon-right"> class="item item-divider item-icon-right">
{{'PEER.PEERS'|translate}} {{'PEER.PEERS'|translate}}
......
...@@ -97,15 +97,22 @@ ...@@ -97,15 +97,22 @@
<span class="badge badge-stable">{{sigStock}}</span> <span class="badge badge-stable">{{sigStock}}</span>
</ion-item> </ion-item>
<ion-item class="item-icon-left"> <ion-item class="item-icon-left">
<i class="icon ion-clock"></i> <i class="icon ion-clock"></i>
<span translate>CURRENCY.VIEW.SIG_PERIOD</span> <span translate>CURRENCY.VIEW.SIG_PERIOD</span>
<span class="badge badge-stable">{{sigPeriod | formatDuration}}</span> <span class="badge badge-stable">{{sigPeriod | formatDuration}}</span>
</ion-item> </ion-item>
<ion-item class="item-icon-left"> <ion-item class="item-icon-left">
<i class="icon ion-clock"></i> <i class="icon ion-clock"></i>
<span translate>CURRENCY.VIEW.SIG_WINDOW</span> <span translate>CURRENCY.VIEW.SIG_WINDOW</span>
<span class="badge badge-stable">{{sigWindow | formatDuration}}</span> <span class="badge badge-stable">{{sigWindow | formatDuration}}</span>
</ion-item> </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> </ion-list>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment