From 9bf5e936fed8ddcc01230264793e48116804158b Mon Sep 17 00:00:00 2001 From: Andrey Nikitin Date: Tue, 3 Jun 2025 17:32:04 +0300 Subject: [PATCH] Make status bar disappear without JS --- CHANGELOG.md | 6 +++++- internal/server/public/main.js | 2 +- internal/templates/pages/base.html | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b06b768..2324375 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,20 @@ # Changelog This file keeps track of changes in a human-readable fashion +## v2.0.0 stuff + + ## Upcoming These changes are not yet released -* Fully refactored the project internally +* Fully refactored the project internally to use several packages * Log *directory* is now specified as opposed to *file*. Files in that directory are generated as `hibiscus_YYYY-MM-DD_HH:MM:SS.log` * Adjusted default theme * Error pages are now translated * API: `/api/today` POST now behaves like other file uploads +* Disabling JS now makes the status bar disappear since it won't work ## v1.1.4 diff --git a/internal/server/public/main.js b/internal/server/public/main.js index 279b691..96cba24 100644 --- a/internal/server/public/main.js +++ b/internal/server/public/main.js @@ -45,6 +45,6 @@ function sanitize(title) { // Open a new note function newNote(text_prompt) { - name = sanitize(prompt(text_prompt + ':')) + let name = sanitize(prompt(text_prompt + ':')) window.location.replace('/notes/' + name) } \ No newline at end of file diff --git a/internal/templates/pages/base.html b/internal/templates/pages/base.html index a74d7bf..12f50ff 100644 --- a/internal/templates/pages/base.html +++ b/internal/templates/pages/base.html @@ -1,7 +1,7 @@ {{ define "header" }}

{{ config.Title }}

-

{{ translate "time.date" }} a place

+
{{ end }} @@ -25,6 +25,7 @@ {{- template "footer" . -}}