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

add device/version info in repo history page

This commit is contained in:
lian
2017-01-16 17:28:41 +08:00
parent 86e9eb5fbc
commit 82c5dc21c6

View File

@@ -25,10 +25,11 @@
<table class="commit-list"> <table class="commit-list">
<tr> <tr>
<th width="52%">{% trans "Description"%}</th> <th width="43%">{% trans "Description" %}</th>
<th width="15%">{% trans "Time" %}</th> <th width="15%">{% trans "Time" %}</th>
<th width="15%">{% trans "Modifier"%}</th> <th width="15%">{% trans "Modifier" %}</th>
<th width="18%">{% trans "Operations" %}</th> <th width="15%">{% trans "Device" %} / {% trans "Version" %}</th>
<th width="12%">{% trans "Operations" %}</th>
</tr> </tr>
{% for commit in commits %} {% for commit in commits %}
@@ -52,6 +53,13 @@
{% trans "Unknown"%} {% trans "Unknown"%}
{% endif %} {% endif %}
</td> </td>
<td>
{% if commit.client_version %}
{{ commit.device_name }} / {{ commit.client_version }}
{% else %}
{% trans "API" %} / --
{% endif %}
</td>
<td> <td>
{% if user_perm == 'rw' %} {% if user_perm == 'rw' %}
{% if forloop.first and current_page == 1 %} {% if forloop.first and current_page == 1 %}