⋯ 17 hidden lines@@ -168,58 +185,58 @@ func InboxRepos(p InboxPage) templ.Component { 168 }() 185 }() 169 } 186 } 170 ctx = templ.InitializeContext(ctx) 187 ctx = templ.InitializeContext(ctx) 171 - templ_7745c5c3_Var7 := templ.GetChildren(ctx) 188 + templ_7745c5c3_Var8 := templ.GetChildren(ctx) 172 - if templ_7745c5c3_Var7 == nil { 189 + if templ_7745c5c3_Var8 == nil { 173 - templ_7745c5c3_Var7 = templ.NopComponent 190 + templ_7745c5c3_Var8 = templ.NopComponent 174 } 191 } 175 ctx = templ.ClearChildren(ctx) 192 ctx = templ.ClearChildren(ctx) 176 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "<nav id=\"inbox-repos\" class=\"since\" aria-label=\"Repository\">" ) 193 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "<nav id=\"inbox-repos\" class=\"since\" aria-label=\"Repository\">" ) 177 if templ_7745c5c3_Err != nil { 194 if templ_7745c5c3_Err != nil { 178 return templ_7745c5c3_Err 195 return templ_7745c5c3_Err 179 } 196 } 180 for _, r := range p.Repos { 197 for _, r := range p.Repos { 181 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "<a href=\"" ) 198 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "<a href=\"" ) 182 if templ_7745c5c3_Err != nil { 199 if templ_7745c5c3_Err != nil { 183 return templ_7745c5c3_Err 200 return templ_7745c5c3_Err 184 } 201 } 185 - var templ_7745c5c3_Var8 templ.SafeURL 202 + var templ_7745c5c3_Var9 templ.SafeURL 186 - templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(r.Href)) 203 + templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(r.Href)) 187 if templ_7745c5c3_Err != nil { 204 if templ_7745c5c3_Err != nil { 188 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 31, Col: 32} 205 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 32, Col: 32} 189 } 206 } 190 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) 207 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) 191 if templ_7745c5c3_Err != nil { 208 if templ_7745c5c3_Err != nil { 192 return templ_7745c5c3_Err 209 return templ_7745c5c3_Err 193 } 210 } 194 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "\"" ) 211 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, "\"" ) 195 if templ_7745c5c3_Err != nil { 212 if templ_7745c5c3_Err != nil { 196 return templ_7745c5c3_Err 213 return templ_7745c5c3_Err 197 } 214 } 198 if r.Current { 215 if r.Current { 199 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, " aria-current=\"page\"" ) 216 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, " aria-current=\"page\"" ) 200 if templ_7745c5c3_Err != nil { 217 if templ_7745c5c3_Err != nil { 201 return templ_7745c5c3_Err 218 return templ_7745c5c3_Err 202 } 219 } 203 } 220 } 204 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, ">" ) 221 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, ">" ) 205 if templ_7745c5c3_Err != nil { 222 if templ_7745c5c3_Err != nil { 206 return templ_7745c5c3_Err 223 return templ_7745c5c3_Err 207 } 224 } 208 - var templ_7745c5c3_Var9 string 225 + var templ_7745c5c3_Var10 string 209 - templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(r.Label) 226 + templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(r.Label) 210 if templ_7745c5c3_Err != nil { 227 if templ_7745c5c3_Err != nil { 211 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 35, Col: 13} 228 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 36, Col: 13} 212 } 229 } 213 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) 230 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) 214 if templ_7745c5c3_Err != nil { 231 if templ_7745c5c3_Err != nil { 215 return templ_7745c5c3_Err 232 return templ_7745c5c3_Err 216 } 233 } 217 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "</a>" ) 234 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "</a>" ) 218 if templ_7745c5c3_Err != nil { 235 if templ_7745c5c3_Err != nil { 219 return templ_7745c5c3_Err 236 return templ_7745c5c3_Err 220 } 237 } 221 } 238 } 222 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "</nav>" ) 239 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "</nav>" ) 223 if templ_7745c5c3_Err != nil { 240 if templ_7745c5c3_Err != nil { 224 return templ_7745c5c3_Err 241 return templ_7745c5c3_Err 225 } 242 } ⋯ 20 hidden lines@@ -246,219 +263,219 @@ func InboxPending(p InboxPage) templ.Component { 246 }() 263 }() 247 } 264 } 248 ctx = templ.InitializeContext(ctx) 265 ctx = templ.InitializeContext(ctx) 249 - templ_7745c5c3_Var10 := templ.GetChildren(ctx) 266 + templ_7745c5c3_Var11 := templ.GetChildren(ctx) 250 - if templ_7745c5c3_Var10 == nil { 267 + if templ_7745c5c3_Var11 == nil { 251 - templ_7745c5c3_Var10 = templ.NopComponent 268 + templ_7745c5c3_Var11 = templ.NopComponent 252 } 269 } 253 ctx = templ.ClearChildren(ctx) 270 ctx = templ.ClearChildren(ctx) 254 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "<section id=\"inbox-pending\" aria-labelledby=\"inbox-pending-h\"><h2 id=\"inbox-pending-h\" class=\"rule-h\"><span>Awaiting moderation</span><span class=\"count\">" ) 271 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "<section id=\"inbox-pending\" aria-labelledby=\"inbox-pending-h\"><h2 id=\"inbox-pending-h\" class=\"rule-h\"><span>Awaiting moderation</span><span class=\"count\">" ) 255 if templ_7745c5c3_Err != nil { 272 if templ_7745c5c3_Err != nil { 256 return templ_7745c5c3_Err 273 return templ_7745c5c3_Err 257 } 274 } 258 - var templ_7745c5c3_Var11 string 275 + var templ_7745c5c3_Var12 string 259 - templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.PendingCount)) 276 + templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.PendingCount)) 260 if templ_7745c5c3_Err != nil { 277 if templ_7745c5c3_Err != nil { 261 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 45, Col: 116} 278 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 46, Col: 116} 262 } 279 } 263 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11)) 280 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12)) 264 if templ_7745c5c3_Err != nil { 281 if templ_7745c5c3_Err != nil { 265 return templ_7745c5c3_Err 282 return templ_7745c5c3_Err 266 } 283 } 267 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "</span></h2>" ) 284 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "</span></h2>" ) 268 if templ_7745c5c3_Err != nil { 285 if templ_7745c5c3_Err != nil { 269 return templ_7745c5c3_Err 286 return templ_7745c5c3_Err 270 } 287 } 271 if len(p.Pending) > 0 { 288 if len(p.Pending) > 0 { 272 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "<ul class=\"pending-list\">" ) 289 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<ul class=\"pending-list\">" ) 273 if templ_7745c5c3_Err != nil { 290 if templ_7745c5c3_Err != nil { 274 return templ_7745c5c3_Err 291 return templ_7745c5c3_Err 275 } 292 } 276 for _, m := range p.Pending { 293 for _, m := range p.Pending { 277 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<li class=\"pending\"><div class=\"p-head\"><a href=\"" ) 294 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, "<li class=\"pending\"><div class=\"p-head\"><a href=\"" ) 278 if templ_7745c5c3_Err != nil { 295 if templ_7745c5c3_Err != nil { 279 return templ_7745c5c3_Err 296 return templ_7745c5c3_Err 280 } 297 } 281 - var templ_7745c5c3_Var12 templ.SafeURL 298 + var templ_7745c5c3_Var13 templ.SafeURL 282 - templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.RepoHref)) 299 + templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.RepoHref)) 283 if templ_7745c5c3_Err != nil { 300 if templ_7745c5c3_Err != nil { 284 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 51, Col: 42} 301 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 52, Col: 42} 285 } 302 } 286 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12)) 303 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) 287 if templ_7745c5c3_Err != nil { 304 if templ_7745c5c3_Err != nil { 288 return templ_7745c5c3_Err 305 return templ_7745c5c3_Err 289 } 306 } 290 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, "\">" ) 307 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "\">" ) 291 if templ_7745c5c3_Err != nil { 308 if templ_7745c5c3_Err != nil { 292 return templ_7745c5c3_Err 309 return templ_7745c5c3_Err 293 } 310 } 294 - var templ_7745c5c3_Var13 string 311 + var templ_7745c5c3_Var14 string 295 - templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(m.Repo) 312 + templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(m.Repo) 296 if templ_7745c5c3_Err != nil { 313 if templ_7745c5c3_Err != nil { 297 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 51, Col: 53} 314 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 52, Col: 53} 298 } 315 } 299 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) 316 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) 300 if templ_7745c5c3_Err != nil { 317 if templ_7745c5c3_Err != nil { 301 return templ_7745c5c3_Err 318 return templ_7745c5c3_Err 302 } 319 } 303 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "</a> <span>" ) 320 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "</a> <span>" ) 304 if templ_7745c5c3_Err != nil { 321 if templ_7745c5c3_Err != nil { 305 return templ_7745c5c3_Err 322 return templ_7745c5c3_Err 306 } 323 } 307 - var templ_7745c5c3_Var14 string 324 + var templ_7745c5c3_Var15 string 308 - templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(m.Author) 325 + templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(m.Author) 309 if templ_7745c5c3_Err != nil { 326 if templ_7745c5c3_Err != nil { 310 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 52, Col: 23} 327 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 53, Col: 23} 311 } 328 } 312 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) 329 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15)) 313 if templ_7745c5c3_Err != nil { 330 if templ_7745c5c3_Err != nil { 314 return templ_7745c5c3_Err 331 return templ_7745c5c3_Err 315 } 332 } 316 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "</span> " ) 333 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "</span> " ) 317 if templ_7745c5c3_Err != nil { 334 if templ_7745c5c3_Err != nil { 318 return templ_7745c5c3_Err 335 return templ_7745c5c3_Err 319 } 336 } 320 if m.WhenAt != "" { 337 if m.WhenAt != "" { 321 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "<time datetime=\"" ) 338 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "<time datetime=\"" ) 322 if templ_7745c5c3_Err != nil { 339 if templ_7745c5c3_Err != nil { 323 return templ_7745c5c3_Err 340 return templ_7745c5c3_Err 324 } 341 } 325 - var templ_7745c5c3_Var15 string 342 + var templ_7745c5c3_Var16 string 326 - templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 343 + templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 327 if templ_7745c5c3_Err != nil { 344 if templ_7745c5c3_Err != nil { 328 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 54, Col: 33} 345 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 55, Col: 33} 329 } 346 } 330 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var15) 347 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var16) 331 if templ_7745c5c3_Err != nil { 348 if templ_7745c5c3_Err != nil { 332 return templ_7745c5c3_Err 349 return templ_7745c5c3_Err 333 } 350 } 334 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "\" title=\"" ) 351 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "\" title=\"" ) 335 if templ_7745c5c3_Err != nil { 352 if templ_7745c5c3_Err != nil { 336 return templ_7745c5c3_Err 353 return templ_7745c5c3_Err 337 } 354 } 338 - var templ_7745c5c3_Var16 string 355 + var templ_7745c5c3_Var17 string 339 - templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 356 + templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 340 if templ_7745c5c3_Err != nil { 357 if templ_7745c5c3_Err != nil { 341 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 54, Col: 52} 358 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 55, Col: 52} 342 } 359 } 343 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var16) 360 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var17) 344 if templ_7745c5c3_Err != nil { 361 if templ_7745c5c3_Err != nil { 345 return templ_7745c5c3_Err 362 return templ_7745c5c3_Err 346 } 363 } 347 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "\">" ) 364 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "\">" ) 348 if templ_7745c5c3_Err != nil { 365 if templ_7745c5c3_Err != nil { 349 return templ_7745c5c3_Err 366 return templ_7745c5c3_Err 350 } 367 } 351 - var templ_7745c5c3_Var17 string 368 + var templ_7745c5c3_Var18 string 352 - templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(m.When) 369 + templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(m.When) 353 if templ_7745c5c3_Err != nil { 370 if templ_7745c5c3_Err != nil { 354 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 54, Col: 63} 371 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 55, Col: 63} 355 } 372 } 356 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) 373 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18)) 357 if templ_7745c5c3_Err != nil { 374 if templ_7745c5c3_Err != nil { 358 return templ_7745c5c3_Err 375 return templ_7745c5c3_Err 359 } 376 } 360 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "</time>" ) 377 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "</time>" ) 361 if templ_7745c5c3_Err != nil { 378 if templ_7745c5c3_Err != nil { 362 return templ_7745c5c3_Err 379 return templ_7745c5c3_Err 363 } 380 } 364 } 381 } 365 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "</div><p class=\"p-title\">" ) 382 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "</div><p class=\"p-title\">" ) 366 if templ_7745c5c3_Err != nil { 383 if templ_7745c5c3_Err != nil { 367 return templ_7745c5c3_Err 384 return templ_7745c5c3_Err 368 } 385 } 369 - var templ_7745c5c3_Var18 string 386 + var templ_7745c5c3_Var19 string 370 - templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(m.Title) 387 + templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(m.Title) 371 if templ_7745c5c3_Err != nil { 388 if templ_7745c5c3_Err != nil { 372 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 57, Col: 34} 389 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 58, Col: 34} 373 } 390 } 374 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18)) 391 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19)) 375 if templ_7745c5c3_Err != nil { 392 if templ_7745c5c3_Err != nil { 376 return templ_7745c5c3_Err 393 return templ_7745c5c3_Err 377 } 394 } 378 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "</p>" ) 395 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "</p>" ) 379 if templ_7745c5c3_Err != nil { 396 if templ_7745c5c3_Err != nil { 380 return templ_7745c5c3_Err 397 return templ_7745c5c3_Err 381 } 398 } 382 if m.Preview != "" { 399 if m.Preview != "" { 383 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "<p class=\"p-body\">" ) 400 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "<p class=\"p-body\">" ) 384 if templ_7745c5c3_Err != nil { 401 if templ_7745c5c3_Err != nil { 385 return templ_7745c5c3_Err 402 return templ_7745c5c3_Err 386 } 403 } 387 - var templ_7745c5c3_Var19 string 404 + var templ_7745c5c3_Var20 string 388 - templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(m.Preview) 405 + templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(m.Preview) 389 if templ_7745c5c3_Err != nil { 406 if templ_7745c5c3_Err != nil { 390 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 59, Col: 36} 407 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 60, Col: 36} 391 } 408 } 392 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19)) 409 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) 393 if templ_7745c5c3_Err != nil { 410 if templ_7745c5c3_Err != nil { 394 return templ_7745c5c3_Err 411 return templ_7745c5c3_Err 395 } 412 } 396 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "</p>" ) 413 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "</p>" ) 397 if templ_7745c5c3_Err != nil { 414 if templ_7745c5c3_Err != nil { 398 return templ_7745c5c3_Err 415 return templ_7745c5c3_Err 399 } 416 } 400 } 417 } 401 if m.Approve != "" { 418 if m.Approve != "" { 402 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "<div class=\"p-btns\"><form method=\"post\" action=\"" ) 419 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "<div class=\"p-btns\"><form method=\"post\" action=\"" ) 403 if templ_7745c5c3_Err != nil { 420 if templ_7745c5c3_Err != nil { 404 return templ_7745c5c3_Err 421 return templ_7745c5c3_Err 405 } 422 } 406 - var templ_7745c5c3_Var20 templ.SafeURL 423 + var templ_7745c5c3_Var21 templ.SafeURL 407 - templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Approve)) 424 + templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Approve)) 408 if templ_7745c5c3_Err != nil { 425 if templ_7745c5c3_Err != nil { 409 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 63, Col: 61} 426 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 64, Col: 61} 410 } 427 } 411 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) 428 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21)) 412 if templ_7745c5c3_Err != nil { 429 if templ_7745c5c3_Err != nil { 413 return templ_7745c5c3_Err 430 return templ_7745c5c3_Err 414 } 431 } 415 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "\"><button type=\"submit\" class=\"btn primary\">Approve</button></form><form method=\"post\" action=\"" ) 432 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "\"><button type=\"submit\" class=\"btn primary\">Approve</button></form><form method=\"post\" action=\"" ) 416 if templ_7745c5c3_Err != nil { 433 if templ_7745c5c3_Err != nil { 417 return templ_7745c5c3_Err 434 return templ_7745c5c3_Err 418 } 435 } 419 - var templ_7745c5c3_Var21 templ.SafeURL 436 + var templ_7745c5c3_Var22 templ.SafeURL 420 - templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Reject)) 437 + templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Reject)) 421 if templ_7745c5c3_Err != nil { 438 if templ_7745c5c3_Err != nil { 422 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 64, Col: 60} 439 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 65, Col: 60} 423 } 440 } 424 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21)) 441 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) 425 if templ_7745c5c3_Err != nil { 442 if templ_7745c5c3_Err != nil { 426 return templ_7745c5c3_Err 443 return templ_7745c5c3_Err 427 } 444 } 428 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "\"><button type=\"submit\" class=\"btn\">Reject</button></form><form method=\"post\" action=\"" ) 445 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "\"><button type=\"submit\" class=\"btn\">Reject</button></form><form method=\"post\" action=\"" ) 429 if templ_7745c5c3_Err != nil { 446 if templ_7745c5c3_Err != nil { 430 return templ_7745c5c3_Err 447 return templ_7745c5c3_Err 431 } 448 } 432 - var templ_7745c5c3_Var22 templ.SafeURL 449 + var templ_7745c5c3_Var23 templ.SafeURL 433 - templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Ban)) 450 + templ_7745c5c3_Var23, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Ban)) 434 if templ_7745c5c3_Err != nil { 451 if templ_7745c5c3_Err != nil { 435 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 65, Col: 57} 452 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 66, Col: 57} 436 } 453 } 437 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) 454 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var23)) 438 if templ_7745c5c3_Err != nil { 455 if templ_7745c5c3_Err != nil { 439 return templ_7745c5c3_Err 456 return templ_7745c5c3_Err 440 } 457 } 441 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "\"><button type=\"submit\" class=\"btn danger\">Reject and ban</button></form></div>" ) 458 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "\"><button type=\"submit\" class=\"btn danger\">Reject and ban</button></form></div>" ) 442 if templ_7745c5c3_Err != nil { 459 if templ_7745c5c3_Err != nil { 443 return templ_7745c5c3_Err 460 return templ_7745c5c3_Err 444 } 461 } 445 } 462 } 446 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "</li>" ) 463 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 34, "</li>" ) 447 if templ_7745c5c3_Err != nil { 464 if templ_7745c5c3_Err != nil { 448 return templ_7745c5c3_Err 465 return templ_7745c5c3_Err 449 } 466 } 450 } 467 } 451 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 34, "</ul>" ) 468 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, "</ul>" ) 452 if templ_7745c5c3_Err != nil { 469 if templ_7745c5c3_Err != nil { 453 return templ_7745c5c3_Err 470 return templ_7745c5c3_Err 454 } 471 } 455 } else { 472 } else { 456 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, "<p class=\"lede dim\">nothing awaits moderation.</p>" ) 473 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "<p class=\"lede dim\">nothing awaits moderation.</p>" ) 457 if templ_7745c5c3_Err != nil { 474 if templ_7745c5c3_Err != nil { 458 return templ_7745c5c3_Err 475 return templ_7745c5c3_Err 459 } 476 } 460 } 477 } 461 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "</section>" ) 478 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "</section>" ) 462 if templ_7745c5c3_Err != nil { 479 if templ_7745c5c3_Err != nil { 463 return templ_7745c5c3_Err 480 return templ_7745c5c3_Err 464 } 481 } ⋯ 17 hidden lines@@ -594,160 +611,160 @@ func inboxRows(rows []InboxRow, label string) templ.Component { 594 }() 611 }() 595 } 612 } 596 ctx = templ.InitializeContext(ctx) 613 ctx = templ.InitializeContext(ctx) 597 - templ_7745c5c3_Var27 := templ.GetChildren(ctx) 614 + templ_7745c5c3_Var28 := templ.GetChildren(ctx) 598 - if templ_7745c5c3_Var27 == nil { 615 + if templ_7745c5c3_Var28 == nil { 599 - templ_7745c5c3_Var27 = templ.NopComponent 616 + templ_7745c5c3_Var28 = templ.NopComponent 600 } 617 } 601 ctx = templ.ClearChildren(ctx) 618 ctx = templ.ClearChildren(ctx) 602 if len(rows) > 0 { 619 if len(rows) > 0 { 603 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 45, "<table class=\"list mrs\" aria-label=\"" ) 620 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "<table class=\"list mrs\" aria-label=\"" ) 604 if templ_7745c5c3_Err != nil { 621 if templ_7745c5c3_Err != nil { 605 return templ_7745c5c3_Err 622 return templ_7745c5c3_Err 606 } 623 } 607 - var templ_7745c5c3_Var28 string 624 + var templ_7745c5c3_Var29 string 608 - templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.ResolveAttributeValue(label) 625 + templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.ResolveAttributeValue(label) 609 if templ_7745c5c3_Err != nil { 626 if templ_7745c5c3_Err != nil { 610 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 99, Col: 44} 627 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 100, Col: 44} 611 } 628 } 612 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var28) 629 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var29) 613 if templ_7745c5c3_Err != nil { 630 if templ_7745c5c3_Err != nil { 614 return templ_7745c5c3_Err 631 return templ_7745c5c3_Err 615 } 632 } 616 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "\"><tbody data-rows>" ) 633 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 47, "\"><tbody data-rows>" ) 617 if templ_7745c5c3_Err != nil { 634 if templ_7745c5c3_Err != nil { 618 return templ_7745c5c3_Err 635 return templ_7745c5c3_Err 619 } 636 } 620 for _, m := range rows { 637 for _, m := range rows { 621 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 47, "<tr" ) 638 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, "<tr" ) 622 if templ_7745c5c3_Err != nil { 639 if templ_7745c5c3_Err != nil { 623 return templ_7745c5c3_Err 640 return templ_7745c5c3_Err 624 } 641 } 625 if m.Cursor { 642 if m.Cursor { 626 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, " data-cursor" ) 643 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, " data-cursor" ) 627 if templ_7745c5c3_Err != nil { 644 if templ_7745c5c3_Err != nil { 628 return templ_7745c5c3_Err 645 return templ_7745c5c3_Err 629 } 646 } 630 } 647 } 631 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, " data-state=\"open\"><td class=\"c-n mute\">" ) 648 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 50, " data-state=\"open\"><td class=\"c-n mute\">" ) 632 if templ_7745c5c3_Err != nil { 649 if templ_7745c5c3_Err != nil { 633 return templ_7745c5c3_Err 650 return templ_7745c5c3_Err 634 } 651 } 635 - var templ_7745c5c3_Var29 string 652 + var templ_7745c5c3_Var30 string 636 - templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.JoinStringErrs(m.Number) 653 + templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(m.Number) 637 if templ_7745c5c3_Err != nil { 654 if templ_7745c5c3_Err != nil { 638 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 103, Col: 37} 655 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 37} 639 } 656 } 640 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var29)) 657 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) 641 if templ_7745c5c3_Err != nil { 658 if templ_7745c5c3_Err != nil { 642 return templ_7745c5c3_Err 659 return templ_7745c5c3_Err 643 } 660 } 644 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 50, "</td><td class=\"c-subject\"><a href=\"" ) 661 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 51, "</td><td class=\"c-subject\"><a href=\"" ) 645 if templ_7745c5c3_Err != nil { 662 if templ_7745c5c3_Err != nil { 646 return templ_7745c5c3_Err 663 return templ_7745c5c3_Err 647 } 664 } 648 - var templ_7745c5c3_Var30 templ.SafeURL 665 + var templ_7745c5c3_Var31 templ.SafeURL 649 - templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Href)) 666 + templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Href)) 650 if templ_7745c5c3_Err != nil { 667 if templ_7745c5c3_Err != nil { 651 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 59} 668 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 105, Col: 59} 652 } 669 } 653 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) 670 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var31)) 654 if templ_7745c5c3_Err != nil { 671 if templ_7745c5c3_Err != nil { 655 return templ_7745c5c3_Err 672 return templ_7745c5c3_Err 656 } 673 } 657 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 51, "\">" ) 674 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "\">" ) 658 if templ_7745c5c3_Err != nil { 675 if templ_7745c5c3_Err != nil { 659 return templ_7745c5c3_Err 676 return templ_7745c5c3_Err 660 } 677 } 661 - var templ_7745c5c3_Var31 string 678 + var templ_7745c5c3_Var32 string 662 - templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinStringErrs(m.Title) 679 + templ_7745c5c3_Var32, templ_7745c5c3_Err = templ.JoinStringErrs(m.Title) 663 if templ_7745c5c3_Err != nil { 680 if templ_7745c5c3_Err != nil { 664 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 71} 681 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 105, Col: 71} 665 } 682 } 666 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var31)) 683 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var32)) 667 if templ_7745c5c3_Err != nil { 684 if templ_7745c5c3_Err != nil { 668 return templ_7745c5c3_Err 685 return templ_7745c5c3_Err 669 } 686 } 670 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "</a> <a class=\"mute\" href=\"" ) 687 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 53, "</a> <a class=\"mute\" href=\"" ) 671 if templ_7745c5c3_Err != nil { 688 if templ_7745c5c3_Err != nil { 672 return templ_7745c5c3_Err 689 return templ_7745c5c3_Err 673 } 690 } 674 - var templ_7745c5c3_Var32 templ.SafeURL 691 + var templ_7745c5c3_Var33 templ.SafeURL 675 - templ_7745c5c3_Var32, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.RepoHref)) 692 + templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.RepoHref)) 676 if templ_7745c5c3_Err != nil { 693 if templ_7745c5c3_Err != nil { 677 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 126} 694 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 105, Col: 126} 678 } 695 } 679 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var32)) 696 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var33)) 680 if templ_7745c5c3_Err != nil { 697 if templ_7745c5c3_Err != nil { 681 return templ_7745c5c3_Err 698 return templ_7745c5c3_Err 682 } 699 } 683 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 53, "\">" ) 700 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 54, "\">" ) 684 if templ_7745c5c3_Err != nil { 701 if templ_7745c5c3_Err != nil { 685 return templ_7745c5c3_Err 702 return templ_7745c5c3_Err 686 } 703 } 687 - var templ_7745c5c3_Var33 string 704 + var templ_7745c5c3_Var34 string 688 - templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinStringErrs(m.Repo) 705 + templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(m.Repo) 689 if templ_7745c5c3_Err != nil { 706 if templ_7745c5c3_Err != nil { 690 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 137} 707 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 105, Col: 137} 691 } 708 } 692 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var33)) 709 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var34)) 693 if templ_7745c5c3_Err != nil { 710 if templ_7745c5c3_Err != nil { 694 return templ_7745c5c3_Err 711 return templ_7745c5c3_Err 695 } 712 } 696 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 54, "</a></td><td class=\"c-when nowrap dim\">" ) 713 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 55, "</a></td><td class=\"c-when nowrap dim\">" ) 697 if templ_7745c5c3_Err != nil { 714 if templ_7745c5c3_Err != nil { 698 return templ_7745c5c3_Err 715 return templ_7745c5c3_Err 699 } 716 } 700 if m.WhenAt != "" { 717 if m.WhenAt != "" { 701 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 55, "<time datetime=\"" ) 718 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 56, "<time datetime=\"" ) 702 if templ_7745c5c3_Err != nil { 719 if templ_7745c5c3_Err != nil { 703 return templ_7745c5c3_Err 720 return templ_7745c5c3_Err 704 } 721 } 705 - var templ_7745c5c3_Var34 string 722 + var templ_7745c5c3_Var35 string 706 - templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 723 + templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 707 if templ_7745c5c3_Err != nil { 724 if templ_7745c5c3_Err != nil { 708 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 107, Col: 33} 725 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 108, Col: 33} 709 } 726 } 710 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var34) 727 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var35) 711 if templ_7745c5c3_Err != nil { 728 if templ_7745c5c3_Err != nil { 712 return templ_7745c5c3_Err 729 return templ_7745c5c3_Err 713 } 730 } 714 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 56, "\" title=\"" ) 731 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 57, "\" title=\"" ) 715 if templ_7745c5c3_Err != nil { 732 if templ_7745c5c3_Err != nil { 716 return templ_7745c5c3_Err 733 return templ_7745c5c3_Err 717 } 734 } 718 - var templ_7745c5c3_Var35 string 735 + var templ_7745c5c3_Var36 string 719 - templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 736 + templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 720 if templ_7745c5c3_Err != nil { 737 if templ_7745c5c3_Err != nil { 721 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 107, Col: 52} 738 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 108, Col: 52} 722 } 739 } 723 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var35) 740 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var36) 724 if templ_7745c5c3_Err != nil { 741 if templ_7745c5c3_Err != nil { 725 return templ_7745c5c3_Err 742 return templ_7745c5c3_Err 726 } 743 } 727 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 57, "\">" ) 744 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 58, "\">" ) 728 if templ_7745c5c3_Err != nil { 745 if templ_7745c5c3_Err != nil { 729 return templ_7745c5c3_Err 746 return templ_7745c5c3_Err 730 } 747 } 731 - var templ_7745c5c3_Var36 string 748 + var templ_7745c5c3_Var37 string 732 - templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.JoinStringErrs(m.When) 749 + templ_7745c5c3_Var37, templ_7745c5c3_Err = templ.JoinStringErrs(m.When) 733 if templ_7745c5c3_Err != nil { 750 if templ_7745c5c3_Err != nil { 734 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 107, Col: 63} 751 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 108, Col: 63} 735 } 752 } 736 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var36)) 753 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var37)) 737 if templ_7745c5c3_Err != nil { 754 if templ_7745c5c3_Err != nil { 738 return templ_7745c5c3_Err 755 return templ_7745c5c3_Err 739 } 756 } 740 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 58, "</time>" ) 757 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 59, "</time>" ) 741 if templ_7745c5c3_Err != nil { 758 if templ_7745c5c3_Err != nil { 742 return templ_7745c5c3_Err 759 return templ_7745c5c3_Err 743 } 760 } 744 } 761 } 745 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 59, "</td></tr>" ) 762 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "</td></tr>" ) 746 if templ_7745c5c3_Err != nil { 763 if templ_7745c5c3_Err != nil { 747 return templ_7745c5c3_Err 764 return templ_7745c5c3_Err 748 } 765 } 749 } 766 } 750 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "</tbody></table>" ) 767 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, "</tbody></table>" ) 751 if templ_7745c5c3_Err != nil { 768 if templ_7745c5c3_Err != nil { 752 return templ_7745c5c3_Err 769 return templ_7745c5c3_Err 753 } 770 } ⋯ 2 hidden lines@@ -756,4 +773,265 @@ func inboxRows(rows []InboxRow, label string) templ.Component { 756 }) 773 }) 757 } 774 } 758 775 776 + // InboxRuns stays as an empty fragment when CI is disabled. 777 + func InboxRuns(p InboxPage) templ.Component {778 + return templruntime.GeneratedTemplate(func (templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { 779 + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context 780 + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { 781 + return templ_7745c5c3_CtxErr 782 + } 783 + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) 784 + if !templ_7745c5c3_IsBuffer { 785 + defer func () { 786 + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) 787 + if templ_7745c5c3_Err == nil { 788 + templ_7745c5c3_Err = templ_7745c5c3_BufErr 789 + } 790 + }() 791 + } 792 + ctx = templ.InitializeContext(ctx) 793 + templ_7745c5c3_Var38 := templ.GetChildren(ctx) 794 + if templ_7745c5c3_Var38 == nil { 795 + templ_7745c5c3_Var38 = templ.NopComponent 796 + } 797 + ctx = templ.ClearChildren(ctx) 798 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 62, "<section id=\"inbox-runs\"" ) 799 + if templ_7745c5c3_Err != nil { 800 + return templ_7745c5c3_Err 801 + } 802 + if !p.RunsEnabled { 803 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 63, " hidden" ) 804 + if templ_7745c5c3_Err != nil { 805 + return templ_7745c5c3_Err 806 + } 807 + } 808 + if p.RunsEnabled { 809 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 64, " aria-labelledby=\"inbox-runs-h\"" ) 810 + if templ_7745c5c3_Err != nil { 811 + return templ_7745c5c3_Err 812 + } 813 + } 814 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 65, ">" ) 815 + if templ_7745c5c3_Err != nil { 816 + return templ_7745c5c3_Err 817 + } 818 + if p.RunsEnabled { 819 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 66, "<h2 id=\"inbox-runs-h\" class=\"rule-h\"><span>Running</span><span class=\"count\">" ) 820 + if templ_7745c5c3_Err != nil { 821 + return templ_7745c5c3_Err 822 + } 823 + var templ_7745c5c3_Var39 string 824 + templ_7745c5c3_Var39, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Runs))) 825 + if templ_7745c5c3_Err != nil { 826 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 126, Col: 99} 827 + } 828 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var39)) 829 + if templ_7745c5c3_Err != nil { 830 + return templ_7745c5c3_Err 831 + } 832 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 67, "</span></h2>" ) 833 + if templ_7745c5c3_Err != nil { 834 + return templ_7745c5c3_Err 835 + } 836 + if len(p.Runs) == 0 { 837 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 68, "<p class=\"lede dim\">no runs in progress.</p>" ) 838 + if templ_7745c5c3_Err != nil { 839 + return templ_7745c5c3_Err 840 + } 841 + } else { 842 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 69, "<table class=\"list mrs\" aria-label=\"Running\"><tbody data-rows>" ) 843 + if templ_7745c5c3_Err != nil { 844 + return templ_7745c5c3_Err 845 + } 846 + for _, r := range p.Runs { 847 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "<tr><td class=\"c-st\">" ) 848 + if templ_7745c5c3_Err != nil { 849 + return templ_7745c5c3_Err 850 + } 851 + templ_7745c5c3_Err = CheckIcon(r.Kind, r.State).Render(ctx, templ_7745c5c3_Buffer) 852 + if templ_7745c5c3_Err != nil { 853 + return templ_7745c5c3_Err 854 + } 855 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "<span class=\"dim\">" ) 856 + if templ_7745c5c3_Err != nil { 857 + return templ_7745c5c3_Err 858 + } 859 + var templ_7745c5c3_Var40 string 860 + templ_7745c5c3_Var40, templ_7745c5c3_Err = templ.JoinStringErrs(r.State) 861 + if templ_7745c5c3_Err != nil { 862 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 134, Col: 79} 863 + } 864 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var40)) 865 + if templ_7745c5c3_Err != nil { 866 + return templ_7745c5c3_Err 867 + } 868 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 72, "</span></td><td class=\"c-subject\"><a href=\"" ) 869 + if templ_7745c5c3_Err != nil { 870 + return templ_7745c5c3_Err 871 + } 872 + var templ_7745c5c3_Var41 templ.SafeURL 873 + templ_7745c5c3_Var41, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(r.Href)) 874 + if templ_7745c5c3_Err != nil { 875 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 61} 876 + } 877 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var41)) 878 + if templ_7745c5c3_Err != nil { 879 + return templ_7745c5c3_Err 880 + } 881 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 73, "\">" ) 882 + if templ_7745c5c3_Err != nil { 883 + return templ_7745c5c3_Err 884 + } 885 + var templ_7745c5c3_Var42 string 886 + templ_7745c5c3_Var42, templ_7745c5c3_Err = templ.JoinStringErrs(r.Workflow) 887 + if templ_7745c5c3_Err != nil { 888 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 76} 889 + } 890 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var42)) 891 + if templ_7745c5c3_Err != nil { 892 + return templ_7745c5c3_Err 893 + } 894 + var templ_7745c5c3_Var43 string 895 + templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.JoinStringErrs(" " ) 896 + if templ_7745c5c3_Err != nil { 897 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 83} 898 + } 899 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var43)) 900 + if templ_7745c5c3_Err != nil { 901 + return templ_7745c5c3_Err 902 + } 903 + var templ_7745c5c3_Var44 string 904 + templ_7745c5c3_Var44, templ_7745c5c3_Err = templ.JoinStringErrs(r.Number) 905 + if templ_7745c5c3_Err != nil { 906 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 95} 907 + } 908 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var44)) 909 + if templ_7745c5c3_Err != nil { 910 + return templ_7745c5c3_Err 911 + } 912 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 74, "</a> <a class=\"mute\" href=\"" ) 913 + if templ_7745c5c3_Err != nil { 914 + return templ_7745c5c3_Err 915 + } 916 + var templ_7745c5c3_Var45 templ.SafeURL 917 + templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(r.RepoHref)) 918 + if templ_7745c5c3_Err != nil { 919 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 150} 920 + } 921 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var45)) 922 + if templ_7745c5c3_Err != nil { 923 + return templ_7745c5c3_Err 924 + } 925 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 75, "\">" ) 926 + if templ_7745c5c3_Err != nil { 927 + return templ_7745c5c3_Err 928 + } 929 + var templ_7745c5c3_Var46 string 930 + templ_7745c5c3_Var46, templ_7745c5c3_Err = templ.JoinStringErrs(r.Repo) 931 + if templ_7745c5c3_Err != nil { 932 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 161} 933 + } 934 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var46)) 935 + if templ_7745c5c3_Err != nil { 936 + return templ_7745c5c3_Err 937 + } 938 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 76, "</a> <span class=\"dim\">" ) 939 + if templ_7745c5c3_Err != nil { 940 + return templ_7745c5c3_Err 941 + } 942 + var templ_7745c5c3_Var47 string 943 + templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(r.Ref) 944 + if templ_7745c5c3_Err != nil { 945 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 193} 946 + } 947 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var47)) 948 + if templ_7745c5c3_Err != nil { 949 + return templ_7745c5c3_Err 950 + } 951 + var templ_7745c5c3_Var48 string 952 + templ_7745c5c3_Var48, templ_7745c5c3_Err = templ.JoinStringErrs(" " ) 953 + if templ_7745c5c3_Err != nil { 954 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 200} 955 + } 956 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var48)) 957 + if templ_7745c5c3_Err != nil { 958 + return templ_7745c5c3_Err 959 + } 960 + var templ_7745c5c3_Var49 string 961 + templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.JoinStringErrs(r.Event) 962 + if templ_7745c5c3_Err != nil { 963 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 135, Col: 211} 964 + } 965 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var49)) 966 + if templ_7745c5c3_Err != nil { 967 + return templ_7745c5c3_Err 968 + } 969 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 77, "</span></td><td class=\"c-when nowrap dim\">" ) 970 + if templ_7745c5c3_Err != nil { 971 + return templ_7745c5c3_Err 972 + } 973 + if r.WhenAt != "" { 974 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 78, "<time datetime=\"" ) 975 + if templ_7745c5c3_Err != nil { 976 + return templ_7745c5c3_Err 977 + } 978 + var templ_7745c5c3_Var50 string 979 + templ_7745c5c3_Var50, templ_7745c5c3_Err = templ.ResolveAttributeValue(r.WhenAt) 980 + if templ_7745c5c3_Err != nil { 981 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 138, Col: 35} 982 + } 983 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var50) 984 + if templ_7745c5c3_Err != nil { 985 + return templ_7745c5c3_Err 986 + } 987 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 79, "\" title=\"" ) 988 + if templ_7745c5c3_Err != nil { 989 + return templ_7745c5c3_Err 990 + } 991 + var templ_7745c5c3_Var51 string 992 + templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.ResolveAttributeValue(r.WhenAt) 993 + if templ_7745c5c3_Err != nil { 994 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 138, Col: 54} 995 + } 996 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var51) 997 + if templ_7745c5c3_Err != nil { 998 + return templ_7745c5c3_Err 999 + } 1000 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 80, "\">" ) 1001 + if templ_7745c5c3_Err != nil { 1002 + return templ_7745c5c3_Err 1003 + } 1004 + var templ_7745c5c3_Var52 string 1005 + templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.JoinStringErrs(r.When) 1006 + if templ_7745c5c3_Err != nil { 1007 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 138, Col: 65} 1008 + } 1009 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var52)) 1010 + if templ_7745c5c3_Err != nil { 1011 + return templ_7745c5c3_Err 1012 + } 1013 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 81, "</time>" ) 1014 + if templ_7745c5c3_Err != nil { 1015 + return templ_7745c5c3_Err 1016 + } 1017 + } 1018 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 82, "</td></tr>" ) 1019 + if templ_7745c5c3_Err != nil { 1020 + return templ_7745c5c3_Err 1021 + } 1022 + } 1023 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 83, "</tbody></table>" ) 1024 + if templ_7745c5c3_Err != nil { 1025 + return templ_7745c5c3_Err 1026 + } 1027 + } 1028 + } 1029 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 84, "</section>" ) 1030 + if templ_7745c5c3_Err != nil { 1031 + return templ_7745c5c3_Err 1032 + } 1033 + return nil 1034 + }) 1035 + } 1036 + 759 var _ = templruntime.GeneratedTemplate1037 var _ = templruntime.GeneratedTemplate