From 6a3a7a85ef2f63e88a8c96aa3ab525ce843024f9 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 28 Oct 2024 13:04:08 +0100 Subject: feat: Add login link to the header --- scss/main.scss | 7 ++ templates/base.qtpl | 2 +- templates/navbar.qtpl | 4 ++ templates/navbar.qtpl.go | 172 +++++++++++++++++++++++++---------------------- 4 files changed, 102 insertions(+), 83 deletions(-) diff --git a/scss/main.scss b/scss/main.scss index 0766f82..b76423f 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -74,6 +74,13 @@ $utilities: ( class: me, values: map-merge($spacers, (auto: auto)) ), + "margin-start": ( + responsive: true, + property: margin-left, + class: ms, + values: map-merge($spacers, (auto: auto)) + ), + ); @import "bootstrap/scss/utilities/_api.scss"; diff --git a/templates/base.qtpl b/templates/base.qtpl index 7063829..566308f 100644 --- a/templates/base.qtpl +++ b/templates/base.qtpl @@ -43,7 +43,7 @@ Page prints a page implementing Page interface. {%= p.Title() %} - + diff --git a/templates/navbar.qtpl b/templates/navbar.qtpl index 8614181..8f5f9e1 100644 --- a/templates/navbar.qtpl +++ b/templates/navbar.qtpl @@ -16,6 +16,7 @@ const ( Summary Refs Tree + Login ) %} @@ -25,6 +26,9 @@ const (