From 5982e5f4d16572284640ca90bd446db40f64d8c6 Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 2 Aug 2013 15:32:14 +0800 Subject: [PATCH] [repo] modified 'read-only' tip ui for read-only repo --- seahub/templates/repo.html | 46 ++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/seahub/templates/repo.html b/seahub/templates/repo.html index 8442d8cf9d..f6d66ba099 100644 --- a/seahub/templates/repo.html +++ b/seahub/templates/repo.html @@ -13,33 +13,31 @@ {% endblock %} {% block main_panel %} -
-
-

{{repo.props.name}}

-
- - {% if is_repo_owner %} - - {% endif %} - {% if user_perm == 'rw' %} - - {% endif %} +
+
+
+

{{repo.props.name}}{% if user_perm == 'r' %} ({% trans "Read-Only" %}){% endif %}

+
+ + {% if is_repo_owner %} + + {% endif %} + {% if user_perm == 'rw' %} + + {% endif %} +
+
+

+ {{repo.props.desc}} + {% trans 'Size: ' %}{{ repo_size|filesizeformat }} +

+ +
+ {% include 'snippets/current_commit.html' %} +
- {% if user_perm == 'r' %} -

{% trans "This library is read-only, you can not modify the contents of this library."%}

- {% endif %} - -

- {{repo.props.desc}} - {% trans 'Size: ' %}{{ repo_size|filesizeformat }} -

- -
- {% include 'snippets/current_commit.html' %} -
-
{% include 'snippets/repo_dir_data.html' %}