1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +00:00

show broken repo at user admin page

This commit is contained in:
lian
2016-01-19 16:35:12 +08:00
parent cac889406a
commit a21a0840e1
2 changed files with 15 additions and 7 deletions

View File

@@ -93,6 +93,10 @@
{% else %} {% else %}
<td><img src="{{MEDIA_URL}}img/sync-folder-20.png?t=1387267140" title="{% trans "Read-Write" %}" alt="{% trans "library icon" %}" /></td> <td><img src="{{MEDIA_URL}}img/sync-folder-20.png?t=1387267140" title="{% trans "Read-Write" %}" alt="{% trans "library icon" %}" /></td>
{% endif %} {% endif %}
{% if not repo.name %}
<td>Broken ({{repo.id}})</td>
{% else %}
{% if repo.encrypted %} {% if repo.encrypted %}
<td>{{ repo.name }}</td> <td>{{ repo.name }}</td>
{% elif enable_sys_admin_view_repo %} {% elif enable_sys_admin_view_repo %}
@@ -100,6 +104,8 @@
{% else %} {% else %}
<td>{{ repo.name }}</td> <td>{{ repo.name }}</td>
{% endif %} {% endif %}
{% endif %}
<td>{{ repo.size|filesizeformat }}</td> <td>{{ repo.size|filesizeformat }}</td>
<td>{{ repo.last_modify|translate_seahub_time }}</td> <td>{{ repo.last_modify|translate_seahub_time }}</td>
<td data-id="{{ repo.props.id }}" data-name="{{repo.name}}"> <td data-id="{{ repo.props.id }}" data-name="{{repo.name}}">

View File

@@ -815,7 +815,8 @@ def user_info(request, email):
org = ccnet_threaded_rpc.get_orgs_by_user(email) org = ccnet_threaded_rpc.get_orgs_by_user(email)
if not org: if not org:
owned_repos = mute_seafile_api.get_owned_repo_list(email) owned_repos = mute_seafile_api.get_owned_repo_list(email,
ret_corrupted=True)
in_repos = mute_seafile_api.get_share_in_repo_list(email, -1, -1) in_repos = mute_seafile_api.get_share_in_repo_list(email, -1, -1)
space_usage = mute_seafile_api.get_user_self_usage(email) space_usage = mute_seafile_api.get_user_self_usage(email)
space_quota = mute_seafile_api.get_user_quota(email) space_quota = mute_seafile_api.get_user_quota(email)
@@ -828,7 +829,8 @@ def user_info(request, email):
space_usage = seafserv_threaded_rpc.get_org_user_quota_usage(org_id, space_usage = seafserv_threaded_rpc.get_org_user_quota_usage(org_id,
email) email)
space_quota = seafserv_threaded_rpc.get_org_user_quota(org_id, email) space_quota = seafserv_threaded_rpc.get_org_user_quota(org_id, email)
owned_repos = seafile_api.get_org_owned_repo_list(org_id, email) owned_repos = seafile_api.get_org_owned_repo_list(org_id, email,
ret_corrupted=True)
in_repos = seafile_api.get_org_share_in_repo_list(org_id, email, -1, -1) in_repos = seafile_api.get_org_share_in_repo_list(org_id, email, -1, -1)
# get user profile # get user profile