mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 10:26:17 +00:00
[repo] modified 'read-only' tip ui for read-only repo
This commit is contained in:
@@ -13,9 +13,10 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block main_panel %}
|
||||
<div id="repo-top"><div class="block-inner">
|
||||
<div id="repo-top">
|
||||
<div class="block-inner">
|
||||
<div class="w100 ovhd">
|
||||
<h2 class="fleft">{{repo.props.name}}</h2>
|
||||
<h2 class="fleft">{{repo.props.name}}{% if user_perm == 'r' %} <span class="tip vam">({% trans "Read-Only" %})</span>{% endif %}</h2>
|
||||
<div class="fright">
|
||||
<button id="repo-download-btn" class="repo-top-op-btn"><span class="icon-cloud-download"></span>{% trans "Download"%}</button>
|
||||
{% if is_repo_owner %}
|
||||
@@ -24,12 +25,8 @@
|
||||
{% if user_perm == 'rw' %}
|
||||
<button id="recycle-btn" data="{% url 'repo_recycle_view' repo.id %}" class="repo-top-op-btn"><span class="icon-trash"></span>{% trans "Trash"%}</button>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% if user_perm == 'r' %}
|
||||
<p>{% trans "This library is read-only, you can not modify the contents of this library."%}</p>
|
||||
{% endif %}
|
||||
|
||||
<p id="repo-basic-info">
|
||||
<span class="desc">{{repo.props.desc}}</span>
|
||||
@@ -39,7 +36,8 @@
|
||||
<div id="repo-latest-commit">
|
||||
{% include 'snippets/current_commit.html' %}
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="repo-file-list">
|
||||
{% include 'snippets/repo_dir_data.html' %}
|
||||
|
Reference in New Issue
Block a user