⋯ 17 hidden lines@@ -185,58 +168,58 @@ func InboxRepos(p InboxPage) templ.Component { 185 }() 168 }() 186 } 169 } 187 ctx = templ.InitializeContext(ctx) 170 ctx = templ.InitializeContext(ctx) 188 - templ_7745c5c3_Var8 := templ.GetChildren(ctx) 171 + templ_7745c5c3_Var7 := templ.GetChildren(ctx) 189 - if templ_7745c5c3_Var8 == nil { 172 + if templ_7745c5c3_Var7 == nil { 190 - templ_7745c5c3_Var8 = templ.NopComponent 173 + templ_7745c5c3_Var7 = templ.NopComponent 191 } 174 } 192 ctx = templ.ClearChildren(ctx) 175 ctx = templ.ClearChildren(ctx) 193 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "<nav id=\"inbox-repos\" class=\"since\" aria-label=\"Repository\">" ) 176 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "<nav id=\"inbox-repos\" class=\"since\" aria-label=\"Repository\">" ) 194 if templ_7745c5c3_Err != nil { 177 if templ_7745c5c3_Err != nil { 195 return templ_7745c5c3_Err 178 return templ_7745c5c3_Err 196 } 179 } 197 for _, r := range p.Repos { 180 for _, r := range p.Repos { 198 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "<a href=\"" ) 181 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "<a href=\"" ) 199 if templ_7745c5c3_Err != nil { 182 if templ_7745c5c3_Err != nil { 200 return templ_7745c5c3_Err 183 return templ_7745c5c3_Err 201 } 184 } 202 - var templ_7745c5c3_Var9 templ.SafeURL 185 + var templ_7745c5c3_Var8 templ.SafeURL 203 - templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(r.Href)) 186 + templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(r.Href)) 204 if templ_7745c5c3_Err != nil { 187 if templ_7745c5c3_Err != nil { 205 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 32, Col: 32} 188 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 31, Col: 32} 206 } 189 } 207 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) 190 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) 208 if templ_7745c5c3_Err != nil { 191 if templ_7745c5c3_Err != nil { 209 return templ_7745c5c3_Err 192 return templ_7745c5c3_Err 210 } 193 } 211 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, "\"" ) 194 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "\"" ) 212 if templ_7745c5c3_Err != nil { 195 if templ_7745c5c3_Err != nil { 213 return templ_7745c5c3_Err 196 return templ_7745c5c3_Err 214 } 197 } 215 if r.Current { 198 if r.Current { 216 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, " aria-current=\"page\"" ) 199 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, " aria-current=\"page\"" ) 217 if templ_7745c5c3_Err != nil { 200 if templ_7745c5c3_Err != nil { 218 return templ_7745c5c3_Err 201 return templ_7745c5c3_Err 219 } 202 } 220 } 203 } 221 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, ">" ) 204 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, ">" ) 222 if templ_7745c5c3_Err != nil { 205 if templ_7745c5c3_Err != nil { 223 return templ_7745c5c3_Err 206 return templ_7745c5c3_Err 224 } 207 } 225 - var templ_7745c5c3_Var10 string 208 + var templ_7745c5c3_Var9 string 226 - templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(r.Label) 209 + templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(r.Label) 227 if templ_7745c5c3_Err != nil { 210 if templ_7745c5c3_Err != nil { 228 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 36, Col: 13} 211 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 35, Col: 13} 229 } 212 } 230 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) 213 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) 231 if templ_7745c5c3_Err != nil { 214 if templ_7745c5c3_Err != nil { 232 return templ_7745c5c3_Err 215 return templ_7745c5c3_Err 233 } 216 } 234 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "</a>" ) 217 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "</a>" ) 235 if templ_7745c5c3_Err != nil { 218 if templ_7745c5c3_Err != nil { 236 return templ_7745c5c3_Err 219 return templ_7745c5c3_Err 237 } 220 } 238 } 221 } 239 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "</nav>" ) 222 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "</nav>" ) 240 if templ_7745c5c3_Err != nil { 223 if templ_7745c5c3_Err != nil { 241 return templ_7745c5c3_Err 224 return templ_7745c5c3_Err 242 } 225 } ⋯ 20 hidden lines@@ -263,219 +246,219 @@ func InboxPending(p InboxPage) templ.Component { 263 }() 246 }() 264 } 247 } 265 ctx = templ.InitializeContext(ctx) 248 ctx = templ.InitializeContext(ctx) 266 - templ_7745c5c3_Var11 := templ.GetChildren(ctx) 249 + templ_7745c5c3_Var10 := templ.GetChildren(ctx) 267 - if templ_7745c5c3_Var11 == nil { 250 + if templ_7745c5c3_Var10 == nil { 268 - templ_7745c5c3_Var11 = templ.NopComponent 251 + templ_7745c5c3_Var10 = templ.NopComponent 269 } 252 } 270 ctx = templ.ClearChildren(ctx) 253 ctx = templ.ClearChildren(ctx) 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\">" ) 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\">" ) 272 if templ_7745c5c3_Err != nil { 255 if templ_7745c5c3_Err != nil { 273 return templ_7745c5c3_Err 256 return templ_7745c5c3_Err 274 } 257 } 275 - var templ_7745c5c3_Var12 string 258 + var templ_7745c5c3_Var11 string 276 - templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.PendingCount)) 259 + templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.PendingCount)) 277 if templ_7745c5c3_Err != nil { 260 if templ_7745c5c3_Err != nil { 278 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 46, Col: 116} 261 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 45, Col: 116} 279 } 262 } 280 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12)) 263 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11)) 281 if templ_7745c5c3_Err != nil { 264 if templ_7745c5c3_Err != nil { 282 return templ_7745c5c3_Err 265 return templ_7745c5c3_Err 283 } 266 } 284 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "</span></h2>" ) 267 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "</span></h2>" ) 285 if templ_7745c5c3_Err != nil { 268 if templ_7745c5c3_Err != nil { 286 return templ_7745c5c3_Err 269 return templ_7745c5c3_Err 287 } 270 } 288 if len(p.Pending) > 0 { 271 if len(p.Pending) > 0 { 289 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<ul class=\"pending-list\">" ) 272 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "<ul class=\"pending-list\">" ) 290 if templ_7745c5c3_Err != nil { 273 if templ_7745c5c3_Err != nil { 291 return templ_7745c5c3_Err 274 return templ_7745c5c3_Err 292 } 275 } 293 for _, m := range p.Pending { 276 for _, m := range p.Pending { 294 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, "<li class=\"pending\"><div class=\"p-head\"><a href=\"" ) 277 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<li class=\"pending\"><div class=\"p-head\"><a href=\"" ) 295 if templ_7745c5c3_Err != nil { 278 if templ_7745c5c3_Err != nil { 296 return templ_7745c5c3_Err 279 return templ_7745c5c3_Err 297 } 280 } 298 - var templ_7745c5c3_Var13 templ.SafeURL 281 + var templ_7745c5c3_Var12 templ.SafeURL 299 - templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.RepoHref)) 282 + templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.RepoHref)) 300 if templ_7745c5c3_Err != nil { 283 if templ_7745c5c3_Err != nil { 301 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 52, Col: 42} 284 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 51, Col: 42} 302 } 285 } 303 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) 286 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12)) 304 if templ_7745c5c3_Err != nil { 287 if templ_7745c5c3_Err != nil { 305 return templ_7745c5c3_Err 288 return templ_7745c5c3_Err 306 } 289 } 307 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "\">" ) 290 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, "\">" ) 308 if templ_7745c5c3_Err != nil { 291 if templ_7745c5c3_Err != nil { 309 return templ_7745c5c3_Err 292 return templ_7745c5c3_Err 310 } 293 } 311 - var templ_7745c5c3_Var14 string 294 + var templ_7745c5c3_Var13 string 312 - templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(m.Repo) 295 + templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(m.Repo) 313 if templ_7745c5c3_Err != nil { 296 if templ_7745c5c3_Err != nil { 314 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 52, Col: 53} 297 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 51, Col: 53} 315 } 298 } 316 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) 299 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) 317 if templ_7745c5c3_Err != nil { 300 if templ_7745c5c3_Err != nil { 318 return templ_7745c5c3_Err 301 return templ_7745c5c3_Err 319 } 302 } 320 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "</a> <span>" ) 303 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "</a> <span>" ) 321 if templ_7745c5c3_Err != nil { 304 if templ_7745c5c3_Err != nil { 322 return templ_7745c5c3_Err 305 return templ_7745c5c3_Err 323 } 306 } 324 - var templ_7745c5c3_Var15 string 307 + var templ_7745c5c3_Var14 string 325 - templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(m.Author) 308 + templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(m.Author) 326 if templ_7745c5c3_Err != nil { 309 if templ_7745c5c3_Err != nil { 327 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 53, Col: 23} 310 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 52, Col: 23} 328 } 311 } 329 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15)) 312 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) 330 if templ_7745c5c3_Err != nil { 313 if templ_7745c5c3_Err != nil { 331 return templ_7745c5c3_Err 314 return templ_7745c5c3_Err 332 } 315 } 333 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "</span> " ) 316 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "</span> " ) 334 if templ_7745c5c3_Err != nil { 317 if templ_7745c5c3_Err != nil { 335 return templ_7745c5c3_Err 318 return templ_7745c5c3_Err 336 } 319 } 337 if m.WhenAt != "" { 320 if m.WhenAt != "" { 338 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "<time datetime=\"" ) 321 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "<time datetime=\"" ) 339 if templ_7745c5c3_Err != nil { 322 if templ_7745c5c3_Err != nil { 340 return templ_7745c5c3_Err 323 return templ_7745c5c3_Err 341 } 324 } 342 - var templ_7745c5c3_Var16 string 325 + var templ_7745c5c3_Var15 string 343 - templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 326 + templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 344 if templ_7745c5c3_Err != nil { 327 if templ_7745c5c3_Err != nil { 345 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 55, Col: 33} 328 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 54, Col: 33} 346 } 329 } 347 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var16) 330 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var15) 348 if templ_7745c5c3_Err != nil { 331 if templ_7745c5c3_Err != nil { 349 return templ_7745c5c3_Err 332 return templ_7745c5c3_Err 350 } 333 } 351 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "\" title=\"" ) 334 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "\" title=\"" ) 352 if templ_7745c5c3_Err != nil { 335 if templ_7745c5c3_Err != nil { 353 return templ_7745c5c3_Err 336 return templ_7745c5c3_Err 354 } 337 } 355 - var templ_7745c5c3_Var17 string 338 + var templ_7745c5c3_Var16 string 356 - templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 339 + templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 357 if templ_7745c5c3_Err != nil { 340 if templ_7745c5c3_Err != nil { 358 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 55, Col: 52} 341 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 54, Col: 52} 359 } 342 } 360 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var17) 343 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var16) 361 if templ_7745c5c3_Err != nil { 344 if templ_7745c5c3_Err != nil { 362 return templ_7745c5c3_Err 345 return templ_7745c5c3_Err 363 } 346 } 364 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "\">" ) 347 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "\">" ) 365 if templ_7745c5c3_Err != nil { 348 if templ_7745c5c3_Err != nil { 366 return templ_7745c5c3_Err 349 return templ_7745c5c3_Err 367 } 350 } 368 - var templ_7745c5c3_Var18 string 351 + var templ_7745c5c3_Var17 string 369 - templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(m.When) 352 + templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(m.When) 370 if templ_7745c5c3_Err != nil { 353 if templ_7745c5c3_Err != nil { 371 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 55, Col: 63} 354 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 54, Col: 63} 372 } 355 } 373 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18)) 356 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) 374 if templ_7745c5c3_Err != nil { 357 if templ_7745c5c3_Err != nil { 375 return templ_7745c5c3_Err 358 return templ_7745c5c3_Err 376 } 359 } 377 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "</time>" ) 360 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "</time>" ) 378 if templ_7745c5c3_Err != nil { 361 if templ_7745c5c3_Err != nil { 379 return templ_7745c5c3_Err 362 return templ_7745c5c3_Err 380 } 363 } 381 } 364 } 382 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "</div><p class=\"p-title\">" ) 365 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "</div><p class=\"p-title\">" ) 383 if templ_7745c5c3_Err != nil { 366 if templ_7745c5c3_Err != nil { 384 return templ_7745c5c3_Err 367 return templ_7745c5c3_Err 385 } 368 } 386 - var templ_7745c5c3_Var19 string 369 + var templ_7745c5c3_Var18 string 387 - templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(m.Title) 370 + templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(m.Title) 388 if templ_7745c5c3_Err != nil { 371 if templ_7745c5c3_Err != nil { 389 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 58, Col: 34} 372 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 57, Col: 34} 390 } 373 } 391 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19)) 374 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18)) 392 if templ_7745c5c3_Err != nil { 375 if templ_7745c5c3_Err != nil { 393 return templ_7745c5c3_Err 376 return templ_7745c5c3_Err 394 } 377 } 395 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "</p>" ) 378 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "</p>" ) 396 if templ_7745c5c3_Err != nil { 379 if templ_7745c5c3_Err != nil { 397 return templ_7745c5c3_Err 380 return templ_7745c5c3_Err 398 } 381 } 399 if m.Preview != "" { 382 if m.Preview != "" { 400 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "<p class=\"p-body\">" ) 383 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "<p class=\"p-body\">" ) 401 if templ_7745c5c3_Err != nil { 384 if templ_7745c5c3_Err != nil { 402 return templ_7745c5c3_Err 385 return templ_7745c5c3_Err 403 } 386 } 404 - var templ_7745c5c3_Var20 string 387 + var templ_7745c5c3_Var19 string 405 - templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(m.Preview) 388 + templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(m.Preview) 406 if templ_7745c5c3_Err != nil { 389 if templ_7745c5c3_Err != nil { 407 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 60, Col: 36} 390 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 59, Col: 36} 408 } 391 } 409 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) 392 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19)) 410 if templ_7745c5c3_Err != nil { 393 if templ_7745c5c3_Err != nil { 411 return templ_7745c5c3_Err 394 return templ_7745c5c3_Err 412 } 395 } 413 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "</p>" ) 396 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "</p>" ) 414 if templ_7745c5c3_Err != nil { 397 if templ_7745c5c3_Err != nil { 415 return templ_7745c5c3_Err 398 return templ_7745c5c3_Err 416 } 399 } 417 } 400 } 418 if m.Approve != "" { 401 if m.Approve != "" { 419 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "<div class=\"p-btns\"><form method=\"post\" action=\"" ) 402 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "<div class=\"p-btns\"><form method=\"post\" action=\"" ) 420 if templ_7745c5c3_Err != nil { 403 if templ_7745c5c3_Err != nil { 421 return templ_7745c5c3_Err 404 return templ_7745c5c3_Err 422 } 405 } 423 - var templ_7745c5c3_Var21 templ.SafeURL 406 + var templ_7745c5c3_Var20 templ.SafeURL 424 - templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Approve)) 407 + templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Approve)) 425 if templ_7745c5c3_Err != nil { 408 if templ_7745c5c3_Err != nil { 426 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 64, Col: 61} 409 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 63, Col: 61} 427 } 410 } 428 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21)) 411 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) 429 if templ_7745c5c3_Err != nil { 412 if templ_7745c5c3_Err != nil { 430 return templ_7745c5c3_Err 413 return templ_7745c5c3_Err 431 } 414 } 432 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "\"><button type=\"submit\" class=\"btn primary\">Approve</button></form><form method=\"post\" action=\"" ) 415 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "\"><button type=\"submit\" class=\"btn primary\">Approve</button></form><form method=\"post\" action=\"" ) 433 if templ_7745c5c3_Err != nil { 416 if templ_7745c5c3_Err != nil { 434 return templ_7745c5c3_Err 417 return templ_7745c5c3_Err 435 } 418 } 436 - var templ_7745c5c3_Var22 templ.SafeURL 419 + var templ_7745c5c3_Var21 templ.SafeURL 437 - templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Reject)) 420 + templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Reject)) 438 if templ_7745c5c3_Err != nil { 421 if templ_7745c5c3_Err != nil { 439 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 65, Col: 60} 422 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 64, Col: 60} 440 } 423 } 441 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) 424 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21)) 442 if templ_7745c5c3_Err != nil { 425 if templ_7745c5c3_Err != nil { 443 return templ_7745c5c3_Err 426 return templ_7745c5c3_Err 444 } 427 } 445 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "\"><button type=\"submit\" class=\"btn\">Reject</button></form><form method=\"post\" action=\"" ) 428 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "\"><button type=\"submit\" class=\"btn\">Reject</button></form><form method=\"post\" action=\"" ) 446 if templ_7745c5c3_Err != nil { 429 if templ_7745c5c3_Err != nil { 447 return templ_7745c5c3_Err 430 return templ_7745c5c3_Err 448 } 431 } 449 - var templ_7745c5c3_Var23 templ.SafeURL 432 + var templ_7745c5c3_Var22 templ.SafeURL 450 - templ_7745c5c3_Var23, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Ban)) 433 + templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Ban)) 451 if templ_7745c5c3_Err != nil { 434 if templ_7745c5c3_Err != nil { 452 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 66, Col: 57} 435 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 65, Col: 57} 453 } 436 } 454 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var23)) 437 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) 455 if templ_7745c5c3_Err != nil { 438 if templ_7745c5c3_Err != nil { 456 return templ_7745c5c3_Err 439 return templ_7745c5c3_Err 457 } 440 } 458 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "\"><button type=\"submit\" class=\"btn danger\">Reject and ban</button></form></div>" ) 441 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "\"><button type=\"submit\" class=\"btn danger\">Reject and ban</button></form></div>" ) 459 if templ_7745c5c3_Err != nil { 442 if templ_7745c5c3_Err != nil { 460 return templ_7745c5c3_Err 443 return templ_7745c5c3_Err 461 } 444 } 462 } 445 } 463 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 34, "</li>" ) 446 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "</li>" ) 464 if templ_7745c5c3_Err != nil { 447 if templ_7745c5c3_Err != nil { 465 return templ_7745c5c3_Err 448 return templ_7745c5c3_Err 466 } 449 } 467 } 450 } 468 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, "</ul>" ) 451 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 34, "</ul>" ) 469 if templ_7745c5c3_Err != nil { 452 if templ_7745c5c3_Err != nil { 470 return templ_7745c5c3_Err 453 return templ_7745c5c3_Err 471 } 454 } 472 } else { 455 } else { 473 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "<p class=\"lede dim\">nothing awaits moderation.</p>" ) 456 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, "<p class=\"lede dim\">nothing awaits moderation.</p>" ) 474 if templ_7745c5c3_Err != nil { 457 if templ_7745c5c3_Err != nil { 475 return templ_7745c5c3_Err 458 return templ_7745c5c3_Err 476 } 459 } 477 } 460 } 478 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "</section>" ) 461 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "</section>" ) 479 if templ_7745c5c3_Err != nil { 462 if templ_7745c5c3_Err != nil { 480 return templ_7745c5c3_Err 463 return templ_7745c5c3_Err 481 } 464 } ⋯ 17 hidden lines@@ -611,160 +594,160 @@ func inboxRows(rows []InboxRow, label string) templ.Component { 611 }() 594 }() 612 } 595 } 613 ctx = templ.InitializeContext(ctx) 596 ctx = templ.InitializeContext(ctx) 614 - templ_7745c5c3_Var28 := templ.GetChildren(ctx) 597 + templ_7745c5c3_Var27 := templ.GetChildren(ctx) 615 - if templ_7745c5c3_Var28 == nil { 598 + if templ_7745c5c3_Var27 == nil { 616 - templ_7745c5c3_Var28 = templ.NopComponent 599 + templ_7745c5c3_Var27 = templ.NopComponent 617 } 600 } 618 ctx = templ.ClearChildren(ctx) 601 ctx = templ.ClearChildren(ctx) 619 if len(rows) > 0 { 602 if len(rows) > 0 { 620 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "<table class=\"list mrs\" aria-label=\"" ) 603 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 45, "<table class=\"list mrs\" aria-label=\"" ) 621 if templ_7745c5c3_Err != nil { 604 if templ_7745c5c3_Err != nil { 622 return templ_7745c5c3_Err 605 return templ_7745c5c3_Err 623 } 606 } 624 - var templ_7745c5c3_Var29 string 607 + var templ_7745c5c3_Var28 string 625 - templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.ResolveAttributeValue(label) 608 + templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.ResolveAttributeValue(label) 626 if templ_7745c5c3_Err != nil { 609 if templ_7745c5c3_Err != nil { 627 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 100, Col: 44} 610 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 99, Col: 44} 628 } 611 } 629 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var29) 612 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var28) 630 if templ_7745c5c3_Err != nil { 613 if templ_7745c5c3_Err != nil { 631 return templ_7745c5c3_Err 614 return templ_7745c5c3_Err 632 } 615 } 633 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 47, "\"><tbody data-rows>" ) 616 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "\"><tbody data-rows>" ) 634 if templ_7745c5c3_Err != nil { 617 if templ_7745c5c3_Err != nil { 635 return templ_7745c5c3_Err 618 return templ_7745c5c3_Err 636 } 619 } 637 for _, m := range rows { 620 for _, m := range rows { 638 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, "<tr" ) 621 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 47, "<tr" ) 639 if templ_7745c5c3_Err != nil { 622 if templ_7745c5c3_Err != nil { 640 return templ_7745c5c3_Err 623 return templ_7745c5c3_Err 641 } 624 } 642 if m.Cursor { 625 if m.Cursor { 643 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, " data-cursor" ) 626 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, " data-cursor" ) 644 if templ_7745c5c3_Err != nil { 627 if templ_7745c5c3_Err != nil { 645 return templ_7745c5c3_Err 628 return templ_7745c5c3_Err 646 } 629 } 647 } 630 } 648 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 50, " data-state=\"open\"><td class=\"c-n mute\">" ) 631 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, " data-state=\"open\"><td class=\"c-n mute\">" ) 649 if templ_7745c5c3_Err != nil { 632 if templ_7745c5c3_Err != nil { 650 return templ_7745c5c3_Err 633 return templ_7745c5c3_Err 651 } 634 } 652 - var templ_7745c5c3_Var30 string 635 + var templ_7745c5c3_Var29 string 653 - templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(m.Number) 636 + templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.JoinStringErrs(m.Number) 654 if templ_7745c5c3_Err != nil { 637 if templ_7745c5c3_Err != nil { 655 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 37} 638 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 103, Col: 37} 656 } 639 } 657 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) 640 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var29)) 658 if templ_7745c5c3_Err != nil { 641 if templ_7745c5c3_Err != nil { 659 return templ_7745c5c3_Err 642 return templ_7745c5c3_Err 660 } 643 } 661 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 51, "</td><td class=\"c-subject\"><a href=\"" ) 644 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 50, "</td><td class=\"c-subject\"><a href=\"" ) 662 if templ_7745c5c3_Err != nil { 645 if templ_7745c5c3_Err != nil { 663 return templ_7745c5c3_Err 646 return templ_7745c5c3_Err 664 } 647 } 665 - var templ_7745c5c3_Var31 templ.SafeURL 648 + var templ_7745c5c3_Var30 templ.SafeURL 666 - templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Href)) 649 + templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.Href)) 667 if templ_7745c5c3_Err != nil { 650 if templ_7745c5c3_Err != nil { 668 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 105, Col: 59} 651 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 59} 669 } 652 } 670 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var31)) 653 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) 671 if templ_7745c5c3_Err != nil { 654 if templ_7745c5c3_Err != nil { 672 return templ_7745c5c3_Err 655 return templ_7745c5c3_Err 673 } 656 } 674 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "\">" ) 657 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 51, "\">" ) 675 if templ_7745c5c3_Err != nil { 658 if templ_7745c5c3_Err != nil { 676 return templ_7745c5c3_Err 659 return templ_7745c5c3_Err 677 } 660 } 678 - var templ_7745c5c3_Var32 string 661 + var templ_7745c5c3_Var31 string 679 - templ_7745c5c3_Var32, templ_7745c5c3_Err = templ.JoinStringErrs(m.Title) 662 + templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinStringErrs(m.Title) 680 if templ_7745c5c3_Err != nil { 663 if templ_7745c5c3_Err != nil { 681 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 105, Col: 71} 664 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 71} 682 } 665 } 683 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var32)) 666 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var31)) 684 if templ_7745c5c3_Err != nil { 667 if templ_7745c5c3_Err != nil { 685 return templ_7745c5c3_Err 668 return templ_7745c5c3_Err 686 } 669 } 687 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 53, "</a> <a class=\"mute\" href=\"" ) 670 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "</a> <a class=\"mute\" href=\"" ) 688 if templ_7745c5c3_Err != nil { 671 if templ_7745c5c3_Err != nil { 689 return templ_7745c5c3_Err 672 return templ_7745c5c3_Err 690 } 673 } 691 - var templ_7745c5c3_Var33 templ.SafeURL 674 + var templ_7745c5c3_Var32 templ.SafeURL 692 - templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.RepoHref)) 675 + templ_7745c5c3_Var32, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(m.RepoHref)) 693 if templ_7745c5c3_Err != nil { 676 if templ_7745c5c3_Err != nil { 694 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 105, Col: 126} 677 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 126} 695 } 678 } 696 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var33)) 679 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var32)) 697 if templ_7745c5c3_Err != nil { 680 if templ_7745c5c3_Err != nil { 698 return templ_7745c5c3_Err 681 return templ_7745c5c3_Err 699 } 682 } 700 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 54, "\">" ) 683 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 53, "\">" ) 701 if templ_7745c5c3_Err != nil { 684 if templ_7745c5c3_Err != nil { 702 return templ_7745c5c3_Err 685 return templ_7745c5c3_Err 703 } 686 } 704 - var templ_7745c5c3_Var34 string 687 + var templ_7745c5c3_Var33 string 705 - templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(m.Repo) 688 + templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinStringErrs(m.Repo) 706 if templ_7745c5c3_Err != nil { 689 if templ_7745c5c3_Err != nil { 707 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 105, Col: 137} 690 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 104, Col: 137} 708 } 691 } 709 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var34)) 692 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var33)) 710 if templ_7745c5c3_Err != nil { 693 if templ_7745c5c3_Err != nil { 711 return templ_7745c5c3_Err 694 return templ_7745c5c3_Err 712 } 695 } 713 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 55, "</a></td><td class=\"c-when nowrap dim\">" ) 696 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 54, "</a></td><td class=\"c-when nowrap dim\">" ) 714 if templ_7745c5c3_Err != nil { 697 if templ_7745c5c3_Err != nil { 715 return templ_7745c5c3_Err 698 return templ_7745c5c3_Err 716 } 699 } 717 if m.WhenAt != "" { 700 if m.WhenAt != "" { 718 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 56, "<time datetime=\"" ) 701 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 55, "<time datetime=\"" ) 719 if templ_7745c5c3_Err != nil { 702 if templ_7745c5c3_Err != nil { 720 return templ_7745c5c3_Err 703 return templ_7745c5c3_Err 721 } 704 } 722 - var templ_7745c5c3_Var35 string 705 + var templ_7745c5c3_Var34 string 723 - templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 706 + templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 724 if templ_7745c5c3_Err != nil { 707 if templ_7745c5c3_Err != nil { 725 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 108, Col: 33} 708 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 107, Col: 33} 726 } 709 } 727 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var35) 710 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var34) 728 if templ_7745c5c3_Err != nil { 711 if templ_7745c5c3_Err != nil { 729 return templ_7745c5c3_Err 712 return templ_7745c5c3_Err 730 } 713 } 731 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 57, "\" title=\"" ) 714 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 56, "\" title=\"" ) 732 if templ_7745c5c3_Err != nil { 715 if templ_7745c5c3_Err != nil { 733 return templ_7745c5c3_Err 716 return templ_7745c5c3_Err 734 } 717 } 735 - var templ_7745c5c3_Var36 string 718 + var templ_7745c5c3_Var35 string 736 - templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 719 + templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.WhenAt) 737 if templ_7745c5c3_Err != nil { 720 if templ_7745c5c3_Err != nil { 738 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 108, Col: 52} 721 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 107, Col: 52} 739 } 722 } 740 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var36) 723 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var35) 741 if templ_7745c5c3_Err != nil { 724 if templ_7745c5c3_Err != nil { 742 return templ_7745c5c3_Err 725 return templ_7745c5c3_Err 743 } 726 } 744 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 58, "\">" ) 727 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 57, "\">" ) 745 if templ_7745c5c3_Err != nil { 728 if templ_7745c5c3_Err != nil { 746 return templ_7745c5c3_Err 729 return templ_7745c5c3_Err 747 } 730 } 748 - var templ_7745c5c3_Var37 string 731 + var templ_7745c5c3_Var36 string 749 - templ_7745c5c3_Var37, templ_7745c5c3_Err = templ.JoinStringErrs(m.When) 732 + templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.JoinStringErrs(m.When) 750 if templ_7745c5c3_Err != nil { 733 if templ_7745c5c3_Err != nil { 751 - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 108, Col: 63} 734 + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/inbox.templ` , Line: 107, Col: 63} 752 } 735 } 753 - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var37)) 736 + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var36)) 754 if templ_7745c5c3_Err != nil { 737 if templ_7745c5c3_Err != nil { 755 return templ_7745c5c3_Err 738 return templ_7745c5c3_Err 756 } 739 } 757 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 59, "</time>" ) 740 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 58, "</time>" ) 758 if templ_7745c5c3_Err != nil { 741 if templ_7745c5c3_Err != nil { 759 return templ_7745c5c3_Err 742 return templ_7745c5c3_Err 760 } 743 } 761 } 744 } 762 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "</td></tr>" ) 745 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 59, "</td></tr>" ) 763 if templ_7745c5c3_Err != nil { 746 if templ_7745c5c3_Err != nil { 764 return templ_7745c5c3_Err 747 return templ_7745c5c3_Err 765 } 748 } 766 } 749 } 767 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, "</tbody></table>" ) 750 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "</tbody></table>" ) 768 if templ_7745c5c3_Err != nil { 751 if templ_7745c5c3_Err != nil { 769 return templ_7745c5c3_Err 752 return templ_7745c5c3_Err 770 } 753 } ⋯ 2 hidden lines@@ -773,265 +756,4 @@ func inboxRows(rows []InboxRow, label string) templ.Component { 773 }) 756 }) 774 } 757 } 775 758 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 - 1037 var _ = templruntime.GeneratedTemplate759 var _ = templruntime.GeneratedTemplate