diff --git a/media/css/seahub.css b/media/css/seahub.css
index de992f6a72..0d3a19bf66 100644
--- a/media/css/seahub.css
+++ b/media/css/seahub.css
@@ -1785,15 +1785,13 @@ textarea:-moz-placeholder {/* for FF */
border: 1px solid #bbb;
margin: 2px 0 5px;
}
-.repo-file-list-outer-container,
-.commit-list-outer-container {
+.repo-file-list-outer-container {
padding:3px;
background:#eee;
border-radius:3px;
margin:10px 0 25px;
}
-.repo-file-list-inner-container,
-.commit-list-inner-container {
+.repo-file-list-inner-container {
min-height:250px;
background:#fff;
border:1px solid #ddd;
@@ -1802,7 +1800,6 @@ textarea:-moz-placeholder {/* for FF */
.repo-file-list-not-show {
padding-left:10px;
}
-.commit-list-inner-container .commit-list-topbar,
.repo-file-list-inner-container .repo-file-list-topbar {
padding:8px 10px;
}
@@ -2165,7 +2162,7 @@ textarea:-moz-placeholder {/* for FF */
margin-top:3px;
}
.commit-list {
- margin:0 0 20px;
+ margin-bottom:20px;
}
.commit-list .time {
padding-left:10px;
@@ -2173,6 +2170,16 @@ textarea:-moz-placeholder {/* for FF */
.commit-list .avatar {
border-radius:2px;
}
+.repo-trash-hd,
+.repo-snapshot-hd {
+ margin-bottom:10px;
+}
+.repo-snapshot-commit {
+ margin-bottom:6px;
+}
+#online-gc {
+ margin-left:5px;
+}
/*repo-share-form*/
#email_or_group,
#share-link,
diff --git a/seahub/templates/file_revisions.html b/seahub/templates/file_revisions.html
index 826ab75415..fc79942087 100644
--- a/seahub/templates/file_revisions.html
+++ b/seahub/templates/file_revisions.html
@@ -5,10 +5,8 @@
{% block sub_title %}{% trans "History" %} - {% endblock %}
{% block main_panel %}
-
{{ u_filename }}{% trans "'s Version History" %}
-{% trans "Tip:a new version will be generated after each modification, and you can restore the file to a previous version." %}
-
-
+
{% blocktrans %}{{ u_filename }} Version History{% endblocktrans %}
+
{% trans "Tip: a new version will be generated after each modification, and you can restore the file to a previous version." %}
{% trans 'Current Path:' %}
@@ -41,8 +39,8 @@
- {% trans 'Time' %} |
- {% trans 'Modifier' %} |
+ {% trans 'Time' %} |
+ {% trans 'Modifier' %} |
{% trans 'Size' %} |
{% trans 'Operations' %} |
@@ -84,6 +82,4 @@
{% endfor %}
-
-
{% endblock %}
diff --git a/seahub/templates/repo_history.html b/seahub/templates/repo_history.html
index 153715896d..1923d4addb 100644
--- a/seahub/templates/repo_history.html
+++ b/seahub/templates/repo_history.html
@@ -5,25 +5,30 @@
{% block sub_title %}{% trans "History" %} - {% endblock %}
{% block main_panel %}
-{{repo.props.name}} {% trans "modification history" %}
+{% blocktrans with repo_name=repo.props.name %}{{repo_name}} Modification History{% endblocktrans %}
{% if user_perm == 'rw' %}
-{% trans "Tip: A snapshot will be generated after modification, which records the library state before this modification."%}{% trans "View Snapshot"%}
+{% trans "Tip: a snapshot will be generated after modification, which records the library state after the modification."%}
{% endif %}
-
-
- {% trans "Time" %} |
- {% trans "Modifier"%} |
- {% trans "Description"%} |
+ {% trans "Description"%} |
+ {% trans "Time" %} |
+ {% trans "Modifier"%} |
+ {% trans "Operations" %} |
{% for commit in commits %}
{% if commit.show %}
- {{ commit.ctime|translate_seahub_time }} |
+
+ {{ commit.props.desc|translate_commit_desc }}
+ {% if page_next or not forloop.last %}
+ {% trans "Details"%}
+ {% endif %}
+ |
+ {{ commit.ctime|translate_seahub_time }} |
{% if commit.creator_name %}
{% if not commit.second_parent_id %}
@@ -37,9 +42,12 @@
{% endif %}
|
- {{ commit.props.desc|translate_commit_desc }}
- {% if page_next or not forloop.last %}
- {% trans "Details"%}
+ {% if user_perm == 'rw' %}
+ {% if forloop.first and current_page == 1 %}
+ {% trans "Current Version" %}
+ {% else %}
+ {% trans "View Snapshot" %}
+ {% endif %}
{% endif %}
|
@@ -73,15 +81,10 @@
100
{% endif %}
-
-
{% endblock %}
{% block extra_script %}
{% endblock %}
diff --git a/seahub/templates/repo_history_view.html b/seahub/templates/repo_history_view.html
index ede0bdadc0..95f558be03 100644
--- a/seahub/templates/repo_history_view.html
+++ b/seahub/templates/repo_history_view.html
@@ -3,38 +3,45 @@
{% load seahub_tags avatar_tags i18n %}
{% load url from future %}
+{% block extra_style %}
+
+{% endblock %}
+
{% block main_panel %}
-
-
{{repo.props.name}} {% trans "snapshot"%}({{ current_commit.props.ctime|tsstr_sec }})
-
-
+{% blocktrans with repo_name=repo.props.name %}{{repo_name}} Snapshot{% endblocktrans %}({{ current_commit.props.ctime|tsstr_sec }})
- {% if path == '/' %}
-
-
{{ current_commit.props.desc|translate_commit_desc }}
-
-
- {% if current_commit.props.creator_name %}
- {% avatar current_commit.props.creator_name 20 %}
- {{ current_commit.props.creator_name|short_email }}
- {% else %}
- {% trans "Unknown"%}
- {% endif %}
-
- {{ current_commit.props.ctime|translate_seahub_time }}
-
-
- {% endif %}
+
+
+
-
-
{% if not user_perm %}
{% trans "Can't view this library"%}
{% else %}
-
-
+
+ {% if path == '/' %}
+
+
{{ current_commit.props.desc|translate_commit_desc }}
+
+
+ {% if current_commit.props.creator_name %}
+ {% avatar current_commit.props.creator_name 20 %}
+ {{ current_commit.props.creator_name|short_email }}
+ {% else %}
+ {% trans "Unknown"%}
+ {% endif %}
+
+ {{ current_commit.props.ctime|translate_seahub_time }}
+
+
+ {% endif %}
+
+
+
{% trans "Current path: "%}
{% for name, link in zipped %}
{% if not forloop.last %}
@@ -44,14 +51,18 @@
{% endif %}
{% endfor %}
+
+ {% if path == '/' and is_repo_owner %}
+
+ {% endif %}
|
{% trans "Name"%} |
- {% trans "Size"%} |
- {% trans "Operations"%} |
+ {% trans "Size"%} |
+ {% trans "Operations"%} |
{% for dirent in dir_list %}
@@ -77,14 +88,13 @@
{% endif %}
-
-
{% endblock %}
{% block extra_script %}
{% endblock %}
diff --git a/seahub/templates/repo_recycle_view.html b/seahub/templates/repo_recycle_view.html
index 6724b88236..a15ba3084d 100644
--- a/seahub/templates/repo_recycle_view.html
+++ b/seahub/templates/repo_recycle_view.html
@@ -4,32 +4,29 @@
{% load url from future %}
{% block main_panel %}
-
-
{% blocktrans with repo_name=repo.props.name %}{{repo_name}} Trash{% endblocktrans %}
- {% if enable_clean %}
-
- {% endif %}
-
+
{% blocktrans with repo_name=repo.props.name %}{{repo_name}} Trash{% endblocktrans %}
-
-
|
- {% trans "Name" %} |
- {% trans "Delete Time" %} |
- {% trans "Size" %} |
- {% trans "Operations" %} |
+ {% trans "Name" %} |
+ {% trans "Delete Time" %} |
+ {% trans "Size" %} |
+ {% trans "Operations" %} |
{% for dirent in dir_list %}
@@ -92,10 +93,8 @@
{% endfor %}
-
-
- {% if enable_clean %}
+ {% if enable_clean and show_recycle_root %}