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