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
align topbar items
author
Akshay
date
1 year ago
(Feb 21, 2025, 1:25 PM UTC)
commit
013075f2
013075f2b1c3783e34fb40a35711281b577453c5
parent
42fa454d
42fa454df9cf79cf9cde7fc025b1504c53e3373a
+13
-14
2 changed files
Expand all
Collapse all
Unified
Split
appview
pages
templates
layouts
topbar.html
resolver.go
+13
-11
appview/pages/templates/layouts/topbar.html
Reviewed
···
1
1
{{ define "layouts/topbar" }}
2
2
{{ $linkstyle := "text-gray-400 hover:text-gray-900 no-underline" }}
3
3
-
<nav class="flex justify-between px-6 space-x-4 mb-4 py-2 border-b border-black">
4
4
-
<div id="left-items">
5
5
-
<a href="/" hx-boost="true" class="{{ $linkstyle }} flex gap-2">
6
6
-
<i class="w-6 h-6" data-lucide="tangent"></i>
7
7
-
tangled.sh
8
8
-
</a>
9
9
-
</div>
10
10
-
<div id="right-items" class="flex gap-2">
11
11
-
{{ with .LoggedInUser }}
3
3
+
<nav class="space-x-4 mb-4 py-2 border-b border-black">
4
4
+
<div class="container flex justify-between p-0">
5
5
+
<div id="left-items">
6
6
+
<a href="/" hx-boost="true" class="{{ $linkstyle }} flex gap-2">
7
7
+
<i class="w-6 h-6" data-lucide="tangent"></i>
8
8
+
tangled.sh
9
9
+
</a>
10
10
+
</div>
11
11
+
<div id="right-items" class="flex gap-2">
12
12
+
{{ with .LoggedInUser }}
12
13
<a href="/repo/new" hx-boost="true" class="{{ $linkstyle }}">
13
14
<i class="w-6 h-6" data-lucide="plus"></i>
14
15
</a>
···
18
19
<a href="/logout"class="{{ $linkstyle }}">
19
20
(logout)
20
21
</a>
21
21
-
{{ else }}
22
22
+
{{ else }}
22
23
<a href="/login" hx-boost="true" class="{{ $linkstyle }}">
23
24
login
24
25
</a>
25
25
-
{{ end }}
26
26
+
{{ end }}
27
27
+
</div>
26
28
</div>
27
29
</nav>
28
30
{{ end }}
-3
appview/resolver.go
Reviewed
···
31
31
results := make([]*identity.Identity, len(idents))
32
32
var wg sync.WaitGroup
33
33
34
34
-
// Create a channel to handle context cancellation
35
34
done := make(chan struct{})
36
35
defer close(done)
37
36
38
38
-
// Start a goroutine for each identifier
39
37
for idx, ident := range idents {
40
38
wg.Add(1)
41
39
go func(index int, id string) {
···
47
45
case <-done:
48
46
results[index] = nil
49
47
default:
50
50
-
// Resolve the identifier - if error, identity will be nil
51
48
identity, _ := r.ResolveIdent(ctx, id)
52
49
results[index] = identity
53
50
}