aboutsummaryrefslogtreecommitdiff
path: root/shared/TextTemplates.scala
diff options
context:
space:
mode:
Diffstat (limited to 'shared/TextTemplates.scala')
-rw-r--r--shared/TextTemplates.scala41
1 files changed, 25 insertions, 16 deletions
diff --git a/shared/TextTemplates.scala b/shared/TextTemplates.scala
index 0dd45c5..5674eac 100644
--- a/shared/TextTemplates.scala
+++ b/shared/TextTemplates.scala
@@ -9,8 +9,7 @@ object TextTemplates extends Templates(scalatags.Text) {
div(id := "scalajs-error", style := "display: none;")(
"ScalaJS raised an exception. See the log for more information."
),
- script(`type` := "text/javascript",
- src := "/out.js"),
+ script(`type` := "text/javascript", src := "/out.js"),
script(`type` := "text/javascript")(
raw(
"""|document.addEventListener("DOMContentLoaded", function(event) {
@@ -40,20 +39,30 @@ object TextTemplates extends Templates(scalatags.Text) {
def page(messages: Seq[Message], js: Boolean = true) = html(
head(
- link(rel := "stylesheet",
- `type` := "text/css",
- href := "/assets/lib/bootstrap-4.1.0/css/bootstrap-reboot.min.css"),
- link(rel := "stylesheet",
- `type` := "text/css",
- href := "/assets/lib/bootstrap-4.1.0/css/bootstrap-grid.min.css"),
- link(rel := "stylesheet",
- `type` := "text/css",
- href := "/assets/lib/bootstrap-4.1.0/css/bootstrap.min.css"),
- link(rel := "stylesheet",
- `type` := "text/css",
- href := "/assets/main.css"),
- meta(name := "viewport",
- content := "width=device-width, initial-scale=1, shrink-to-fit=no")
+ link(
+ rel := "stylesheet",
+ `type` := "text/css",
+ href := "/assets/lib/bootstrap-4.1.0/css/bootstrap-reboot.min.css"
+ ),
+ link(
+ rel := "stylesheet",
+ `type` := "text/css",
+ href := "/assets/lib/bootstrap-4.1.0/css/bootstrap-grid.min.css"
+ ),
+ link(
+ rel := "stylesheet",
+ `type` := "text/css",
+ href := "/assets/lib/bootstrap-4.1.0/css/bootstrap.min.css"
+ ),
+ link(
+ rel := "stylesheet",
+ `type` := "text/css",
+ href := "/assets/main.css"
+ ),
+ meta(
+ name := "viewport",
+ content := "width=device-width, initial-scale=1, shrink-to-fit=no"
+ )
),
body(
conversation(messages),