✨ Show movie release type in generated HTML
[rhynodge.git] / src / main / kotlin / net / pterodactylus / rhynodge / filters / webpages / savoy / MovieState.kt
index ea8f87c..74dd2c2 100644 (file)
@@ -48,9 +48,10 @@ class MovieState(@JsonProperty val movies: Collection<Movie>, val newMovies: Col
                                +"section.daily-programmes li.performance { width: 250px; height: 353px; display: inline-block; margin: 1ex 1ex 1ex 0ex; position: relative; }"
                                +"section.daily-programmes li.performance a { width: 100%; height: 100%; display: block; text-decoration: none; }"
                                +"section.daily-programmes li.performance a img { width: 100%; height: 100%; display: block; position: absolute; z-index: -1; }"
-                               +"section.daily-programmes li.performance a .text { color: white; text-shadow: 2px 2px black; font-weight: bold; font-size: 150%; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; }"
+                               +"section.daily-programmes li.performance a .text { color: white; text-shadow: 2px 2px black; font-weight: bold; font-size: 150%; width: 100%; height: 100%; }"
                                +"section.daily-programmes li.performance a .text .time { padding: 1ex; text-align: right; }"
-                               +"section.daily-programmes li.performance a .text .name { padding: 1ex; font-size: 120%; }"
+                               +"section.daily-programmes li.performance a .text .type { padding: 0ex 1ex 1ex 1ex; text-align: right; }"
+                               +"section.daily-programmes li.performance a .text .name { padding: 1ex; font-size: 120%; bottom: 0px; position: absolute; }"
                        }
                }
                body {
@@ -96,6 +97,9 @@ class MovieState(@JsonProperty val movies: Collection<Movie>, val newMovies: Col
                                                                                                        div("time") {
                                                                                                                +("%tH:%<tM".format(performance.time))
                                                                                                        }
+                                                                                                       div("type") {
+                                                                                                               +performance.type
+                                                                                                       }
                                                                                                        div("name") {
                                                                                                                +(movie.name)
                                                                                                        }