From f3a39be7b6357d0288f696d8cb6472503277061c Mon Sep 17 00:00:00 2001 From: gered Date: Thu, 31 May 2018 17:57:28 -0400 Subject: [PATCH] use specific version (3.3.7) of bootstrap css, since we're using that js that'll teach me for using a cdn url always pointing to the latest version ... --- src/mtgcoll/routes/main_page.clj | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mtgcoll/routes/main_page.clj b/src/mtgcoll/routes/main_page.clj index 08e570f..16a842e 100644 --- a/src/mtgcoll/routes/main_page.clj +++ b/src/mtgcoll/routes/main_page.clj @@ -6,11 +6,20 @@ [hiccup.page :refer [include-css include-js]] [hiccup.element :refer [javascript-tag]] [webtools.page :refer [html5 js-env-settings]] - [webtools.reagent.page :refer [include-bootstrap-metatags include-bootstrap-css]] + [webtools.reagent.page :refer [include-bootstrap-metatags]] [mtgcoll.config :as config]) (:use mtgcoll.utils)) +(defn- include-bootstrap-css + [& [use-bootstrap-theme?]] + (->> ["https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" + (if use-bootstrap-theme? "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css") + "https://npmcdn.com/react-bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" + "https://npmcdn.com/react-select/dist/react-select.min.css"] + (remove nil?) + (apply include-css))) + (defn main-page [request] (html5