diff --git a/frontend/src/pages/sys-admin/orgs/orgs-content.js b/frontend/src/pages/sys-admin/orgs/orgs-content.js index 995523cb995..14e58db2d6f 100644 --- a/frontend/src/pages/sys-admin/orgs/orgs-content.js +++ b/frontend/src/pages/sys-admin/orgs/orgs-content.js @@ -38,6 +38,7 @@ class Content extends Component { render() { const { loading, errorMsg, items } = this.props; + const colCreatedText = `${gettext('Created At')} / ${gettext('Last Access')}`; if (loading) { return ; } else if (errorMsg) { @@ -52,12 +53,11 @@ class Content extends Component { - - - + + + - - + @@ -200,11 +200,11 @@ class Item extends Component { /> - - {item.last_activity_time ? - : - - } +
{gettext('Name')}{gettext('Creator')}{gettext('Role')}{gettext('Name')}{gettext('Creator')}{gettext('Role')} {gettext('Space Used')}{gettext('Created At')}{gettext('Last Access')}{colCreatedText} {/* Operations */}
{`${Utils.bytesToSize(item.quota_usage)} / ${item.quota > 0 ? Utils.bytesToSize(item.quota) : '--'}`}{dayjs(item.ctime).format('YYYY-MM-DD HH:mm:ss')}{dayjs(item.last_activity_time).format('YYYY-MM-DD HH:mm:ss')}{'--'} + {`${dayjs(item.ctime).format('YYYY-MM-DD HH:mm:ss')} /`} +
+ {`${item.last_activity_time ? dayjs(item.last_activity_time).fromNow() : '--'} `} +