1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

Merge pull request #1417 from haiwen/broken-lib

[my libs] don't show operations for broken library
This commit is contained in:
Daniel Pan
2016-12-10 13:53:43 +08:00
committed by GitHub

View File

@@ -44,9 +44,6 @@
</td> </td>
<% if (name) { %> <% if (name) { %>
<td><span class="repo-name-span"><a href="#my-libs/lib/<%= id %>"><%- name %></a></span></td> <td><span class="repo-name-span"><a href="#my-libs/lib/<%= id %>"><%- name %></a></span></td>
<% } else { %>
<td>{% trans "Broken (please contact your administrator to fix this library)" %}</td>
<% } %>
<td class="repo-op-td"> <td class="repo-op-td">
<div class="op-container"> <div class="op-container">
<a href="#" class="sf2-icon-share sf2-x repo-share-btn op-icon vh" title="{% trans "Share" %}" aria-label="{% trans "Share" %}"></a> <a href="#" class="sf2-icon-share sf2-x repo-share-btn op-icon vh" title="{% trans "Share" %}" aria-label="{% trans "Share" %}"></a>
@@ -70,6 +67,10 @@
</div> </div>
</div> </div>
</td> </td>
<% } else { %>
<td>{% trans "Broken (please contact your administrator to fix this library)" %}</td>
<td></td>
<% } %>
<td><%= size_formatted %></td> <td><%= size_formatted %></td>
<td><%= mtime_relative %></td> <td><%= mtime_relative %></td>
</script> </script>