From 535505e1c1d08c0e57c7b8c3c187a3961b889551 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Thu, 7 Aug 2025 11:03:23 +0100 Subject: [PATCH] appview/pages: rework topbar to incorporate strings Change-Id: nqxqwmkzuvwwstnmpqqwsxwwxosrokum Signed-off-by: oppiliappan --- appview/pages/templates/layouts/topbar.html | 23 +++++++++-- flake.lock | 44 ++++++++++----------- flake.nix | 2 +- 3 files changed, 43 insertions(+), 26 deletions(-) diff --git a/appview/pages/templates/layouts/topbar.html b/appview/pages/templates/layouts/topbar.html index 36878eb..9678336 100644 --- a/appview/pages/templates/layouts/topbar.html +++ b/appview/pages/templates/layouts/topbar.html @@ -9,9 +9,7 @@
{{ with .LoggedInUser }} - - {{ i "plus" "w-4 h-4" }} - + {{ block "newButton" . }} {{ end }} {{ block "dropDown" . }} {{ end }} {{ else }} login @@ -21,6 +19,24 @@ {{ end }} +{{ define "newButton" }} +
+ + {{ i "plus" "w-4 h-4" }} new + + +
+{{ end }} + {{ define "dropDown" }}
profile repositories + strings knots spindles settings diff --git a/flake.lock b/flake.lock index 238971e..db4dc57 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,23 @@ { "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "gitignore": { "inputs": { "nixpkgs": [ @@ -20,24 +38,6 @@ "type": "github" } }, - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1694529238, - "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "gomod2nix": { "inputs": { "flake-utils": "flake-utils", @@ -128,14 +128,14 @@ "lucide-src": { "flake": false, "locked": { - "lastModified": 1742302029, - "narHash": "sha256-OyPVtpnC4/AAmPq84Wt1r1Gcs48d9KG+UBCtZK87e9k=", + "lastModified": 1754044466, + "narHash": "sha256-+exBR2OToB1iv7ZQI2S4B0lXA/QRvC9n6U99UxGpJGs=", "type": "tarball", - "url": "https://github.com/lucide-icons/lucide/releases/download/0.483.0/lucide-icons-0.483.0.zip" + "url": "https://github.com/lucide-icons/lucide/releases/download/0.536.0/lucide-icons-0.536.0.zip" }, "original": { "type": "tarball", - "url": "https://github.com/lucide-icons/lucide/releases/download/0.483.0/lucide-icons-0.483.0.zip" + "url": "https://github.com/lucide-icons/lucide/releases/download/0.536.0/lucide-icons-0.536.0.zip" } }, "nixpkgs": { diff --git a/flake.nix b/flake.nix index d01c9f7..d797e37 100644 --- a/flake.nix +++ b/flake.nix @@ -22,7 +22,7 @@ flake = false; }; lucide-src = { - url = "https://github.com/lucide-icons/lucide/releases/download/0.483.0/lucide-icons-0.483.0.zip"; + url = "https://github.com/lucide-icons/lucide/releases/download/0.536.0/lucide-icons-0.536.0.zip"; flake = false; }; inter-fonts-src = { -- 2.43.0