1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

Merge pull request #3747 from haiwen/7.0-show-used-quota-of-department

show quota in department group, after path icon
This commit is contained in:
杨顺强
2019-06-28 11:43:21 +08:00
committed by GitHub
3 changed files with 12 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ class Group {
this.parent_group_id = object.parent_group_id;
this.wiki_enabled = object.wiki_enabled;
this.repos = object.repos || [];
this.group_quota = object.group_quota;
this.group_quota_usage = object.group_quota_usage;
}
}

View File

@@ -388,7 +388,10 @@ class GroupView extends React.Component {
<span className="path-split">/</span>
<span>{currentGroup.name}</span>
{currentGroup.parent_group_id !== 0 && (
<span className="department-group-icon fas fa-building" title={gettext('This is a special group representing a department.')}></span>
<Fragment>
<span className="department-group-icon fas fa-building" title={gettext('This is a special group representing a department.')}></span>
<span>{' '}{''}{gettext('Used:')}{' '}{Utils.bytesToSize(currentGroup.group_quota_usage)}{'/'}{Utils.bytesToSize(currentGroup.group_quota)}{''}</span>
</Fragment>
)}
</div>
<div className="path-tool">