mistercrunch closed pull request #4638: [cosmetic] removing table border in
ModelView list
URL: https://github.com/apache/incubator-superset/pull/4638
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/superset/templates/superset/fab_overrides/list.html
b/superset/templates/superset/fab_overrides/list.html
new file mode 100644
index 0000000000..6584590444
--- /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 9ff883fcc6..54a98c2c4e 100644
--- a/superset/views/base.py
+++ b/superset/views/base.py
@@ -220,8 +220,13 @@ def common_bootsrap_payload(self):
}
+class SupersetListWidget(ListWidget):
+ template = 'superset/fab_overrides/list.html'
+
+
class SupersetModelView(ModelView):
page_size = 100
+ list_widget = SupersetListWidget
class ListWidgetWithCheckboxes(ListWidget):
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services