Lint
This commit is contained in:
@@ -64,7 +64,7 @@ class NoteView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
|
||||
ul {
|
||||
notes.forEach { (title, tags, _, uuid) ->
|
||||
li("flex justify-between") {
|
||||
a(classes = "text-blue-200 text-xl hover:underline", href = "/notes/${uuid}") {
|
||||
a(classes = "text-blue-200 text-xl hover:underline", href = "/notes/$uuid") {
|
||||
+title
|
||||
}
|
||||
span {
|
||||
@@ -84,9 +84,9 @@ class NoteView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
|
||||
|
||||
private fun DIV.pagination(currentPage: Int, numberOfPages: Int) {
|
||||
val links = mutableListOf<Pair<String, String>>()
|
||||
//if (currentPage > 1) links += "Previous" to "?page=${currentPage - 1}"
|
||||
// if (currentPage > 1) links += "Previous" to "?page=${currentPage - 1}"
|
||||
links += (1..numberOfPages).map { "$it" to "?page=$it" }
|
||||
//if (currentPage < numberOfPages) links += "Next" to "?page=${currentPage + 1}"
|
||||
// if (currentPage < numberOfPages) links += "Next" to "?page=${currentPage + 1}"
|
||||
|
||||
nav("pages") {
|
||||
links.forEach { (name, href) ->
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract class View(private val staticFileResolver: StaticFileResolver) {
|
||||
title("$title - SimpleNotes")
|
||||
description?.let { meta(name = "description", content = it) }
|
||||
link(rel = "stylesheet", href = styles)
|
||||
link(rel = "shortcut icon", href="/favicon.ico", type = "image/x-icon")
|
||||
link(rel = "shortcut icon", href = "/favicon.ico", type = "image/x-icon")
|
||||
}
|
||||
body("bg-gray-900 text-white") {
|
||||
navbar(jwtPayload)
|
||||
|
||||
Reference in New Issue
Block a user