diff --git a/contacts/templates/contacts/contact_list.html b/contacts/templates/contacts/contact_list.html
index 5cf7cb79de..02f470dd10 100644
--- a/contacts/templates/contacts/contact_list.html
+++ b/contacts/templates/contacts/contact_list.html
@@ -31,7 +31,7 @@
{{ contact.note }} |
{% trans "Edit"%}
- {% trans "Delete"%}
+ {% trans "Delete"%}
|
{% endfor %}
@@ -111,7 +111,7 @@ $('#contact-edit-form').submit(function() {
return false;
});
-addConfirmTo($('.contact-delete'));
+addConfirmTo($('.contact-delete'), '{% trans "Delete Contact" %}', '{% trans "Are you sure you want to delete" %}');
$('#contact-add')
.click(function() {
diff --git a/group/templates/group/group_info.html b/group/templates/group/group_info.html
index 33bef0bdc1..b7e9fb43f0 100644
--- a/group/templates/group/group_info.html
+++ b/group/templates/group/group_info.html
@@ -55,7 +55,7 @@
{% if is_staff %}
{% trans "Administration" %}
{% else %}
- {% trans "Quit" %}
+ {% trans "Quit" %}
{% endif %}
@@ -98,7 +98,7 @@
{% if is_staff or repo.share_from_me %}
-
+
{% endif %}
|
@@ -193,8 +193,8 @@
{% block extra_script %}
{% include 'snippets/user_profile_js.html' %}
{% endblock %}
diff --git a/organizations/templates/organizations/org_admin.html b/organizations/templates/organizations/org_admin.html
index 11a3f18aad..1ea9ddb4c0 100644
--- a/organizations/templates/organizations/org_admin.html
+++ b/organizations/templates/organizations/org_admin.html
@@ -31,7 +31,7 @@
{% if not user.is_self %}
- {% trans "Delete" %}
+ {% trans "Delete" %}
{% endif %}
|
@@ -96,6 +96,6 @@ $('#org-user-add').click(function() {
}
);
-addConfirmTo($('.remove-user-btn'));
+addConfirmTo($('.remove-user-btn'), '{% trans "Delete Member" %}', '{% trans "Are you sure you want to delete" %}');
{% endblock %}
diff --git a/organizations/templates/organizations/org_group_admin.html b/organizations/templates/organizations/org_group_admin.html
index 8b0a0655e8..b4269a94a1 100644
--- a/organizations/templates/organizations/org_group_admin.html
+++ b/organizations/templates/organizations/org_group_admin.html
@@ -18,7 +18,7 @@
{{ group.props.group_name }} |
{{ group.props.creator_name }} |
{{ group.props.timestamp|tsstr_sec }} |
- {% trans "Delete" %} |
+ {% trans "Delete" %} |
{% endfor %}
@@ -57,7 +57,7 @@
{% block extra_script %}
{% endblock %}
diff --git a/organizations/templates/organizations/org_seafadmin.html b/organizations/templates/organizations/org_seafadmin.html
index d591ef72d4..8b0e4db509 100644
--- a/organizations/templates/organizations/org_seafadmin.html
+++ b/organizations/templates/organizations/org_seafadmin.html
@@ -20,7 +20,7 @@
{{ repo.props.name }} |
{{ repo.owner }} |
{{ repo.props.desc }} |
- {% trans "Delete" %} |
+ {% trans "Delete" %} |
{% endfor %}
@@ -59,6 +59,6 @@
{% block extra_script %}
{% endblock %}
diff --git a/templates/base.html b/templates/base.html
index 8a753c2f34..a63256c5fc 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -109,6 +109,11 @@
{% block main_panel %} {% endblock %}
+
-
-
{% trans "Really want to delete?" %}
-
-
-
diff --git a/templates/repo_view_snapshot.html b/templates/repo_view_snapshot.html
index 67ba9b4f68..c6ec8f41b3 100644
--- a/templates/repo_view_snapshot.html
+++ b/templates/repo_view_snapshot.html
@@ -41,7 +41,7 @@
{% trans "View"%}
- {% trans "Restore"%}
+ {% trans "Restore"%}
|
{% endfor %}
@@ -81,6 +81,6 @@
$('#back').click(function() {
location.href = $(this).attr('data');
});
- addConfirmTo($(".repo-revert"), '{% trans "Really want to restore this library?" %}');
+ addConfirmTo($('.repo-revert'), '{% trans "Restore Library" %}', '{% trans "Are you sure you want to restore this library" %}');
{% endblock %}
diff --git a/templates/snippets/my_owned_repos.html b/templates/snippets/my_owned_repos.html
index 7b88dfdf5f..134fb715f2 100644
--- a/templates/snippets/my_owned_repos.html
+++ b/templates/snippets/my_owned_repos.html
@@ -33,7 +33,7 @@
-
+
|
{% endfor %}
@@ -79,7 +79,7 @@
{{ repo.props.user|email2nickname }} |
-
+
|
{% endfor %}
diff --git a/templates/snippets/myhome_extra_script.html b/templates/snippets/myhome_extra_script.html
index c382280875..a072bf4a5c 100644
--- a/templates/snippets/myhome_extra_script.html
+++ b/templates/snippets/myhome_extra_script.html
@@ -29,11 +29,10 @@ $(function() {
}
});
- addConfirmTo($('.repo-delete-btn'), '{% trans "Really want to delete?" %}');
-
$('.unshare-btn').click(function() {
location.href = $(this).attr('data');
});
+ addConfirmTo($('.repo-delete-btn'), '{% trans "Delete Library" %}', '{% trans "Are you sure you want to delete" %}');
$(".download-btn").click(function() {
window.open('{{ SITE_ROOT }}seafile_access_check/?repo_id=' + $(this).attr('data'));
diff --git a/templates/sys_group_admin.html b/templates/sys_group_admin.html
index 1fc7f1d7ae..2d14d70bf3 100644
--- a/templates/sys_group_admin.html
+++ b/templates/sys_group_admin.html
@@ -18,7 +18,7 @@
{{ group.props.group_name }} |
{{ group.props.creator_name }} |
{{ group.props.timestamp|tsstr_sec }} |
- {% trans "Delete" %} |
+ {% trans "Delete" %} |
{% endfor %}
@@ -57,7 +57,7 @@
{% block extra_script %}
{% endblock %}
diff --git a/templates/sys_org_admin.html b/templates/sys_org_admin.html
index 33eae7a1d0..1e7ca9564d 100644
--- a/templates/sys_org_admin.html
+++ b/templates/sys_org_admin.html
@@ -20,7 +20,7 @@
{{ org.url_prefix }} |
{{ org.creator }} |
{{ org.ctime|tsstr_sec }} |
- {% trans "Delete" %} |
+ {% trans "Delete" %} |
{% endfor %}
@@ -58,7 +58,7 @@
{% block extra_script %}
{% endblock %}
diff --git a/templates/sys_seafadmin.html b/templates/sys_seafadmin.html
index 117eb6b0a2..07f751a0da 100644
--- a/templates/sys_seafadmin.html
+++ b/templates/sys_seafadmin.html
@@ -15,11 +15,11 @@
{% for repo in repos %}
-  |
+  |
{{ repo.props.name }} |
{{ repo.owner}} |
{{ repo.props.desc }} |
- {% trans "Delete" %} |
+ {% trans "Delete" %} |
{% endfor %}
@@ -58,7 +58,7 @@
{% block extra_script %}
{% endblock %}
diff --git a/templates/sys_useradmin.html b/templates/sys_useradmin.html
index 68656ef599..a01a023dc0 100644
--- a/templates/sys_useradmin.html
+++ b/templates/sys_useradmin.html
@@ -27,8 +27,8 @@
{% endif %}
{% if not user.is_self %}
- {% trans "Delete" %}
- {% trans "Password Reset" %}
+ {% trans "Delete" %}
+ {% trans "Password Reset" %}
{% endif %}
|
@@ -73,7 +73,7 @@ $('.activate').each(function(){
});
});
-addConfirmTo($('.remove-user-btn'));
-addConfirmTo($('.reset-user-btn'), '{% trans "Really reset?" %}');
+addConfirmTo($('.remove-user-btn'), '{% trans "Delete User" %}', '{% trans "Are you sure you want to delete" %}');
+addConfirmTo($('.reset-user-btn'), '{% trans "Password Reset" %}', '{% trans "Are you sure you want to reset password of" %}');
{% endblock %}
diff --git a/templates/userinfo.html b/templates/userinfo.html
index 78e1940897..d71abcbe1e 100644
--- a/templates/userinfo.html
+++ b/templates/userinfo.html
@@ -42,11 +42,11 @@
{% for repo in owned_repos %}
-  |
+  |
{{ repo.props.name }} |
{{ repo.props.desc }} |
- {% trans "Delete" %}
+ {% trans "Delete" %}
|
{% endfor %}
@@ -130,7 +130,6 @@ $('#set-quota-form .submit').click(function() {
return false;
});
-addConfirmTo($('.remove-user-repo'), '{% trans "Really delete this library?" %}');
-
+addConfirmTo($('.remove-user-repo'), '{% trans "Delete Library" %}', '{% trans "Are you sure you want to delete" %}');
{% endblock %}