Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: rework topbar to incorporate strings

Signed-off-by: oppiliappan <me@oppi.li>

authored by

oppiliappan and committed by
Tangled
2dc57b41 3b90d382

+21 -4
+20 -3
appview/pages/templates/layouts/topbar.html
··· 9 9 10 10 <div id="right-items" class="flex items-center gap-2"> 11 11 {{ with .LoggedInUser }} 12 - <a href="/repo/new" hx-boost="true" class="btn-create hover:no-underline hover:text-white"> 13 - {{ i "plus" "w-4 h-4" }} 14 - </a> 12 + {{ block "newButton" . }} {{ end }} 15 13 {{ block "dropDown" . }} {{ end }} 16 14 {{ else }} 17 15 <a href="/login">login</a> ··· 21 23 </div> 22 24 </div> 23 25 </nav> 26 + {{ end }} 27 + 28 + {{ define "newButton" }} 29 + <details class="relative inline-block text-left"> 30 + <summary class="btn-create py-0 cursor-pointer list-none flex items-center gap-2"> 31 + {{ i "plus" "w-4 h-4" }} new 32 + </summary> 33 + <div class="absolute flex flex-col right-0 mt-4 p-4 rounded w-48 bg-white dark:bg-gray-800 dark:text-white border border-gray-200 dark:border-gray-700"> 34 + <a href="/repo/new" class="flex items-center gap-2"> 35 + {{ i "book-plus" "w-4 h-4" }} 36 + new repository 37 + </a> 38 + <a href="/strings/new" class="flex items-center gap-2"> 39 + {{ i "line-squiggle" "w-4 h-4" }} 40 + new string 41 + </a> 42 + </div> 43 + </details> 24 44 {{ end }} 25 45 26 46 {{ define "dropDown" }} ··· 54 38 > 55 39 <a href="/{{ $user }}">profile</a> 56 40 <a href="/{{ $user }}?tab=repos">repositories</a> 41 + <a href="/strings/{{ $user }}">strings</a> 57 42 <a href="/knots">knots</a> 58 43 <a href="/spindles">spindles</a> 59 44 <a href="/settings">settings</a>
flake.lock

This is a binary file and will not be displayed.

+1 -1
flake.nix
··· 22 22 flake = false; 23 23 }; 24 24 lucide-src = { 25 - url = "https://github.com/lucide-icons/lucide/releases/download/0.483.0/lucide-icons-0.483.0.zip"; 25 + url = "https://github.com/lucide-icons/lucide/releases/download/0.536.0/lucide-icons-0.536.0.zip"; 26 26 flake = false; 27 27 }; 28 28 inter-fonts-src = {