mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 00:43:53 +00:00
change-modify-time-str-sysadmin-user-repos-api (#4327)
This commit is contained in:
@@ -188,7 +188,7 @@ class Item extends Component {
|
|||||||
<td><img src={iconUrl} title={iconTitle} alt={iconTitle} width="24" /></td>
|
<td><img src={iconUrl} title={iconTitle} alt={iconTitle} width="24" /></td>
|
||||||
<td>{this.renderRepoName()}</td>
|
<td>{this.renderRepoName()}</td>
|
||||||
<td>{Utils.bytesToSize(item.size)}</td>
|
<td>{Utils.bytesToSize(item.size)}</td>
|
||||||
<td>{moment(item.last_modify).fromNow()}</td>
|
<td>{moment(item.last_modified).fromNow()}</td>
|
||||||
<td>
|
<td>
|
||||||
{isOpIconShown &&
|
{isOpIconShown &&
|
||||||
<OpMenu
|
<OpMenu
|
||||||
|
@@ -56,7 +56,7 @@ def get_repo_info(repo):
|
|||||||
result['encrypted'] = repo.encrypted
|
result['encrypted'] = repo.encrypted
|
||||||
result['file_count'] = repo.file_count
|
result['file_count'] = repo.file_count
|
||||||
result['status'] = normalize_repo_status_code(repo.status)
|
result['status'] = normalize_repo_status_code(repo.status)
|
||||||
result['last_modify'] = timestamp_to_isoformat_timestr(repo.last_modified)
|
result['last_modified'] = timestamp_to_isoformat_timestr(repo.last_modified)
|
||||||
|
|
||||||
if '@seafile_group' in owner:
|
if '@seafile_group' in owner:
|
||||||
group_id = get_group_id_by_repo_owner(owner)
|
group_id = get_group_id_by_repo_owner(owner)
|
||||||
|
Reference in New Issue
Block a user