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