[extensions-web/feature/static-manifests] Rename static_paths tag to static_js_paths
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/feature/static-manifests] Rename static_paths tag to static_js_paths
- Date: Mon, 30 Jan 2017 16:46:17 +0000 (UTC)
commit 94cdc0a2d5eedcc2ffc3b320de760b26c19595df
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Mon Jan 30 19:29:57 2017 +0400
Rename static_paths tag to static_js_paths
sweettooth/templates/base.html | 2 +-
sweettooth/templates/templatetags/static_paths.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/templates/base.html b/sweettooth/templates/base.html
index d78f405..6b9279b 100644
--- a/sweettooth/templates/base.html
+++ b/sweettooth/templates/base.html
@@ -12,7 +12,7 @@
{% load static_paths %}
var require = {
baseUrl: '/static/js/',
- paths: {% static_paths %},
+ paths: {% static_js_paths %},
waitSeconds: 30 // It's fails sometimes with default 7 secs
};
</script>
diff --git a/sweettooth/templates/templatetags/static_paths.py
b/sweettooth/templates/templatetags/static_paths.py
index 7a93f68..92c5708 100644
--- a/sweettooth/templates/templatetags/static_paths.py
+++ b/sweettooth/templates/templatetags/static_paths.py
@@ -18,7 +18,7 @@ js_paths = None
@register.simple_tag
-def static_paths():
+def static_js_paths():
global js_paths
if isinstance(staticfiles_storage, ManifestStaticFilesStorage):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]