mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
[sysadmin] add icon/remove desc when list repos
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
{% load i18n %}
|
||||
<table class="repo-list">
|
||||
<tr>
|
||||
<th width="35%">{% trans "Name" %}</th>
|
||||
<th width="4%"><!--icon--></th>
|
||||
<th width="31%">{% trans "Name" %}</th>
|
||||
<th width="25%">ID</th>
|
||||
<th width="25%">{% trans "Owner" %}</th>
|
||||
<th width="15%">{% trans "Operations" %}</th>
|
||||
</tr>
|
||||
{% for repo in repos %}
|
||||
<tr>
|
||||
{% if repo.encrypted %}
|
||||
<td><img src="{{MEDIA_URL}}img/sync-folder-encrypt-20.png" title="{% trans "Encrypted"%}" alt="{% trans "directory icon" %}" /></td>
|
||||
{% else %}
|
||||
<td><img src="{{MEDIA_URL}}img/sync-folder-20.png?t=1387267140" title="{% trans "Read-Write"%}" alt="{% trans "directory icon" %}" /></td>
|
||||
{% endif %}
|
||||
<td>{{ repo.props.name }}</td>
|
||||
<td style="font-size:11px;">{{ repo.id }}</td>
|
||||
<td>
|
||||
|
@@ -15,14 +15,19 @@
|
||||
{% if org_repos %}
|
||||
<table class="repo-list">
|
||||
<tr>
|
||||
<th width="15%">{% trans "Name" %}</th>
|
||||
<th width="4%"><!--icon--></th>
|
||||
<th width="31%">{% trans "Name" %}</th>
|
||||
<th width="25%">ID</th>
|
||||
<th width="25%">{% trans "Owner" %}</th>
|
||||
<th width="22%">{% trans "Description" %}</th>
|
||||
<th width="13%">{% trans "Operations" %}</th>
|
||||
<th width="15%">{% trans "Operations" %}</th>
|
||||
</tr>
|
||||
{% for repo in org_repos %}
|
||||
<tr>
|
||||
{% if repo.encrypted %}
|
||||
<td><img src="{{MEDIA_URL}}img/sync-folder-encrypt-20.png" title="{% trans "Encrypted"%}" alt="{% trans "directory icon" %}" /></td>
|
||||
{% else %}
|
||||
<td><img src="{{MEDIA_URL}}img/sync-folder-20.png?t=1387267140" title="{% trans "Read-Write"%}" alt="{% trans "directory icon" %}" /></td>
|
||||
{% endif %}
|
||||
<td>{{ repo.name }}</td>
|
||||
<td style="font-size:11px;">{{ repo.id }}</td>
|
||||
<td>
|
||||
@@ -32,7 +37,6 @@
|
||||
--
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ repo.desc }}</td>
|
||||
<td data-id="{{ repo.id }}" data-name="{{ repo.name }}">
|
||||
<div>
|
||||
<a href="#" class="repo-delete-btn op vh">{% trans "Delete" %}</a>
|
||||
|
@@ -23,13 +23,15 @@
|
||||
{% if repos %}
|
||||
<table class="repo-list">
|
||||
<tr>
|
||||
<th width="4%"><!--icon--></th>
|
||||
<th width="30%">{% trans "Name" %}</th>
|
||||
<th width="30%">{% trans "Owner" %}</th>
|
||||
<th width="20%">{% trans "Deleted Time" %}</th>
|
||||
<th width="20%">{% trans "Operations" %}</th>
|
||||
<th width="16%">{% trans "Operations" %}</th>
|
||||
</tr>
|
||||
{% for repo in repos %}
|
||||
<tr>
|
||||
<td><img src="{{MEDIA_URL}}img/sync-folder-20.png?t=1387267140" title="{% trans "Read-Write"%}" alt="{% trans "directory icon" %}" /></td>
|
||||
<td>{{ repo.repo_name }}</td>
|
||||
<td><a href="{% url 'user_info' repo.owner_id %}">{{ repo.owner_id }}</a></td>
|
||||
<td>{{ repo.del_time|translate_seahub_time }}</td>
|
||||
|
Reference in New Issue
Block a user