1
0
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:
lian
2015-09-08 13:32:30 +08:00
parent bc4afa5947
commit d64b66c300
3 changed files with 19 additions and 7 deletions

View File

@@ -1,13 +1,19 @@
{% load i18n %} {% load i18n %}
<table class="repo-list"> <table class="repo-list">
<tr> <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%">ID</th>
<th width="25%">{% trans "Owner" %}</th> <th width="25%">{% trans "Owner" %}</th>
<th width="15%">{% trans "Operations" %}</th> <th width="15%">{% trans "Operations" %}</th>
</tr> </tr>
{% for repo in repos %} {% for repo in repos %}
<tr> <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>{{ repo.props.name }}</td>
<td style="font-size:11px;">{{ repo.id }}</td> <td style="font-size:11px;">{{ repo.id }}</td>
<td> <td>
@@ -20,7 +26,7 @@
<td data-id="{{ repo.props.id }}" data-name="{{ repo.props.name }}"> <td data-id="{{ repo.props.id }}" data-name="{{ repo.props.name }}">
<div> <div>
<a href="#" class="repo-delete-btn op vh">{% trans "Delete" %}</a> <a href="#" class="repo-delete-btn op vh">{% trans "Delete" %}</a>
<a href="#" class="repo-transfer-btn op vh">{% trans "Transfer" %}</a> <a href="#" class="repo-transfer-btn op vh">{% trans "Transfer" %}</a>
</div> </div>
</td> </td>
</tr> </tr>

View File

@@ -15,14 +15,19 @@
{% if org_repos %} {% if org_repos %}
<table class="repo-list"> <table class="repo-list">
<tr> <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%">ID</th>
<th width="25%">{% trans "Owner" %}</th> <th width="25%">{% trans "Owner" %}</th>
<th width="22%">{% trans "Description" %}</th> <th width="15%">{% trans "Operations" %}</th>
<th width="13%">{% trans "Operations" %}</th>
</tr> </tr>
{% for repo in org_repos %} {% for repo in org_repos %}
<tr> <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>{{ repo.name }}</td>
<td style="font-size:11px;">{{ repo.id }}</td> <td style="font-size:11px;">{{ repo.id }}</td>
<td> <td>
@@ -32,7 +37,6 @@
-- --
{% endif %} {% endif %}
</td> </td>
<td>{{ repo.desc }}</td>
<td data-id="{{ repo.id }}" data-name="{{ repo.name }}"> <td data-id="{{ repo.id }}" data-name="{{ repo.name }}">
<div> <div>
<a href="#" class="repo-delete-btn op vh">{% trans "Delete" %}</a> <a href="#" class="repo-delete-btn op vh">{% trans "Delete" %}</a>

View File

@@ -23,13 +23,15 @@
{% if repos %} {% if repos %}
<table class="repo-list"> <table class="repo-list">
<tr> <tr>
<th width="4%"><!--icon--></th>
<th width="30%">{% trans "Name" %}</th> <th width="30%">{% trans "Name" %}</th>
<th width="30%">{% trans "Owner" %}</th> <th width="30%">{% trans "Owner" %}</th>
<th width="20%">{% trans "Deleted Time" %}</th> <th width="20%">{% trans "Deleted Time" %}</th>
<th width="20%">{% trans "Operations" %}</th> <th width="16%">{% trans "Operations" %}</th>
</tr> </tr>
{% for repo in repos %} {% for repo in repos %}
<tr> <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>{{ repo.repo_name }}</td>
<td><a href="{% url 'user_info' repo.owner_id %}">{{ repo.owner_id }}</a></td> <td><a href="{% url 'user_info' repo.owner_id %}">{{ repo.owner_id }}</a></td>
<td>{{ repo.del_time|translate_seahub_time }}</td> <td>{{ repo.del_time|translate_seahub_time }}</td>