From: Thierry Parmentelat Date: Thu, 20 Dec 2012 09:22:30 +0000 (+0100) Subject: renamed template/static files where they belong X-Git-Tag: myslice-django-0.1-1~120 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=940c937b5e7165e3ac65c95ab010ca69313645e1 renamed template/static files where they belong --- 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