alpha
Login
or
Join now
dunkirk.sh
/
core
forked from
tangled.org/core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix dropdown styles
author
Akshay
date
1 year ago
(Mar 2, 2025, 6:29 PM UTC)
commit
ab45e810
ab45e810d3faffa7bf3e1a8f234351b9eafc1e0f
parent
38d10272
38d1027212bc0c3835d1207da08e1d1a8a7d5736
+24
-37
2 changed files
Expand all
Collapse all
Unified
Split
appview
pages
templates
layouts
base.html
topbar.html
+1
-1
appview/pages/templates/layouts/base.html
Reviewed
···
13
13
</head>
14
14
<body class="bg-slate-100">
15
15
<div class="container mx-auto px-1 pt-4 min-h-screen flex flex-col">
16
16
-
<header>
16
16
+
<header style="z-index: 5">
17
17
{{ block "topbar" . }}
18
18
{{ template "layouts/topbar" . }}
19
19
{{ end }}
+23
-36
appview/pages/templates/layouts/topbar.html
Reviewed
···
1
1
{{ define "layouts/topbar" }}
2
2
-
{{ $linkstyle := "text-black hover:text-gray-600 no-underline" }}
3
3
-
<nav
4
4
-
class="space-x-4 mb-4 px-6 py-2 rounded bg-white drop-shadow-sm"
5
5
-
>
2
2
+
<nav class="space-x-4 mb-4 px-6 py-2 rounded bg-white drop-shadow-sm">
6
3
<div class="container flex justify-between p-0">
7
4
<div id="left-items">
8
8
-
<a href="/" hx-boost="true" class="{{ $linkstyle }} flex gap-2">
5
5
+
<a href="/" hx-boost="true" class="flex gap-2">
9
6
<i class="w-6 h-6" data-lucide="tangent"></i>
10
7
tangled.sh
11
8
</a>
12
9
</div>
13
10
<div id="right-items" class="flex gap-2">
14
11
{{ with .LoggedInUser }}
15
15
-
<a
16
16
-
href="/repo/new"
17
17
-
hx-boost="true"
18
18
-
class="{{ $linkstyle }}"
19
19
-
>
12
12
+
<a href="/repo/new"hx-boost="true">
20
13
<i class="w-6 h-6" data-lucide="plus"></i>
21
14
</a>
22
22
-
<details class="relative inline-block text-left">
23
23
-
<summary
24
24
-
class="{{ $linkstyle }} cursor-pointer list-none"
25
25
-
>
26
26
-
{{ didOrHandle .Did .Handle }}
27
27
-
</summary>
28
28
-
<div
29
29
-
class="absolute flex flex-col right-0 mt-4 p-4 rounded w-48 bg-white border border-gray-200 z-999"
30
30
-
>
31
31
-
<a
32
32
-
href="/{{ didOrHandle .Did .Handle }}"
33
33
-
class="{{ $linkstyle }}"
34
34
-
>profile</a
35
35
-
>
36
36
-
<a href="/knots" class="{{ $linkstyle }}">knots</a>
37
37
-
<a href="/settings" class="{{ $linkstyle }}"
38
38
-
>settings</a
39
39
-
>
40
40
-
<a
41
41
-
href="/logout"
42
42
-
class="text-red-400 hover:text-red-700 no-underline"
43
43
-
>logout</a
44
44
-
>
45
45
-
</div>
46
46
-
</details>
15
15
+
{{ block "dropDown" . }} {{ end }}
47
16
{{ else }}
48
48
-
<a href="/login" class="{{ $linkstyle }}"> login </a>
17
17
+
<a href="/login">login</a>
49
18
{{ end }}
50
19
</div>
51
20
</div>
52
21
</nav>
53
22
{{ end }}
23
23
+
24
24
+
{{ define "dropDown" }}
25
25
+
<details class="relative inline-block text-left">
26
26
+
<summary
27
27
+
class="cursor-pointer list-none"
28
28
+
>
29
29
+
{{ didOrHandle .Did .Handle }}
30
30
+
</summary>
31
31
+
<div
32
32
+
class="absolute flex flex-col right-0 mt-4 p-4 rounded w-48 bg-white border border-gray-200"
33
33
+
>
34
34
+
<a href="/{{ didOrHandle .Did .Handle }}">profile</a>
35
35
+
<a href="/knots">knots</a>
36
36
+
<a href="/settings">settings</a>
37
37
+
<a href="/logout" class="text-red-400 hover:text-red-700">logout</a>
38
38
+
</div>
39
39
+
</details>
40
40
+
{{ end }}