Click on tag from a single note

This commit is contained in:
Hubert Van De Walle 2020-08-17 17:18:05 +02:00
parent 25e29afcbb
commit 845ca2acb8

View File

@ -75,7 +75,7 @@ class NoteView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
span("space-x-2") { span("space-x-2") {
tags.forEach { tags.forEach {
a(href = "?tag=$it", classes = "tag") { a(href = "?tag=$it", classes = "tag") {
span { +"#$it" } +"#$it"
} }
} }
} }
@ -108,9 +108,11 @@ class NoteView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
div("container mx-auto p-4") { div("container mx-auto p-4") {
div("flex items-center justify-between mb-4") { div("flex items-center justify-between mb-4") {
h1("text-3xl fond-bold underline") { +note.meta.title } h1("text-3xl fond-bold underline") { +note.meta.title }
span { span("space-x-2") {
note.meta.tags.forEach { note.meta.tags.forEach {
span("tag ml-2") { +"#$it" } a(href = "/notes?tag=$it", classes = "tag") {
+"#$it"
}
} }
} }
} }