superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [cosmetic] removing table border in ModelView list (#4638)
Date Mon, 19 Mar 2018 18:02:43 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 83f8f98  [cosmetic] removing table border in ModelView list (#4638)
83f8f98 is described below

commit 83f8f98ae3e472bfb3d9d9f6016c2c3719d1186f
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Mon Mar 19 11:02:40 2018 -0700

    [cosmetic] removing table border in ModelView list (#4638)
---
 superset/templates/superset/fab_overrides/list.html | 6 ++++++
 superset/views/base.py                              | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/superset/templates/superset/fab_overrides/list.html b/superset/templates/superset/fab_overrides/list.html
new file mode 100644
index 0000000..6584590
--- /dev/null
+++ b/superset/templates/superset/fab_overrides/list.html
@@ -0,0 +1,6 @@
+{% extends 'appbuilder/general/widgets/list.html' %}
+
+{% block begin_content scoped %}
+    <div class="table-responsive">
+    <table class="table table-hover">
+{% endblock %}
diff --git a/superset/views/base.py b/superset/views/base.py
index 9ff883f..54a98c2 100644
--- a/superset/views/base.py
+++ b/superset/views/base.py
@@ -220,8 +220,13 @@ class BaseSupersetView(BaseView):
         }
 
 
+class SupersetListWidget(ListWidget):
+    template = 'superset/fab_overrides/list.html'
+
+
 class SupersetModelView(ModelView):
     page_size = 100
+    list_widget = SupersetListWidget
 
 
 class ListWidgetWithCheckboxes(ListWidget):

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message