Show deleted notes count

This commit is contained in:
2020-08-19 00:16:00 +02:00
parent a98d6e8e64
commit 8ccd7f6058
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -51,6 +51,7 @@ class NoteView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
notes: List<PersistedNoteMetadata>,
currentPage: Int,
numberOfPages: Int,
numberOfDeletedNotes: Int,
tag: String?,
) = renderPage(title = "Notes", jwtPayload = jwtPayload) {
div("container mx-auto p-4") {
@@ -60,7 +61,7 @@ class NoteView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
a(
href = "/notes/trash",
classes = "underline font-semibold"
) { +"Trash" }
) { +"Trash ($numberOfDeletedNotes)" }
a(
href = "/notes/new",
classes = "ml-2 btn btn-green"