From da11416b391eb01fe9179ed7e06c31e92fe608cc Mon Sep 17 00:00:00 2001 From: krvpb024 Date: Thu, 25 Jan 2024 14:22:18 +0800 Subject: [PATCH] change layout structure by moving header --- .../template/templates/common/layout.html | 10 +- internal/template/templates/views/about.html | 10 +- .../templates/views/add_subscription.html | 10 +- .../template/templates/views/api_keys.html | 10 +- .../templates/views/bookmark_entries.html | 10 +- .../template/templates/views/categories.html | 10 +- .../templates/views/category_entries.html | 20 +- .../templates/views/category_feeds.html | 10 +- .../templates/views/choose_subscription.html | 10 +- .../templates/views/create_api_key.html | 10 +- .../templates/views/create_category.html | 10 +- .../template/templates/views/create_user.html | 10 +- .../templates/views/edit_category.html | 10 +- .../template/templates/views/edit_feed.html | 10 +- .../template/templates/views/edit_user.html | 10 +- internal/template/templates/views/entry.html | 321 +++++++++--------- .../templates/views/feed_entries.html | 10 +- internal/template/templates/views/feeds.html | 10 +- .../templates/views/history_entries.html | 10 +- internal/template/templates/views/import.html | 10 +- .../templates/views/integrations.html | 10 +- .../templates/views/search_entries.html | 10 +- .../template/templates/views/sessions.html | 10 +- .../template/templates/views/settings.html | 26 +- .../templates/views/shared_entries.html | 10 +- .../templates/views/unread_entries.html | 10 +- internal/template/templates/views/users.html | 10 +- .../templates/views/webauthn_rename.html | 10 +- internal/ui/static/css/common.css | 1 + 29 files changed, 338 insertions(+), 280 deletions(-) diff --git a/internal/template/templates/common/layout.html b/internal/template/templates/common/layout.html index b81fe1f6..4110bf9c 100644 --- a/internal/template/templates/common/layout.html +++ b/internal/template/templates/common/layout.html @@ -64,7 +64,7 @@ Skip to content -
+
+ {{ end }} {{ if .flashMessage }}
{{ .flashMessage }}
@@ -132,6 +129,9 @@ {{ if .flashErrorMessage }}
{{ .flashErrorMessage }}
{{ end }} + + {{template "header" .}} +
{{template "content" .}}
diff --git a/internal/template/templates/views/about.html b/internal/template/templates/views/about.html index 7a81856f..eab73af9 100644 --- a/internal/template/templates/views/about.html +++ b/internal/template/templates/views/about.html @@ -1,11 +1,13 @@ {{ define "title"}}{{ t "page.about.title" }}{{ end }} -{{ define "content"}} - + +{{ end }} +{{ define "content"}}

Miniflux