support show trackers count in setting page
This commit is contained in:
parent
3094b8ffa4
commit
54f02804d6
|
@ -76,6 +76,7 @@
|
||||||
"Loading": "正在加载...",
|
"Loading": "正在加载...",
|
||||||
"More Than One Day": "超过1天",
|
"More Than One Day": "超过1天",
|
||||||
"Unknown": "未知",
|
"Unknown": "未知",
|
||||||
|
"Total Count": "共计",
|
||||||
"Bytes": "字节",
|
"Bytes": "字节",
|
||||||
"Minutes": "分",
|
"Minutes": "分",
|
||||||
"Seconds": "秒",
|
"Seconds": "秒",
|
||||||
|
|
|
@ -197,7 +197,9 @@
|
||||||
type: 'boolean'
|
type: 'boolean'
|
||||||
},
|
},
|
||||||
'bt-exclude-tracker': {
|
'bt-exclude-tracker': {
|
||||||
type: 'text'
|
type: 'text',
|
||||||
|
split: ',',
|
||||||
|
showCount: true
|
||||||
},
|
},
|
||||||
'bt-external-ip': {
|
'bt-external-ip': {
|
||||||
type: 'string'
|
type: 'string'
|
||||||
|
@ -244,7 +246,9 @@
|
||||||
suffix: 'Seconds'
|
suffix: 'Seconds'
|
||||||
},
|
},
|
||||||
'bt-tracker': {
|
'bt-tracker': {
|
||||||
type: 'text'
|
type: 'text',
|
||||||
|
split: ',',
|
||||||
|
showCount: true
|
||||||
},
|
},
|
||||||
'bt-tracker-connect-timeout': {
|
'bt-tracker-connect-timeout': {
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
|
|
|
@ -80,6 +80,7 @@
|
||||||
'Loading': 'Loading...',
|
'Loading': 'Loading...',
|
||||||
'More Than One Day': 'More than 1 day',
|
'More Than One Day': 'More than 1 day',
|
||||||
'Unknown': 'Unknown',
|
'Unknown': 'Unknown',
|
||||||
|
'Total Count': 'Total Count',
|
||||||
'Bytes': 'Bytes',
|
'Bytes': 'Bytes',
|
||||||
'Minutes': 'Minutes',
|
'Minutes': 'Minutes',
|
||||||
'Seconds': 'Seconds',
|
'Seconds': 'Seconds',
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
<i class="icon-primary fa fa-question-circle" data-toggle="tooltip" data-placement="right"
|
<i class="icon-primary fa fa-question-circle" data-toggle="tooltip" data-placement="right"
|
||||||
title="{{option.descriptionKey | translate}}"
|
title="{{option.descriptionKey | translate}}"
|
||||||
ng-if="(option.descriptionKey | translate) != ''"></i>
|
ng-if="(option.descriptionKey | translate) != ''"></i>
|
||||||
|
<span class="description" ng-if="option.showCount && option.split && globalOptions[option.key]"
|
||||||
|
ng-bind="'(' + ('Total Count' | translate) + ': ' + globalOptions[option.key].split(option.split).length + ')'"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value col-sm-8">
|
<div class="setting-value col-sm-8">
|
||||||
<div ng-class="{'input-group': option.suffix}">
|
<div ng-class="{'input-group': option.suffix}">
|
||||||
|
|
Reference in a new issue