File tree Expand file tree Collapse file tree 3 files changed +32
-5
lines changed Expand file tree Collapse file tree 3 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ extension Unidoc
30
30
extension Unidoc . BuildCoordinator
31
31
{
32
32
public static
33
- func run< T> ( watching db : Unidoc . Database ,
34
- registrar : any Unidoc . Registrar ,
33
+ func run< T> ( registrar : any Unidoc . Registrar ,
34
+ watching db : Unidoc . Database ,
35
35
with body: ( Unidoc . BuildCoordinator ) async throws -> T ) async rethrows -> T
36
36
{
37
37
let events : AsyncStream < Event >
Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ extension Unidoc.UserSettingsPage
4
4
{
5
5
struct Installation
6
6
{
7
+ let organization : String ?
7
8
let id : Int32 ?
8
9
9
- init ( id: Int32 ? )
10
+ init ( organization : String ? , id: Int32 ? )
10
11
{
12
+ self . organization = organization
11
13
self . id = id
12
14
}
13
15
}
@@ -22,7 +24,11 @@ extension Unidoc.UserSettingsPage.Installation:HTML.OutputStreamable
22
24
div [ . a]
23
25
{
24
26
$0. target = " _blank "
25
- $0. href = " https://github.com/settings/installations/ \( id) "
27
+ $0. href = self . organization. map
28
+ {
29
+ " https://github.com/organizations/ \( $0) /settings/installations/ \( id) "
30
+ } ?? " https://github.com/settings/installations/ \( id) "
31
+
26
32
$0. rel = . external
27
33
} = " installation settings "
28
34
}
Original file line number Diff line number Diff line change @@ -78,8 +78,9 @@ extension Unidoc.UserSettingsPage:Unidoc.ApplicationPage
78
78
{
79
79
$0 [ . a]
80
80
{
81
- $0. href = " https://github.com/ \( github. login) "
82
81
$0. target = " _blank "
82
+ $0. href = " https://github.com/ \( github. login) "
83
+ $0. rel = . external
83
84
} = " @ \( github. login) "
84
85
85
86
guard
@@ -150,6 +151,25 @@ extension Unidoc.UserSettingsPage:Unidoc.ApplicationPage
150
151
}
151
152
}
152
153
154
+ // $0[.p]
155
+ // {
156
+ // $0[.label]
157
+ // {
158
+ // $0.class = "checkbox"
159
+ // }
160
+ // content:
161
+ // {
162
+ // $0[.input]
163
+ // {
164
+ // $0.type = "checkbox"
165
+ // $0.name = "private"
166
+ // $0.value = "true"
167
+ // }
168
+
169
+ // $0[.span] = "This is a private repository"
170
+ // }
171
+ // }
172
+
153
173
$0 [ . button]
154
174
{
155
175
$0. class = " area "
@@ -182,6 +202,7 @@ extension Unidoc.UserSettingsPage:Unidoc.ApplicationPage
182
202
for organization : Unidoc . User in self . organizations
183
203
{
184
204
$0 [ . li] = organization. card ( some: Installation . init (
205
+ organization: organization. symbol,
185
206
id: organization. githubInstallation) )
186
207
}
187
208
}
You can’t perform that action at this time.
0 commit comments