add tooltip
This commit is contained in:
parent
4946fbf24a
commit
b1203e3e8b
|
@ -233,8 +233,8 @@
|
||||||
<span> </span>
|
<span> </span>
|
||||||
|
|
||||||
<div class="pull-right ng-cloak" ng-if="globalStatusContext.isEnabled">
|
<div class="pull-right ng-cloak" ng-if="globalStatusContext.isEnabled">
|
||||||
<a class="global-status" ng-pop-chart ng-data="globalStatusContext.data" ng-container="body"
|
<a class="global-status" title="{{('Click to pin' | translate)}}" ng-pop-chart ng-data="globalStatusContext.data"
|
||||||
ng-placement="top" ng-trigger="click hover" ng-popover-class="global-status-chart">
|
ng-container="body" ng-placement="top" ng-trigger="click hover" ng-popover-class="global-status-chart">
|
||||||
<span class="realtime-speed">
|
<span class="realtime-speed">
|
||||||
<i class="icon-download fa fa-arrow-down"></i>
|
<i class="icon-download fa fa-arrow-down"></i>
|
||||||
<span ng-bind="(globalStat.downloadSpeed | readableVolumn) + '/s'"></span>
|
<span ng-bind="(globalStat.downloadSpeed | readableVolumn) + '/s'"></span>
|
||||||
|
|
|
@ -44,6 +44,7 @@ Error Occurred=发生错误
|
||||||
Removed=已删除
|
Removed=已删除
|
||||||
Downloaded / Stopped=已完成 / 已停止
|
Downloaded / Stopped=已完成 / 已停止
|
||||||
Uncompleted=未完成
|
Uncompleted=未完成
|
||||||
|
Click to pin=点击固定
|
||||||
Settings=系统设置
|
Settings=系统设置
|
||||||
AriaNg Settings=AriaNg 设置
|
AriaNg Settings=AriaNg 设置
|
||||||
Aria2 Settings=Aria2 设置
|
Aria2 Settings=Aria2 设置
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
'Removed': 'Removed',
|
'Removed': 'Removed',
|
||||||
'Downloaded / Stopped': 'Downloaded / Stopped',
|
'Downloaded / Stopped': 'Downloaded / Stopped',
|
||||||
'Uncompleted': 'Uncompleted',
|
'Uncompleted': 'Uncompleted',
|
||||||
|
'Click to pin': 'Click to pin',
|
||||||
'Settings': 'Settings',
|
'Settings': 'Settings',
|
||||||
'AriaNg Settings': 'AriaNg Settings',
|
'AriaNg Settings': 'AriaNg Settings',
|
||||||
'Aria2 Settings': 'Aria2 Settings',
|
'Aria2 Settings': 'Aria2 Settings',
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
content: '<div class="chart-pop-wrapper"><div class="chart-pop ' + options.ngPopoverClass + '">' + loadingIcon +'</div></div>',
|
content: '<div class="chart-pop-wrapper"><div class="chart-pop ' + options.ngPopoverClass + '">' + loadingIcon +'</div></div>',
|
||||||
html: true,
|
html: true,
|
||||||
placement: options.ngPlacement,
|
placement: options.ngPlacement,
|
||||||
template: '<div class="popover chart-popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',
|
template: '<div class="popover chart-popover" role="tooltip"><div class="arrow"></div><div class="popover-content"></div></div>',
|
||||||
trigger: options.ngTrigger
|
trigger: options.ngTrigger
|
||||||
}).on('shown.bs.popover', function () {
|
}).on('shown.bs.popover', function () {
|
||||||
var wrapper = angular.element('.chart-pop');
|
var wrapper = angular.element('.chart-pop');
|
||||||
|
|
Reference in a new issue