1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

[repo] modified 'read-only' tip ui for read-only repo

This commit is contained in:
llj
2013-08-02 15:32:14 +08:00
parent 78f177ddc1
commit 5982e5f4d1

View File

@@ -13,9 +13,10 @@
{% endblock %} {% endblock %}
{% block main_panel %} {% block main_panel %}
<div id="repo-top"><div class="block-inner"> <div id="repo-top">
<div class="block-inner">
<div class="w100 ovhd"> <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"> <div class="fright">
<button id="repo-download-btn" class="repo-top-op-btn"><span class="icon-cloud-download"></span>{% trans "Download"%}</button> <button id="repo-download-btn" class="repo-top-op-btn"><span class="icon-cloud-download"></span>{% trans "Download"%}</button>
{% if is_repo_owner %} {% if is_repo_owner %}
@@ -24,12 +25,8 @@
{% if user_perm == 'rw' %} {% 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> <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 %} {% endif %}
</div> </div>
</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"> <p id="repo-basic-info">
<span class="desc">{{repo.props.desc}}</span> <span class="desc">{{repo.props.desc}}</span>
@@ -39,7 +36,8 @@
<div id="repo-latest-commit"> <div id="repo-latest-commit">
{% include 'snippets/current_commit.html' %} {% include 'snippets/current_commit.html' %}
</div> </div>
</div></div> </div>
</div>
<div id="repo-file-list"> <div id="repo-file-list">
{% include 'snippets/repo_dir_data.html' %} {% include 'snippets/repo_dir_data.html' %}