From 940c937b5e7165e3ac65c95ab010ca69313645e1 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 20 Dec 2012 10:22:30 +0100 Subject: [PATCH] renamed template/static files where they belong --- Makefile | 7 +++++++ engine/plugin.py | 2 +- .../widget-plugin.html => engine/templates/plugin.html | 0 {engine => plugins}/static/js/with-datatables.js | 0 4 files changed, 8 insertions(+), 1 deletion(-) rename templates/widget-plugin.html => engine/templates/plugin.html (100%) rename {engine => plugins}/static/js/with-datatables.js (100%) diff --git a/Makefile b/Makefile index 19418dbd..92f9d13d 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,13 @@ tags: force ftags: force find . -type f | fgrep -v '/.git/' | xargs etags +list-html: force + @find . -type f -name '*.html' +list-js: force + @find . -type f -name '*.js' | grep -v '/all-static/' +list-css: force + @find . -type f -name '*.css' | grep -v '/all-static/' + #################### manage static contents (extract from all the modules into the single all-static location) static: force ./manage.py collectstatic --noinput diff --git a/engine/plugin.py b/engine/plugin.py index 0d840eb8..c7df2d34 100644 --- a/engine/plugin.py +++ b/engine/plugin.py @@ -71,7 +71,7 @@ class Plugin: # expose _settings in json format to js settings_json = json.dumps (self._settings, separators=(',',':')) - result = render_to_string ('widget-plugin.html', + result = render_to_string ('plugin.html', {'uuid':uuid, 'classname':classname, 'visible':self.is_visible(), diff --git a/templates/widget-plugin.html b/engine/templates/plugin.html similarity index 100% rename from templates/widget-plugin.html rename to engine/templates/plugin.html diff --git a/engine/static/js/with-datatables.js b/plugins/static/js/with-datatables.js similarity index 100% rename from engine/static/js/with-datatables.js rename to plugins/static/js/with-datatables.js -- 2.43.0