diff --git a/frontend/src/css/system-info.css b/frontend/src/css/system-info.css index 38d1fce28b..43c53a70f5 100644 --- a/frontend/src/css/system-info.css +++ b/frontend/src/css/system-info.css @@ -11,16 +11,20 @@ padding: 0rem 1rem 8rem; overflow: auto; } -.info-item { - margin: 1em 0 3em; +.system-admin-info dt, +.system-admin-info dd { + color: inherit; } -.info-item .info-item-heading { +.info-item-heading { font-size: 1rem; font-weight: normal; padding-bottom: 0.2em; border-bottom: 1px solid #ddd; margin-bottom: 0.7em; } +.info-item-content { + margin-bottom: 2em; +} .btn { min-width: 60px; } diff --git a/frontend/src/pages/sys-admin/info.js b/frontend/src/pages/sys-admin/info.js index d9d7bd8321..05f79c06b2 100644 --- a/frontend/src/pages/sys-admin/info.js +++ b/frontend/src/pages/sys-admin/info.js @@ -4,8 +4,9 @@ import { seafileAPI } from '../../utils/seafile-api'; import { gettext, isPro, isDefaultAdmin } from '../../utils/constants'; import toaster from '../../components/toast'; import { Utils } from '../../utils/utils'; -import Account from '../../components/common/account'; import Loading from '../../components/loading'; +import MainPanelTopbar from './main-panel-topbar'; + import '../../css/system-info.css'; class Info extends Component { @@ -94,76 +95,66 @@ class Info extends Component { return ( -
-
- -
-
- -
-
+
-
+

{gettext('Info')}

- {loading && } - {errorMsg &&

{errorMsg}

} - {(!loading && !errorMsg) && -
-
-

{gettext('System Info')}

+
+ {loading && } + {errorMsg &&

{errorMsg}

} + {(!loading && !errorMsg) && +
+
{gettext('System Info')}
{isPro ? - +
{gettext('Professional Edition')} - {with_license && ' ' + this.renderLicenseDescString(license_mode, license_to, license_expiration)} -
+ {with_license && + ' ' + this.renderLicenseDescString(license_mode, license_to, license_expiration) + }
{isDefaultAdmin && - + } +
: +
+ {gettext('Community Edition')} + {gettext('Upgrade to Pro Edition')} +
+ } +
{gettext('Libraries')} / {gettext('Files')}
+
{repos_count} / {total_files_count}
+ +
{gettext('Storage Used')}
+
{Utils.bytesToSize(total_storage)}
+ +
{gettext('Total Devices')} / {gettext('Current Connected Devices')}
+
{total_devices_count} / {current_connected_devices_count}
+ + {isPro ? + +
{gettext('Activated Users')} / {gettext('Total Users')} / {gettext('Limits')}
+
{active_users_count}{' / '}{users_count}{' / '}{with_license ? license_maxusers : '--'}
: - {gettext('Community Edition')} - {gettext('Upgrade to Pro Edition')} +
{gettext('Activated Users')} / {gettext('Total Users')}
+
{active_users_count} / {users_count}
} -
-
-

{gettext('Libraries')} / {gettext('Files')}

- {repos_count} / {total_files_count} -
-
-

{gettext('Storage Used')}

- {Utils.bytesToSize(total_storage)} -
-
-

{gettext('Total Devices')} / {gettext('Current Connected Devices')}

- {total_devices_count} / {current_connected_devices_count} -
- {isPro ? -
-

{gettext('Activated Users')} / {gettext('Total Users')} / {gettext('Limits')}

- {active_users_count}{' / '}{users_count}{' / '}{with_license ? license_maxusers : '--'} -
: -
-

{gettext('Activated Users')} / {gettext('Total Users')}

- {active_users_count} / {users_count} -
- } -
-

{gettext('Groups')}

- {groups_count} -
- {multi_tenancy_enabled && -
-

{gettext('Organizations')}

- {org_count} -
+ +
{gettext('Groups')}
+
{groups_count}
+ + {multi_tenancy_enabled && + +
{gettext('Organizations')}
+
{org_count}
+
+ } + }
- }