diff --git a/src/assets/css/custom.css b/src/assets/css/custom.css index 9b9a22f..86de63b 100644 --- a/src/assets/css/custom.css +++ b/src/assets/css/custom.css @@ -115,6 +115,10 @@ border: none!important; } +.select2-container--default .select2-selection--multiple { + border: none!important; +} + .select2-container--default .select2-selection--single .select2-selection__arrow { display: none!important; } diff --git a/src/signal_documentation/settings.py b/src/signal_documentation/settings.py index e7d5ff0..77521fe 100644 --- a/src/signal_documentation/settings.py +++ b/src/signal_documentation/settings.py @@ -24,6 +24,7 @@ from sentry_sdk.integrations.redis import RedisIntegration EPIVIS_URL = "https://deploy-preview-36--cmu-delphi-epivis.netlify.app/" +DATA_EXPORT_URL = "https://api.covidcast.cmu.edu/epidata/covidcast/csv" SENTRY_DSN = os.environ.get('SENTRY_DSN') if SENTRY_DSN: diff --git a/src/signals/views.py b/src/signals/views.py index de4f8f0..52d34d8 100644 --- a/src/signals/views.py +++ b/src/signals/views.py @@ -102,6 +102,7 @@ def get_context_data(self, **kwargs) -> Dict[str, Any]: context: Dict[str, Any] = super().get_context_data(**kwargs) context["epivis_url"] = settings.EPIVIS_URL + context["data_export_url"] = settings.DATA_EXPORT_URL return context diff --git a/src/templates/signals/epivis_block.html b/src/templates/signals/epivis_block.html deleted file mode 100644 index 5543868..0000000 --- a/src/templates/signals/epivis_block.html +++ /dev/null @@ -1,124 +0,0 @@ -
Plot data
-
-
-
-
-
-
-
- -
-
- -
-
-
-
- -
-
- -
-
-
-
- -
-
- -
-
-
-
- -
-
- -
-
-
- -
-
-
-
-
-
- diff --git a/src/templates/signals/epivis_export_data_block.html b/src/templates/signals/epivis_export_data_block.html new file mode 100644 index 0000000..faa2950 --- /dev/null +++ b/src/templates/signals/epivis_export_data_block.html @@ -0,0 +1,225 @@ +
Plot / Export data
+
+
+
+
+
+
+
+ +
+
+
+ + +
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ + +
+ +
+
+
+
+
+
+ diff --git a/src/templates/signals/signal_detail.html b/src/templates/signals/signal_detail.html index 8a4a810..084217e 100644 --- a/src/templates/signals/signal_detail.html +++ b/src/templates/signals/signal_detail.html @@ -221,7 +221,7 @@
Response Example
{% endif %} - {% include "signals/epivis_block.html"%} + {% include "signals/epivis_export_data_block.html"%}
Related links