diff --git a/media/css/seahub.css b/media/css/seahub.css
index 43d2f76a6a..95812ac8e0 100644
--- a/media/css/seahub.css
+++ b/media/css/seahub.css
@@ -785,12 +785,6 @@ textarea:-moz-placeholder {/* for FF */
.checkbox-option {
vertical-align:middle;
}
-#simplemodal-container .checkbox-option {
- font-weight:normal;
-}
-#simplemodal-container .checkbox-label {
- margin:4px 0;
-}
.checkbox-label {
display:block;
}
@@ -1043,6 +1037,12 @@ textarea:-moz-placeholder {/* for FF */
#simplemodal-container label {
margin:8px 0 4px;
}
+#simplemodal-container .checkbox-option {
+ font-weight:normal;
+}
+#simplemodal-container .checkbox-label {
+ margin:4px 0;
+}
.simplemodal-close {
margin-left:5px;
}
diff --git a/media/img/folder-icon-24.png b/media/img/folder-icon-24.png
deleted file mode 100644
index 239a9d43cc..0000000000
Binary files a/media/img/folder-icon-24.png and /dev/null differ
diff --git a/seahub/api2/templates/api2/discussion.html b/seahub/api2/templates/api2/discussion.html
deleted file mode 100644
index cd15fb4e4b..0000000000
--- a/seahub/api2/templates/api2/discussion.html
+++ /dev/null
@@ -1,89 +0,0 @@
-{% extends "api2/base.html" %}
-
-{% load seahub_tags avatar_tags i18n %}
-{% load url from future %}
-
-{% block sub_title %}{% trans "Discussion" %} - {% endblock %}
-
-{% block main_panel %}
-
-
-
- {% avatar msg.from_email 48 %}
-
-
-
- {{ msg.from_email|email2nickname }}
- {{ msg.timestamp|translate_seahub_time }}
-
-
{{ msg.message|seahub_urlize|find_at|linebreaksbr }}
- {% if msg.attachment %}
- {% with ma=msg.attachment %}
-
- {% if ma.src == 'recommend' %}
- {% if ma.attach_type == 'file' %}
- {% if ma.filetype != 'Image'%}
-

-
{{ ma.name }}
- {% else %}
- {% if ma.err %}
-
{{ma.err}}
- {% else %}
-

- {% endif %}
- {% endif %}
- {% else %}
-

-
{{ ma.name }}
- {% endif %}
- {% endif %}
-
- {% if ma.src == 'filecomment' %} {# compatible with comments already exist #}
-

-
{{ ma.name }}
- {% endif %}
-
- {% endwith %}
- {% endif %}
-
-
-
-
- {% if msg.reply_cnt > 0 %}
-
- {% else %}
-
- {% endif %}
-
- {% for r in msg.replies %}
- -
- {% avatar r.from_email 48 %}
-
-
{{ r.from_email|email2nickname }}
-
{{ r.timestamp|translate_seahub_time }}
-
{{ r.message|seahub_urlize|find_at }}
-
-
- {% endfor %}
-
-
-
-
-
-{% endblock %}
-
-{% block extra_script %}
-
-{% endblock %}
diff --git a/seahub/api2/templates/api2/discussion_posted.html b/seahub/api2/templates/api2/discussion_posted.html
deleted file mode 100644
index a3df26f78a..0000000000
--- a/seahub/api2/templates/api2/discussion_posted.html
+++ /dev/null
@@ -1,64 +0,0 @@
-{% load seahub_tags avatar_tags i18n %}
-{% load url from future %}
-
-
- {% avatar msg.from_email 48 %}
-
-
-
- {{ msg.from_email|email2nickname }}
- {{ msg.timestamp|translate_seahub_time }}
-
-
{{ msg.message|seahub_urlize|find_at|linebreaksbr }}
- {% if msg.attachment %}
- {% with ma=msg.attachment %}
-
- {% if ma.src == 'recommend' %}
- {% if ma.attach_type == 'file' %}
- {% if ma.filetype != 'Image'%}
-

-
{{ ma.name }}
- {% else %}
- {% if ma.err %}
-
{{ma.err}}
- {% else %}
-

- {% endif %}
- {% endif %}
- {% else %}
-

-
{{ ma.name }}
- {% endif %}
- {% endif %}
-
- {% if ma.src == 'filecomment' %} {# compatible with comments already exist #}
-

-
{{ ma.name }}
- {% endif %}
-
- {% endwith %}
- {% endif %}
-
-
- {% if msg.reply_cnt > 0 %}
-
- {% if msg.reply_cnt > 3 %}
-
{% blocktrans with amount=msg.reply_cnt %}{{ amount }} replies{% endblocktrans %}
- {% endif %}
-
- {% for r in msg.replies %}
- -
- {% avatar r.from_email 28 %}
-
-
{{ r.from_email|email2nickname }}
-
{{ r.timestamp|translate_seahub_time }}
-
{{ r.message|seahub_urlize|find_at }}
-
-
- {% endfor %}
-
-
-
- {% endif %}
-
-
diff --git a/seahub/api2/templates/api2/new_msg_reply.html b/seahub/api2/templates/api2/new_msg_reply.html
deleted file mode 100644
index 5b745c0e5d..0000000000
--- a/seahub/api2/templates/api2/new_msg_reply.html
+++ /dev/null
@@ -1,88 +0,0 @@
-{% extends "api2/base.html" %}
-
-{% load seahub_tags avatar_tags i18n %}
-{% load url from future %}
-
-{% block sub_title %}{% trans "New Replies" %} - {% endblock %}
-
-{% block main_panel %}
-
-{% for msg in group_msgs %}
-
-
- {% avatar msg.from_email 48 %}
-
-
-
- {{ msg.from_email|email2nickname }}
- {{ msg.timestamp|translate_seahub_time }}
-
-
{{ msg.message|seahub_urlize|find_at|linebreaksbr }}
- {% if msg.attachment %}
- {% with ma=msg.attachment %}
-
- {% if ma.src == 'recommend' %}
- {% if ma.attach_type == 'file' %}
- {% if ma.filetype != 'Image'%}
-

-
{{ ma.name }}
- {% else %}
- {% if ma.err %}
-
{{ma.err}}
- {% else %}
-

- {% endif %}
- {% endif %}
- {% else %}
-

-
{{ ma.name }}
- {% endif %}
- {% endif %}
-
- {% if ma.src == 'filecomment' %} {# compatible with comments already exist #}
-

-
{{ ma.name }}
- {% endif %}
-
- {% endwith %}
- {% endif %}
-
- {% if msg.reply_cnt > 0 %}
-
- {% else %}
-
- {% endif %}
-
- {% for r in msg.replies %}
- -
- {% avatar r.from_email 28 %}
-
-
{{ r.from_email|email2nickname }}
-
{{ r.timestamp|translate_seahub_time }}
-
{{ r.message|seahub_urlize|find_at }}
-
-
- {% endfor %}
-
-
-
-
-
-{% endfor %}
-{% endblock %}
-
-{% block extra_script %}
-
-{% endblock %}
diff --git a/seahub/api2/templates/api2/reply.html b/seahub/api2/templates/api2/reply.html
deleted file mode 100644
index 34607a620d..0000000000
--- a/seahub/api2/templates/api2/reply.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% load seahub_tags avatar_tags i18n %}
-
-
- {% avatar r.from_email 48 %}
-
-
{{ r.from_email|email2nickname }}
-
{{ r.timestamp|translate_seahub_time }}
-
{{ r.message|seahub_urlize|find_at }}
-
-
-
diff --git a/seahub/share/templates/share/links.html b/seahub/share/templates/share/links.html
index 1a305ab0a4..4e922710b5 100644
--- a/seahub/share/templates/share/links.html
+++ b/seahub/share/templates/share/links.html
@@ -29,7 +29,7 @@
 |
{{ fs.filename }} |
{% else %}
-
 |
+
 |
{{ fs.filename }} |
{% endif %}
{{ fs.repo.name }} |
@@ -70,7 +70,7 @@
{% for link in uploadlinks %}
-  |
+  |
{{ link.dir_name }} |
{{ link.repo.name }} |
{{ link.view_cnt }} |
@@ -162,7 +162,7 @@ $('.by-name, .by-time').click(function() {
// define 'sort by' functions
var by_name_up = function (a, b) {
- var a_name_code = a.name.charCodeAt(0); // get the first character code from a.name
+ var a_name_code = a.name.charCodeAt(0); // get the first character code from a.name
var b_name_code = b.name.charCodeAt(0);
if ((a_name_code >= 19968 && a_name_code <= 40869) &&
(b_name_code >= 19968 && b_name_code <= 40869)) {
@@ -179,7 +179,7 @@ $('.by-name, .by-time').click(function() {
}
};
var by_name_down = function (a, b) {
- var a_name_code = a.name.charCodeAt(0); // get the first character code from a.name
+ var a_name_code = a.name.charCodeAt(0); // get the first character code from a.name
var b_name_code = b.name.charCodeAt(0);
if ((a_name_code >= 19968 && a_name_code <= 40869) &&
(b_name_code >= 19968 && b_name_code <= 40869)) {
diff --git a/seahub/share/templates/share/list_priv_shared_folders.html b/seahub/share/templates/share/list_priv_shared_folders.html
index 99b221b340..fccc8d1b1b 100644
--- a/seahub/share/templates/share/list_priv_shared_folders.html
+++ b/seahub/share/templates/share/list_priv_shared_folders.html
@@ -19,7 +19,7 @@
{% for repo in shared_folders %}
-  |
+  |
{{ repo.props.repo_name }} |
{{ repo.props.user | email2nickname }} |
diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html
index 929ac71bc7..1079d94d4f 100644
--- a/seahub/templates/js/templates.html
+++ b/seahub/templates/js/templates.html
@@ -1218,7 +1218,7 @@
|