File tree Expand file tree Collapse file tree 2 files changed +19
-14
lines changed
Sources/UnidocUI/Endpoints Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ extension Unidoc.DocsEndpoint.PackagePage:Unidoc.ApicalPage
122
122
switch repo. origin
123
123
{
124
124
case . github( let origin) :
125
- $0 [ . dt] = " Provider "
125
+ $0 [ . dt] = " Registrar "
126
126
$0 [ . dd] = " GitHub "
127
127
128
128
if let license: Unidoc . PackageLicense = repo. license
Original file line number Diff line number Diff line change @@ -155,18 +155,26 @@ extension Unidoc.RefsPage
155
155
$0 [ . dt] = " Owner "
156
156
$0 [ . dd]
157
157
{
158
- $0 [ . a ]
158
+ if let account : Unidoc . Account = self . package . repo ? . account
159
159
{
160
- $0. href = " https://github.com/ \( origin. owner) "
161
- $0. rel = . external
162
- } = " @ \( origin. owner) "
160
+ $0 [ . a]
161
+ {
162
+ $0. href = " \( Unidoc . UserPropertyEndpoint [ account] ) "
163
+ } = origin. owner
164
+ }
165
+ else
166
+ {
167
+ $0 [ . span] = origin. owner
168
+ }
163
169
164
170
$0 [ . span, { $0. class = " parenthetical " } ]
165
171
{
166
172
$0 [ . a]
167
173
{
168
- $0. href = " \( Unidoc . RulesEndpoint [ self . package . symbol] ) "
169
- } = " manage collaborators "
174
+ $0. target = " _blank "
175
+ $0. href = " https://github.com/ \( origin. owner) "
176
+ $0. rel = . external
177
+ } = " view profile "
170
178
}
171
179
}
172
180
@@ -195,14 +203,11 @@ extension Unidoc.RefsPage
195
203
}
196
204
}
197
205
198
- if let account : Unidoc . Account = self . package . repo ? . account
206
+ section [ . a ]
199
207
{
200
- section [ . a]
201
- {
202
- $0. class = " area "
203
- $0. href = " \( Unidoc . UserPropertyEndpoint [ account] ) "
204
- } = " More packages by this author "
205
- }
208
+ $0. class = " area "
209
+ $0. href = " \( Unidoc . RulesEndpoint [ self . package . symbol] ) "
210
+ } = " Manage contributors "
206
211
207
212
section [ . h2] = Heading . tags
208
213
section [ . table] = self . versions. table
You can’t perform that action at this time.
0 commit comments