Click on tag from a single note
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user