From d276be8d5080c793d1ec1e9a95861d67ff6e4a01 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Wed, 3 Feb 2016 20:19:54 -0800 Subject: [PATCH] Moving CSS templates link to Sources --- panoramix/views.py | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/panoramix/views.py b/panoramix/views.py index 94738b1cdbb33..95f64db704ad1 100644 --- a/panoramix/views.py +++ b/panoramix/views.py @@ -198,20 +198,6 @@ class ClusterModelView(PanoramixModelView, DeleteMixin): category_icon='fa-database',) -class CssTemplateModelView(PanoramixModelView, DeleteMixin): - datamodel = SQLAInterface(models.CssTemplate) - list_columns = ['template_name'] - edit_columns = ['template_name', 'css'] - add_columns = edit_columns - -appbuilder.add_view( - CssTemplateModelView, - "CSS Templates", - icon="fa-css3", - category="", - category_icon='',) - - class SliceModelView(PanoramixModelView, DeleteMixin): datamodel = SQLAInterface(models.Slice) can_add = False @@ -637,3 +623,20 @@ def featured_datasets(self): category='Sources', category_icon='fa-database', icon="fa-cog") + + +class CssTemplateModelView(PanoramixModelView, DeleteMixin): + datamodel = SQLAInterface(models.CssTemplate) + list_columns = ['template_name'] + edit_columns = ['template_name', 'css'] + add_columns = edit_columns + +appbuilder.add_separator("Sources") +appbuilder.add_view( + CssTemplateModelView, + "CSS Templates", + icon="fa-css3", + category="Sources", + category_icon='',) + +