From 872ab9f14eecc9c93f80712db8edc81eaae8aca8 Mon Sep 17 00:00:00 2001 From: llj Date: Sat, 25 Aug 2012 14:55:49 +0800 Subject: [PATCH] [file upload,update]extracted upload_progress_js --- templates/repo_update_file.html | 61 +----------------- templates/repo_upload_file.html | 63 +------------------ .../snippets/file_upload_progress_js.html | 62 ++++++++++++++++++ 3 files changed, 64 insertions(+), 122 deletions(-) create mode 100644 templates/snippets/file_upload_progress_js.html diff --git a/templates/repo_update_file.html b/templates/repo_update_file.html index 96f4f0e772..baaf167903 100644 --- a/templates/repo_update_file.html +++ b/templates/repo_update_file.html @@ -36,64 +36,5 @@ {% endblock %} {% block extra_script %} -{% if not cloud_mode or not no_quota %} - -{% endif %} +{% include 'snippets/file_upload_progress_js.html' %} {% endblock %} diff --git a/templates/repo_upload_file.html b/templates/repo_upload_file.html index 704ed12812..10c6bae41d 100644 --- a/templates/repo_upload_file.html +++ b/templates/repo_upload_file.html @@ -32,66 +32,5 @@ {% endblock %} {% block extra_script %} -{% if not cloud_mode or not no_quota %} - -{% endif %} +{% include 'snippets/file_upload_progress_js.html' %} {% endblock %} diff --git a/templates/snippets/file_upload_progress_js.html b/templates/snippets/file_upload_progress_js.html new file mode 100644 index 0000000000..ff97145dbc --- /dev/null +++ b/templates/snippets/file_upload_progress_js.html @@ -0,0 +1,62 @@ +{% if not cloud_mode or not no_quota %} + +{% endif %}