From 0c12a2033bcb737c05c472cb069a288f44b3872a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 12 Nov 2013 17:03:41 +0100 Subject: [PATCH] bye bye resources_selected, welcome queryupdater --- plugins/{resources_selected => queryupdater}/__init__.py | 2 +- .../static/css/queryupdater.css} | 2 +- .../static/js/queryupdater.js} | 6 +++--- .../templates/queryupdater.html} | 0 portal/sliceview.py | 6 +++--- unfold/static/css/onelab_marko.css | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) rename plugins/{resources_selected => queryupdater}/__init__.py (93%) rename plugins/{resources_selected/static/css/resources_selected.css => queryupdater/static/css/queryupdater.css} (94%) rename plugins/{resources_selected/static/js/resources_selected.js => queryupdater/static/js/queryupdater.js} (99%) rename plugins/{resources_selected/templates/resources_selected.html => queryupdater/templates/queryupdater.html} (100%) diff --git a/plugins/resources_selected/__init__.py b/plugins/queryupdater/__init__.py similarity index 93% rename from plugins/resources_selected/__init__.py rename to plugins/queryupdater/__init__.py index a5bbac70..9b347d3e 100644 --- a/plugins/resources_selected/__init__.py +++ b/plugins/queryupdater/__init__.py @@ -1,6 +1,6 @@ from unfold.plugin import Plugin -class ResourcesSelected(Plugin): +class QueryUpdater(Plugin): def template_file (self): return "resources_selected.html" diff --git a/plugins/resources_selected/static/css/resources_selected.css b/plugins/queryupdater/static/css/queryupdater.css similarity index 94% rename from plugins/resources_selected/static/css/resources_selected.css rename to plugins/queryupdater/static/css/queryupdater.css index dfefb466..05c7a35e 100644 --- a/plugins/resources_selected/static/css/resources_selected.css +++ b/plugins/queryupdater/static/css/queryupdater.css @@ -1,5 +1,5 @@ /* - Document : ResourcesSelected + Document : QueryUpdater Created on : 9 aout 2012, 11:54:41 Author : loicbaron Description: diff --git a/plugins/resources_selected/static/js/resources_selected.js b/plugins/queryupdater/static/js/queryupdater.js similarity index 99% rename from plugins/resources_selected/static/js/resources_selected.js rename to plugins/queryupdater/static/js/queryupdater.js index 0e710a49..ebfa6eb5 100644 --- a/plugins/resources_selected/static/js/resources_selected.js +++ b/plugins/queryupdater/static/js/queryupdater.js @@ -1,5 +1,5 @@ /** - * MySlice ResourcesSelected plugin + * MySlice QueryUpdater plugin * Version: 0.1.0 * URL: http://www.myslice.info * Description: display of selected resources @@ -23,7 +23,7 @@ // Record state through the query cycle - var ResourcesSelected = Plugin.extend({ + var QueryUpdater = Plugin.extend({ init: function(options, element) { @@ -447,6 +447,6 @@ }); - $.plugin('ResourcesSelected', ResourcesSelected); + $.plugin('QueryUpdater', QueryUpdater); })(jQuery); diff --git a/plugins/resources_selected/templates/resources_selected.html b/plugins/queryupdater/templates/queryupdater.html similarity index 100% rename from plugins/resources_selected/templates/resources_selected.html rename to plugins/queryupdater/templates/queryupdater.html diff --git a/portal/sliceview.py b/portal/sliceview.py index 4037e753..c1dcdbf3 100644 --- a/portal/sliceview.py +++ b/portal/sliceview.py @@ -12,7 +12,7 @@ from plugins.raw import Raw from plugins.stack import Stack from plugins.tabs import Tabs from plugins.querytable import QueryTable -from plugins.resources_selected import ResourcesSelected +from plugins.queryupdater import QueryUpdater from plugins.googlemap import GoogleMap from plugins.senslabmap import SensLabMap from plugins.querycode import QueryCode @@ -102,9 +102,9 @@ class SliceView (LoginRequiredAutoLogoutView): ) # -------------------------------------------------------------------------- - # ResourcesSelected (Pending Operations) + # QueryUpdater (Pending Operations) - main_stack.insert(ResourcesSelected( + main_stack.insert(QueryUpdater( page = page, title = 'Pending operations', query = main_query, diff --git a/unfold/static/css/onelab_marko.css b/unfold/static/css/onelab_marko.css index 92253f90..c1079f28 100644 --- a/unfold/static/css/onelab_marko.css +++ b/unfold/static/css/onelab_marko.css @@ -312,7 +312,7 @@ table.query-editor { } .query-editor-spacer, -.plugin.ResourcesSelected, +.plugin.QueryUpdater, .plugin.Tabs { margin-top: 60px !important; } -- 2.43.0