1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 23:34:45 +00:00

[org admin] 'info' page: added an 'over traffic' tip for the 'Traffic this month' module (#8006)

This commit is contained in:
llj
2025-07-04 16:57:53 +08:00
committed by GitHub
parent 171b1a6827
commit 50db744b99
2 changed files with 21 additions and 1 deletions

View File

@@ -48,3 +48,13 @@
font-size: .8125rem;
color: #666666;
}
#traffic-over-tip-icon {
color: #bdbdbd;
font-size: .875rem;
margin-left: 6px;
}
#traffic-over-tip-icon:hover {
color: #999999;
}

View File

@@ -1,4 +1,5 @@
import React, { Component, Fragment } from 'react';
import { UncontrolledTooltip } from 'reactstrap';
import { orgAdminAPI } from '../../utils/org-admin-api';
import { mediaUrl, gettext, orgMemberQuotaEnabled, enableSeafileAI } from '../../utils/constants';
import { Utils } from '../../utils/utils';
@@ -109,7 +110,16 @@ class OrgInfo extends Component {
)}
</div>
<div className="info-content-item">
<h4 className="info-content-item-heading">{gettext('Traffic this month')}</h4>
<h4 className="info-content-item-heading">
{gettext('Traffic this month')}
<i className="sf3-font-help sf3-font" id="traffic-over-tip-icon"></i>
<UncontrolledTooltip
placement="right"
target={'#traffic-over-tip-icon'}
>
{gettext('After exceeding the traffic limit, the file download speed will be restricted.')}
</UncontrolledTooltip>
</h4>
{traffic_limit > 0 ? (
<>
<p className="info-content-space-text">{`${(download_traffic / traffic_limit * 100).toFixed(2)}%`}</p>