refactor(web): drop the Wide button of the diff bar, the w shortcut covers it
- commit
- 502935e68076ff7827c55e701bded5ded639fed4
- author
- brice · · 2026-10-19 15:17 UTC
- committer
- brice · · 2026-10-19 15:17 UTC
- parent
- a1f8e85
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
5 files · +467 -522
M internal/adapters/web/diff.templ +0 -9
| @@ -73,7 +73,6 @@ templ Commit(l Layout, p CommitPage) { | |||
| 73 | 73 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | |
| 74 | 74 | <span class="grow"></span> | |
| 75 | 75 | @diffViewMenu(p.DiffView) | |
| 76 | - | @wideButton() | |
| 77 | 76 | </div> | |
| 78 | 77 | if p.Invisible { | |
| 79 | 78 | <p class="notice"> | |
| @@ -131,14 +130,6 @@ templ diffViewMenu(p DiffView) { | |||
| 131 | 130 | </details> | |
| 132 | 131 | } | |
| 133 | 132 | ||
| 134 | - | // wideButton turns the wide mode (w, on every page) on or off: the rail goes | |
| 135 | - | // to the right edge and the code takes the rest. ermite.js keeps the choice. | |
| 136 | - | templ wideButton() { | |
| 137 | - | <button type="button" class="btn" data-js data-fire="wide" data-wide-toggle aria-pressed="false" aria-keyshortcuts="w" title="use the whole width of the screen"> | |
| 138 | - | Wide<kbd aria-hidden="true">w</kbd> | |
| 139 | - | </button> | |
| 140 | - | } | |
| 141 | - | ||
| 142 | 133 | // viewLink is a button of the diff tools. It is a link, so that the split | |
| 143 | 134 | // layout works without JavaScript; with it, and when both layouts are in the | |
| 144 | 135 | // page, a click only flips the layout. | |
| @@ -73,7 +73,6 @@ templ Commit(l Layout, p CommitPage) { | |||||
| 73 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | 73 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | ||
| 74 | <span class="grow"></span> | 74 | <span class="grow"></span> | ||
| 75 | @diffViewMenu(p.DiffView) | 75 | @diffViewMenu(p.DiffView) | ||
| 76 | - | @wideButton() | |||
| 77 | </div> | 76 | </div> | ||
| 78 | if p.Invisible { | 77 | if p.Invisible { | ||
| 79 | <p class="notice"> | 78 | <p class="notice"> | ||
| @@ -131,14 +130,6 @@ templ diffViewMenu(p DiffView) { | |||||
| 131 | </details> | 130 | </details> | ||
| 132 | } | 131 | } | ||
| 133 | 132 | ||||
| 134 | - | // wideButton turns the wide mode (w, on every page) on or off: the rail goes | |||
| 135 | - | // to the right edge and the code takes the rest. ermite.js keeps the choice. | |||
| 136 | - | templ wideButton() { | |||
| 137 | - | <button type="button" class="btn" data-js data-fire="wide" data-wide-toggle aria-pressed="false" aria-keyshortcuts="w" title="use the whole width of the screen"> | |||
| 138 | - | Wide<kbd aria-hidden="true">w</kbd> | |||
| 139 | - | </button> | |||
| 140 | - | } | |||
| 141 | - | ||||
| 142 | // viewLink is a button of the diff tools. It is a link, so that the split | 133 | // viewLink is a button of the diff tools. It is a link, so that the split | ||
| 143 | // layout works without JavaScript; with it, and when both layouts are in the | 134 | // layout works without JavaScript; with it, and when both layouts are in the | ||
| 144 | // page, a click only flips the layout. | 135 | // page, a click only flips the layout. | ||
M internal/adapters/web/diff_templ.go +423 -458
| @@ -363,10 +363,6 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||
| 363 | 363 | if templ_7745c5c3_Err != nil { | |
| 364 | 364 | return templ_7745c5c3_Err | |
| 365 | 365 | } | |
| 366 | - | templ_7745c5c3_Err = wideButton().Render(ctx, templ_7745c5c3_Buffer) | |
| 367 | - | if templ_7745c5c3_Err != nil { | |
| 368 | - | return templ_7745c5c3_Err | |
| 369 | - | } | |
| 370 | 366 | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "</div>") | |
| 371 | 367 | if templ_7745c5c3_Err != nil { | |
| 372 | 368 | return templ_7745c5c3_Err | |
| @@ -389,7 +385,7 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||
| 389 | 385 | var templ_7745c5c3_Var17 string | |
| 390 | 386 | templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | |
| 391 | 387 | if templ_7745c5c3_Err != nil { | |
| 392 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 85, Col: 29} | |
| 388 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 84, Col: 29} | |
| 393 | 389 | } | |
| 394 | 390 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) | |
| 395 | 391 | if templ_7745c5c3_Err != nil { | |
| @@ -412,7 +408,7 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||
| 412 | 408 | var templ_7745c5c3_Var18 string | |
| 413 | 409 | templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 414 | 410 | if templ_7745c5c3_Err != nil { | |
| 415 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 90, Col: 22} | |
| 411 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 89, Col: 22} | |
| 416 | 412 | } | |
| 417 | 413 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var18) | |
| 418 | 414 | if templ_7745c5c3_Err != nil { | |
| @@ -430,7 +426,7 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||
| 430 | 426 | var templ_7745c5c3_Var19 string | |
| 431 | 427 | templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 432 | 428 | if templ_7745c5c3_Err != nil { | |
| 433 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 92, Col: 22} | |
| 429 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 91, Col: 22} | |
| 434 | 430 | } | |
| 435 | 431 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var19) | |
| 436 | 432 | if templ_7745c5c3_Err != nil { | |
| @@ -465,7 +461,7 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||
| 465 | 461 | var templ_7745c5c3_Var20 string | |
| 466 | 462 | templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 467 | 463 | if templ_7745c5c3_Err != nil { | |
| 468 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 102, Col: 41} | |
| 464 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 101, Col: 41} | |
| 469 | 465 | } | |
| 470 | 466 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) | |
| 471 | 467 | if templ_7745c5c3_Err != nil { | |
| @@ -541,7 +537,7 @@ func diffViewMenu(p DiffView) templ.Component { | |||
| 541 | 537 | var templ_7745c5c3_Var22 string | |
| 542 | 538 | templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(viewLabel(p.View)) | |
| 543 | 539 | if templ_7745c5c3_Err != nil { | |
| 544 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 121, Col: 122} | |
| 540 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 120, Col: 122} | |
| 545 | 541 | } | |
| 546 | 542 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) | |
| 547 | 543 | if templ_7745c5c3_Err != nil { | |
| @@ -555,7 +551,7 @@ func diffViewMenu(p DiffView) templ.Component { | |||
| 555 | 551 | var templ_7745c5c3_Var23 string | |
| 556 | 552 | templ_7745c5c3_Var23, templ_7745c5c3_Err = templ.JoinStringErrs(viewLabel(p.View)) | |
| 557 | 553 | if templ_7745c5c3_Err != nil { | |
| 558 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 123, Col: 23} | |
| 554 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 122, Col: 23} | |
| 559 | 555 | } | |
| 560 | 556 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var23)) | |
| 561 | 557 | if templ_7745c5c3_Err != nil { | |
| @@ -586,37 +582,6 @@ func diffViewMenu(p DiffView) templ.Component { | |||
| 586 | 582 | }) | |
| 587 | 583 | } | |
| 588 | 584 | ||
| 589 | - | // wideButton turns the wide mode (w, on every page) on or off: the rail goes | |
| 590 | - | // to the right edge and the code takes the rest. ermite.js keeps the choice. | |
| 591 | - | func wideButton() templ.Component { | |
| 592 | - | return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | |
| 593 | - | templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | |
| 594 | - | if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { | |
| 595 | - | return templ_7745c5c3_CtxErr | |
| 596 | - | } | |
| 597 | - | templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | |
| 598 | - | if !templ_7745c5c3_IsBuffer { | |
| 599 | - | defer func() { | |
| 600 | - | templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | |
| 601 | - | if templ_7745c5c3_Err == nil { | |
| 602 | - | templ_7745c5c3_Err = templ_7745c5c3_BufErr | |
| 603 | - | } | |
| 604 | - | }() | |
| 605 | - | } | |
| 606 | - | ctx = templ.InitializeContext(ctx) | |
| 607 | - | templ_7745c5c3_Var24 := templ.GetChildren(ctx) | |
| 608 | - | if templ_7745c5c3_Var24 == nil { | |
| 609 | - | templ_7745c5c3_Var24 = templ.NopComponent | |
| 610 | - | } | |
| 611 | - | ctx = templ.ClearChildren(ctx) | |
| 612 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "<button type=\"button\" class=\"btn\" data-js data-fire=\"wide\" data-wide-toggle aria-pressed=\"false\" aria-keyshortcuts=\"w\" title=\"use the whole width of the screen\">Wide<kbd aria-hidden=\"true\">w</kbd></button>") | |
| 613 | - | if templ_7745c5c3_Err != nil { | |
| 614 | - | return templ_7745c5c3_Err | |
| 615 | - | } | |
| 616 | - | return nil | |
| 617 | - | }) | |
| 618 | - | } | |
| 619 | - | ||
| 620 | 585 | // viewLink is a button of the diff tools. It is a link, so that the split | |
| 621 | 586 | // layout works without JavaScript; with it, and when both layouts are in the | |
| 622 | 587 | // page, a click only flips the layout. | |
| @@ -636,106 +601,106 @@ func viewLink(p DiffView, view, label, key, href string) templ.Component { | |||
| 636 | 601 | }() | |
| 637 | 602 | } | |
| 638 | 603 | ctx = templ.InitializeContext(ctx) | |
| 639 | - | templ_7745c5c3_Var25 := templ.GetChildren(ctx) | |
| 640 | - | if templ_7745c5c3_Var25 == nil { | |
| 641 | - | templ_7745c5c3_Var25 = templ.NopComponent | |
| 604 | + | templ_7745c5c3_Var24 := templ.GetChildren(ctx) | |
| 605 | + | if templ_7745c5c3_Var24 == nil { | |
| 606 | + | templ_7745c5c3_Var24 = templ.NopComponent | |
| 642 | 607 | } | |
| 643 | 608 | ctx = templ.ClearChildren(ctx) | |
| 644 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, "<a href=\"") | |
| 609 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "<a href=\"") | |
| 645 | 610 | if templ_7745c5c3_Err != nil { | |
| 646 | 611 | return templ_7745c5c3_Err | |
| 647 | 612 | } | |
| 648 | - | var templ_7745c5c3_Var26 templ.SafeURL | |
| 649 | - | templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | |
| 613 | + | var templ_7745c5c3_Var25 templ.SafeURL | |
| 614 | + | templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | |
| 650 | 615 | if templ_7745c5c3_Err != nil { | |
| 651 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 147, Col: 28} | |
| 616 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 138, Col: 28} | |
| 652 | 617 | } | |
| 653 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var26)) | |
| 618 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25)) | |
| 654 | 619 | if templ_7745c5c3_Err != nil { | |
| 655 | 620 | return templ_7745c5c3_Err | |
| 656 | 621 | } | |
| 657 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 62, "\" class=\"btn vbtn\" data-view=\"") | |
| 622 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, "\" class=\"btn vbtn\" data-view=\"") | |
| 658 | 623 | if templ_7745c5c3_Err != nil { | |
| 659 | 624 | return templ_7745c5c3_Err | |
| 660 | 625 | } | |
| 661 | - | var templ_7745c5c3_Var27 string | |
| 662 | - | templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.ResolveAttributeValue(view) | |
| 626 | + | var templ_7745c5c3_Var26 string | |
| 627 | + | templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.ResolveAttributeValue(view) | |
| 663 | 628 | if templ_7745c5c3_Err != nil { | |
| 664 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 149, Col: 18} | |
| 629 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 140, Col: 18} | |
| 665 | 630 | } | |
| 666 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var27) | |
| 631 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var26) | |
| 667 | 632 | if templ_7745c5c3_Err != nil { | |
| 668 | 633 | return templ_7745c5c3_Err | |
| 669 | 634 | } | |
| 670 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 63, "\" aria-keyshortcuts=\"") | |
| 635 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 62, "\" aria-keyshortcuts=\"") | |
| 671 | 636 | if templ_7745c5c3_Err != nil { | |
| 672 | 637 | return templ_7745c5c3_Err | |
| 673 | 638 | } | |
| 674 | - | var templ_7745c5c3_Var28 string | |
| 675 | - | templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.ResolveAttributeValue(key) | |
| 639 | + | var templ_7745c5c3_Var27 string | |
| 640 | + | templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.ResolveAttributeValue(key) | |
| 676 | 641 | if templ_7745c5c3_Err != nil { | |
| 677 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 150, Col: 25} | |
| 642 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 141, Col: 25} | |
| 678 | 643 | } | |
| 679 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var28) | |
| 644 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var27) | |
| 680 | 645 | if templ_7745c5c3_Err != nil { | |
| 681 | 646 | return templ_7745c5c3_Err | |
| 682 | 647 | } | |
| 683 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 64, "\"") | |
| 648 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 63, "\"") | |
| 684 | 649 | if templ_7745c5c3_Err != nil { | |
| 685 | 650 | return templ_7745c5c3_Err | |
| 686 | 651 | } | |
| 687 | 652 | if p.View == view { | |
| 688 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 65, " aria-current=\"true\"") | |
| 653 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 64, " aria-current=\"true\"") | |
| 689 | 654 | if templ_7745c5c3_Err != nil { | |
| 690 | 655 | return templ_7745c5c3_Err | |
| 691 | 656 | } | |
| 692 | 657 | } | |
| 693 | 658 | if p.Both { | |
| 694 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 66, " data-fire=\"") | |
| 659 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 65, " data-fire=\"") | |
| 695 | 660 | if templ_7745c5c3_Err != nil { | |
| 696 | 661 | return templ_7745c5c3_Err | |
| 697 | 662 | } | |
| 698 | - | var templ_7745c5c3_Var29 string | |
| 699 | - | templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.ResolveAttributeValue(view) | |
| 663 | + | var templ_7745c5c3_Var28 string | |
| 664 | + | templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.ResolveAttributeValue(view) | |
| 700 | 665 | if templ_7745c5c3_Err != nil { | |
| 701 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 155, Col: 19} | |
| 666 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 146, Col: 19} | |
| 702 | 667 | } | |
| 703 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var29) | |
| 668 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var28) | |
| 704 | 669 | if templ_7745c5c3_Err != nil { | |
| 705 | 670 | return templ_7745c5c3_Err | |
| 706 | 671 | } | |
| 707 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 67, "\" :aria-current=\"q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false\"") | |
| 672 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 66, "\" :aria-current=\"q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false\"") | |
| 708 | 673 | if templ_7745c5c3_Err != nil { | |
| 709 | 674 | return templ_7745c5c3_Err | |
| 710 | 675 | } | |
| 711 | 676 | } | |
| 712 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 68, ">") | |
| 677 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 67, ">") | |
| 713 | 678 | if templ_7745c5c3_Err != nil { | |
| 714 | 679 | return templ_7745c5c3_Err | |
| 715 | 680 | } | |
| 716 | - | var templ_7745c5c3_Var30 string | |
| 717 | - | templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(label) | |
| 681 | + | var templ_7745c5c3_Var29 string | |
| 682 | + | templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.JoinStringErrs(label) | |
| 718 | 683 | if templ_7745c5c3_Err != nil { | |
| 719 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 158, Col: 9} | |
| 684 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 149, Col: 9} | |
| 720 | 685 | } | |
| 721 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) | |
| 686 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var29)) | |
| 722 | 687 | if templ_7745c5c3_Err != nil { | |
| 723 | 688 | return templ_7745c5c3_Err | |
| 724 | 689 | } | |
| 725 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 69, "<kbd aria-hidden=\"true\">") | |
| 690 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 68, "<kbd aria-hidden=\"true\">") | |
| 726 | 691 | if templ_7745c5c3_Err != nil { | |
| 727 | 692 | return templ_7745c5c3_Err | |
| 728 | 693 | } | |
| 729 | - | var templ_7745c5c3_Var31 string | |
| 730 | - | templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinStringErrs(key) | |
| 694 | + | var templ_7745c5c3_Var30 string | |
| 695 | + | templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(key) | |
| 731 | 696 | if templ_7745c5c3_Err != nil { | |
| 732 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 158, Col: 40} | |
| 697 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 149, Col: 40} | |
| 733 | 698 | } | |
| 734 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var31)) | |
| 699 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) | |
| 735 | 700 | if templ_7745c5c3_Err != nil { | |
| 736 | 701 | return templ_7745c5c3_Err | |
| 737 | 702 | } | |
| 738 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "</kbd></a>") | |
| 703 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 69, "</kbd></a>") | |
| 739 | 704 | if templ_7745c5c3_Err != nil { | |
| 740 | 705 | return templ_7745c5c3_Err | |
| 741 | 706 | } | |
| @@ -761,12 +726,12 @@ func collapseButton() templ.Component { | |||
| 761 | 726 | }() | |
| 762 | 727 | } | |
| 763 | 728 | ctx = templ.InitializeContext(ctx) | |
| 764 | - | templ_7745c5c3_Var32 := templ.GetChildren(ctx) | |
| 765 | - | if templ_7745c5c3_Var32 == nil { | |
| 766 | - | templ_7745c5c3_Var32 = templ.NopComponent | |
| 729 | + | templ_7745c5c3_Var31 := templ.GetChildren(ctx) | |
| 730 | + | if templ_7745c5c3_Var31 == nil { | |
| 731 | + | templ_7745c5c3_Var31 = templ.NopComponent | |
| 767 | 732 | } | |
| 768 | 733 | ctx = templ.ClearChildren(ctx) | |
| 769 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "<button type=\"button\" aria-keyshortcuts=\"x\" data-js data-fire=\"collapse\" class=\"btn\"><span hx-live=\"this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'\">Collapse all</span><kbd aria-hidden=\"true\">x</kbd></button>") | |
| 734 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "<button type=\"button\" aria-keyshortcuts=\"x\" data-js data-fire=\"collapse\" class=\"btn\"><span hx-live=\"this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'\">Collapse all</span><kbd aria-hidden=\"true\">x</kbd></button>") | |
| 770 | 735 | if templ_7745c5c3_Err != nil { | |
| 771 | 736 | return templ_7745c5c3_Err | |
| 772 | 737 | } | |
| @@ -790,83 +755,83 @@ func personView(pr Person) templ.Component { | |||
| 790 | 755 | }() | |
| 791 | 756 | } | |
| 792 | 757 | ctx = templ.InitializeContext(ctx) | |
| 793 | - | templ_7745c5c3_Var33 := templ.GetChildren(ctx) | |
| 794 | - | if templ_7745c5c3_Var33 == nil { | |
| 795 | - | templ_7745c5c3_Var33 = templ.NopComponent | |
| 758 | + | templ_7745c5c3_Var32 := templ.GetChildren(ctx) | |
| 759 | + | if templ_7745c5c3_Var32 == nil { | |
| 760 | + | templ_7745c5c3_Var32 = templ.NopComponent | |
| 796 | 761 | } | |
| 797 | 762 | ctx = templ.ClearChildren(ctx) | |
| 798 | - | var templ_7745c5c3_Var34 string | |
| 799 | - | templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(pr.Name) | |
| 763 | + | var templ_7745c5c3_Var33 string | |
| 764 | + | templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinStringErrs(pr.Name) | |
| 800 | 765 | if templ_7745c5c3_Err != nil { | |
| 801 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 170, Col: 10} | |
| 766 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 161, Col: 10} | |
| 802 | 767 | } | |
| 803 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var34)) | |
| 768 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var33)) | |
| 804 | 769 | if templ_7745c5c3_Err != nil { | |
| 805 | 770 | return templ_7745c5c3_Err | |
| 806 | 771 | } | |
| 807 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 72, " ") | |
| 772 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, " ") | |
| 808 | 773 | if templ_7745c5c3_Err != nil { | |
| 809 | 774 | return templ_7745c5c3_Err | |
| 810 | 775 | } | |
| 811 | 776 | if pr.WhenAt != "" { | |
| 812 | - | var templ_7745c5c3_Var35 string | |
| 813 | - | templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | |
| 777 | + | var templ_7745c5c3_Var34 string | |
| 778 | + | templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | |
| 814 | 779 | if templ_7745c5c3_Err != nil { | |
| 815 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 10} | |
| 780 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 10} | |
| 816 | 781 | } | |
| 817 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var35)) | |
| 782 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var34)) | |
| 818 | 783 | if templ_7745c5c3_Err != nil { | |
| 819 | 784 | return templ_7745c5c3_Err | |
| 820 | 785 | } | |
| 821 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 73, "<time datetime=\"") | |
| 786 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 72, "<time datetime=\"") | |
| 822 | 787 | if templ_7745c5c3_Err != nil { | |
| 823 | 788 | return templ_7745c5c3_Err | |
| 824 | 789 | } | |
| 825 | - | var templ_7745c5c3_Var36 string | |
| 826 | - | templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.ResolveAttributeValue(pr.WhenAt) | |
| 790 | + | var templ_7745c5c3_Var35 string | |
| 791 | + | templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.ResolveAttributeValue(pr.WhenAt) | |
| 827 | 792 | if templ_7745c5c3_Err != nil { | |
| 828 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 38} | |
| 793 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 38} | |
| 829 | 794 | } | |
| 830 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var36) | |
| 795 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var35) | |
| 831 | 796 | if templ_7745c5c3_Err != nil { | |
| 832 | 797 | return templ_7745c5c3_Err | |
| 833 | 798 | } | |
| 834 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 74, "\" title=\"") | |
| 799 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 73, "\" title=\"") | |
| 835 | 800 | if templ_7745c5c3_Err != nil { | |
| 836 | 801 | return templ_7745c5c3_Err | |
| 837 | 802 | } | |
| 838 | - | var templ_7745c5c3_Var37 string | |
| 839 | - | templ_7745c5c3_Var37, templ_7745c5c3_Err = templ.ResolveAttributeValue(pr.Abs) | |
| 803 | + | var templ_7745c5c3_Var36 string | |
| 804 | + | templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.ResolveAttributeValue(pr.Abs) | |
| 840 | 805 | if templ_7745c5c3_Err != nil { | |
| 841 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 55} | |
| 806 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 55} | |
| 842 | 807 | } | |
| 843 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var37) | |
| 808 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var36) | |
| 844 | 809 | if templ_7745c5c3_Err != nil { | |
| 845 | 810 | return templ_7745c5c3_Err | |
| 846 | 811 | } | |
| 847 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 75, "\">") | |
| 812 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 74, "\">") | |
| 848 | 813 | if templ_7745c5c3_Err != nil { | |
| 849 | 814 | return templ_7745c5c3_Err | |
| 850 | 815 | } | |
| 851 | - | var templ_7745c5c3_Var38 string | |
| 852 | - | templ_7745c5c3_Var38, templ_7745c5c3_Err = templ.JoinStringErrs(pr.When) | |
| 816 | + | var templ_7745c5c3_Var37 string | |
| 817 | + | templ_7745c5c3_Var37, templ_7745c5c3_Err = templ.JoinStringErrs(pr.When) | |
| 853 | 818 | if templ_7745c5c3_Err != nil { | |
| 854 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 67} | |
| 819 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 67} | |
| 855 | 820 | } | |
| 856 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var38)) | |
| 821 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var37)) | |
| 857 | 822 | if templ_7745c5c3_Err != nil { | |
| 858 | 823 | return templ_7745c5c3_Err | |
| 859 | 824 | } | |
| 860 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 76, "</time>") | |
| 825 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 75, "</time>") | |
| 861 | 826 | if templ_7745c5c3_Err != nil { | |
| 862 | 827 | return templ_7745c5c3_Err | |
| 863 | 828 | } | |
| 864 | - | var templ_7745c5c3_Var39 string | |
| 865 | - | templ_7745c5c3_Var39, templ_7745c5c3_Err = templ.JoinStringErrs(" · " + pr.Abs) | |
| 829 | + | var templ_7745c5c3_Var38 string | |
| 830 | + | templ_7745c5c3_Var38, templ_7745c5c3_Err = templ.JoinStringErrs(" · " + pr.Abs) | |
| 866 | 831 | if templ_7745c5c3_Err != nil { | |
| 867 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 93} | |
| 832 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 93} | |
| 868 | 833 | } | |
| 869 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var39)) | |
| 834 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var38)) | |
| 870 | 835 | if templ_7745c5c3_Err != nil { | |
| 871 | 836 | return templ_7745c5c3_Err | |
| 872 | 837 | } | |
| @@ -891,25 +856,25 @@ func commitRail(p CommitPage) templ.Component { | |||
| 891 | 856 | }() | |
| 892 | 857 | } | |
| 893 | 858 | ctx = templ.InitializeContext(ctx) | |
| 894 | - | templ_7745c5c3_Var40 := templ.GetChildren(ctx) | |
| 895 | - | if templ_7745c5c3_Var40 == nil { | |
| 896 | - | templ_7745c5c3_Var40 = templ.NopComponent | |
| 859 | + | templ_7745c5c3_Var39 := templ.GetChildren(ctx) | |
| 860 | + | if templ_7745c5c3_Var39 == nil { | |
| 861 | + | templ_7745c5c3_Var39 = templ.NopComponent | |
| 897 | 862 | } | |
| 898 | 863 | ctx = templ.ClearChildren(ctx) | |
| 899 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 77, "<section aria-labelledby=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | |
| 864 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 76, "<section aria-labelledby=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | |
| 900 | 865 | if templ_7745c5c3_Err != nil { | |
| 901 | 866 | return templ_7745c5c3_Err | |
| 902 | 867 | } | |
| 903 | - | var templ_7745c5c3_Var41 string | |
| 904 | - | templ_7745c5c3_Var41, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | |
| 868 | + | var templ_7745c5c3_Var40 string | |
| 869 | + | templ_7745c5c3_Var40, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | |
| 905 | 870 | if templ_7745c5c3_Err != nil { | |
| 906 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 178, Col: 65} | |
| 871 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 169, Col: 65} | |
| 907 | 872 | } | |
| 908 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var41)) | |
| 873 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var40)) | |
| 909 | 874 | if templ_7745c5c3_Err != nil { | |
| 910 | 875 | return templ_7745c5c3_Err | |
| 911 | 876 | } | |
| 912 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 78, "</span></h2>") | |
| 877 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 77, "</span></h2>") | |
| 913 | 878 | if templ_7745c5c3_Err != nil { | |
| 914 | 879 | return templ_7745c5c3_Err | |
| 915 | 880 | } | |
| @@ -917,7 +882,7 @@ func commitRail(p CommitPage) templ.Component { | |||
| 917 | 882 | if templ_7745c5c3_Err != nil { | |
| 918 | 883 | return templ_7745c5c3_Err | |
| 919 | 884 | } | |
| 920 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 79, "</section>") | |
| 885 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 78, "</section>") | |
| 921 | 886 | if templ_7745c5c3_Err != nil { | |
| 922 | 887 | return templ_7745c5c3_Err | |
| 923 | 888 | } | |
| @@ -943,236 +908,236 @@ func FileList(files []DiffFile) templ.Component { | |||
| 943 | 908 | }() | |
| 944 | 909 | } | |
| 945 | 910 | ctx = templ.InitializeContext(ctx) | |
| 946 | - | templ_7745c5c3_Var42 := templ.GetChildren(ctx) | |
| 947 | - | if templ_7745c5c3_Var42 == nil { | |
| 948 | - | templ_7745c5c3_Var42 = templ.NopComponent | |
| 911 | + | templ_7745c5c3_Var41 := templ.GetChildren(ctx) | |
| 912 | + | if templ_7745c5c3_Var41 == nil { | |
| 913 | + | templ_7745c5c3_Var41 = templ.NopComponent | |
| 949 | 914 | } | |
| 950 | 915 | ctx = templ.ClearChildren(ctx) | |
| 951 | 916 | if len(files) > fileFilterMin { | |
| 952 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 80, "<div class=\"ffilter\"><label for=\"files-filter\" class=\"sr\">filter the changed files</label> <input id=\"files-filter\" type=\"search\" placeholder=\"Filter files…\" autocomplete=\"off\" data-pick=\".files > li\" hx-on:input=\"ermite.filter(this)\"></div>") | |
| 917 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 79, "<div class=\"ffilter\"><label for=\"files-filter\" class=\"sr\">filter the changed files</label> <input id=\"files-filter\" type=\"search\" placeholder=\"Filter files…\" autocomplete=\"off\" data-pick=\".files > li\" hx-on:input=\"ermite.filter(this)\"></div>") | |
| 953 | 918 | if templ_7745c5c3_Err != nil { | |
| 954 | 919 | return templ_7745c5c3_Err | |
| 955 | 920 | } | |
| 956 | 921 | } | |
| 957 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 81, "<ol class=\"files\" aria-label=\"Changed files\">") | |
| 922 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 80, "<ol class=\"files\" aria-label=\"Changed files\">") | |
| 958 | 923 | if templ_7745c5c3_Err != nil { | |
| 959 | 924 | return templ_7745c5c3_Err | |
| 960 | 925 | } | |
| 961 | 926 | for _, f := range files { | |
| 962 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 82, "<li><a href=\"") | |
| 927 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 81, "<li><a href=\"") | |
| 963 | 928 | if templ_7745c5c3_Err != nil { | |
| 964 | 929 | return templ_7745c5c3_Err | |
| 965 | 930 | } | |
| 966 | - | var templ_7745c5c3_Var43 templ.SafeURL | |
| 967 | - | templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL("#" + f.ID)) | |
| 931 | + | var templ_7745c5c3_Var42 templ.SafeURL | |
| 932 | + | templ_7745c5c3_Var42, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL("#" + f.ID)) | |
| 968 | 933 | if templ_7745c5c3_Err != nil { | |
| 969 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 203, Col: 37} | |
| 934 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 194, Col: 37} | |
| 970 | 935 | } | |
| 971 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var43)) | |
| 936 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var42)) | |
| 972 | 937 | if templ_7745c5c3_Err != nil { | |
| 973 | 938 | return templ_7745c5c3_Err | |
| 974 | 939 | } | |
| 975 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 83, "\" title=\"") | |
| 940 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 82, "\" title=\"") | |
| 941 | + | if templ_7745c5c3_Err != nil { | |
| 942 | + | return templ_7745c5c3_Err | |
| 943 | + | } | |
| 944 | + | var templ_7745c5c3_Var43 string | |
| 945 | + | templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | |
| 946 | + | if templ_7745c5c3_Err != nil { | |
| 947 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 195, Col: 19} | |
| 948 | + | } | |
| 949 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var43) | |
| 950 | + | if templ_7745c5c3_Err != nil { | |
| 951 | + | return templ_7745c5c3_Err | |
| 952 | + | } | |
| 953 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 83, "\" hx-on:click=\"(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))\"><span class=\"st\" data-st=\"") | |
| 976 | 954 | if templ_7745c5c3_Err != nil { | |
| 977 | 955 | return templ_7745c5c3_Err | |
| 978 | 956 | } | |
| 979 | 957 | var templ_7745c5c3_Var44 string | |
| 980 | - | templ_7745c5c3_Var44, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | |
| 958 | + | templ_7745c5c3_Var44, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Status) | |
| 981 | 959 | if templ_7745c5c3_Err != nil { | |
| 982 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 204, Col: 19} | |
| 960 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 198, Col: 40} | |
| 983 | 961 | } | |
| 984 | 962 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var44) | |
| 985 | 963 | if templ_7745c5c3_Err != nil { | |
| 986 | 964 | return templ_7745c5c3_Err | |
| 987 | 965 | } | |
| 988 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 84, "\" hx-on:click=\"(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))\"><span class=\"st\" data-st=\"") | |
| 966 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 84, "\" title=\"") | |
| 989 | 967 | if templ_7745c5c3_Err != nil { | |
| 990 | 968 | return templ_7745c5c3_Err | |
| 991 | 969 | } | |
| 992 | 970 | var templ_7745c5c3_Var45 string | |
| 993 | - | templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Status) | |
| 971 | + | templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.ResolveAttributeValue(statusName(f.Status)) | |
| 994 | 972 | if templ_7745c5c3_Err != nil { | |
| 995 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 207, Col: 40} | |
| 973 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 198, Col: 71} | |
| 996 | 974 | } | |
| 997 | 975 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var45) | |
| 998 | 976 | if templ_7745c5c3_Err != nil { | |
| 999 | 977 | return templ_7745c5c3_Err | |
| 1000 | 978 | } | |
| 1001 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 85, "\" title=\"") | |
| 979 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 85, "\">") | |
| 1002 | 980 | if templ_7745c5c3_Err != nil { | |
| 1003 | 981 | return templ_7745c5c3_Err | |
| 1004 | 982 | } | |
| 1005 | 983 | var templ_7745c5c3_Var46 string | |
| 1006 | - | templ_7745c5c3_Var46, templ_7745c5c3_Err = templ.ResolveAttributeValue(statusName(f.Status)) | |
| 984 | + | templ_7745c5c3_Var46, templ_7745c5c3_Err = templ.JoinStringErrs(f.Status) | |
| 1007 | 985 | if templ_7745c5c3_Err != nil { | |
| 1008 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 207, Col: 71} | |
| 986 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 198, Col: 84} | |
| 1009 | 987 | } | |
| 1010 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var46) | |
| 988 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var46)) | |
| 1011 | 989 | if templ_7745c5c3_Err != nil { | |
| 1012 | 990 | return templ_7745c5c3_Err | |
| 1013 | 991 | } | |
| 1014 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 86, "\">") | |
| 992 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 86, "</span> <span class=\"nm\"><span class=\"p\">") | |
| 1015 | 993 | if templ_7745c5c3_Err != nil { | |
| 1016 | 994 | return templ_7745c5c3_Err | |
| 1017 | 995 | } | |
| 1018 | 996 | var templ_7745c5c3_Var47 string | |
| 1019 | - | templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(f.Status) | |
| 997 | + | templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(f.Name) | |
| 1020 | 998 | if templ_7745c5c3_Err != nil { | |
| 1021 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 207, Col: 84} | |
| 999 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 199, Col: 46} | |
| 1022 | 1000 | } | |
| 1023 | 1001 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var47)) | |
| 1024 | 1002 | if templ_7745c5c3_Err != nil { | |
| 1025 | 1003 | return templ_7745c5c3_Err | |
| 1026 | 1004 | } | |
| 1027 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 87, "</span> <span class=\"nm\"><span class=\"p\">") | |
| 1005 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 87, "</span>") | |
| 1028 | 1006 | if templ_7745c5c3_Err != nil { | |
| 1029 | 1007 | return templ_7745c5c3_Err | |
| 1030 | 1008 | } | |
| 1031 | 1009 | var templ_7745c5c3_Var48 string | |
| 1032 | - | templ_7745c5c3_Var48, templ_7745c5c3_Err = templ.JoinStringErrs(f.Name) | |
| 1010 | + | templ_7745c5c3_Var48, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1033 | 1011 | if templ_7745c5c3_Err != nil { | |
| 1034 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 46} | |
| 1012 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 199, Col: 60} | |
| 1035 | 1013 | } | |
| 1036 | 1014 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var48)) | |
| 1037 | 1015 | if templ_7745c5c3_Err != nil { | |
| 1038 | 1016 | return templ_7745c5c3_Err | |
| 1039 | 1017 | } | |
| 1040 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 88, "</span>") | |
| 1018 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 88, "<span class=\"d\"><bdi>") | |
| 1041 | 1019 | if templ_7745c5c3_Err != nil { | |
| 1042 | 1020 | return templ_7745c5c3_Err | |
| 1043 | 1021 | } | |
| 1044 | 1022 | var templ_7745c5c3_Var49 string | |
| 1045 | - | templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1023 | + | templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.JoinStringErrs(f.Dir) | |
| 1046 | 1024 | if templ_7745c5c3_Err != nil { | |
| 1047 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 60} | |
| 1025 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 199, Col: 90} | |
| 1048 | 1026 | } | |
| 1049 | 1027 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var49)) | |
| 1050 | 1028 | if templ_7745c5c3_Err != nil { | |
| 1051 | 1029 | return templ_7745c5c3_Err | |
| 1052 | 1030 | } | |
| 1053 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 89, "<span class=\"d\"><bdi>") | |
| 1054 | - | if templ_7745c5c3_Err != nil { | |
| 1055 | - | return templ_7745c5c3_Err | |
| 1056 | - | } | |
| 1057 | - | var templ_7745c5c3_Var50 string | |
| 1058 | - | templ_7745c5c3_Var50, templ_7745c5c3_Err = templ.JoinStringErrs(f.Dir) | |
| 1059 | - | if templ_7745c5c3_Err != nil { | |
| 1060 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 90} | |
| 1061 | - | } | |
| 1062 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var50)) | |
| 1063 | - | if templ_7745c5c3_Err != nil { | |
| 1064 | - | return templ_7745c5c3_Err | |
| 1065 | - | } | |
| 1066 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 90, "</bdi></span></span> ") | |
| 1031 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 89, "</bdi></span></span> ") | |
| 1067 | 1032 | if templ_7745c5c3_Err != nil { | |
| 1068 | 1033 | return templ_7745c5c3_Err | |
| 1069 | 1034 | } | |
| 1070 | 1035 | if f.OpenNotes > 0 { | |
| 1071 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 91, "<span class=\"cn\" title=\"") | |
| 1036 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 90, "<span class=\"cn\" title=\"") | |
| 1072 | 1037 | if templ_7745c5c3_Err != nil { | |
| 1073 | 1038 | return templ_7745c5c3_Err | |
| 1074 | 1039 | } | |
| 1075 | - | var templ_7745c5c3_Var51 string | |
| 1076 | - | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.ResolveAttributeValue(plural(f.OpenNotes, "open comment", "open comments")) | |
| 1040 | + | var templ_7745c5c3_Var50 string | |
| 1041 | + | templ_7745c5c3_Var50, templ_7745c5c3_Err = templ.ResolveAttributeValue(plural(f.OpenNotes, "open comment", "open comments")) | |
| 1077 | 1042 | if templ_7745c5c3_Err != nil { | |
| 1078 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 210, Col: 83} | |
| 1043 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 201, Col: 83} | |
| 1079 | 1044 | } | |
| 1080 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var51) | |
| 1045 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var50) | |
| 1081 | 1046 | if templ_7745c5c3_Err != nil { | |
| 1082 | 1047 | return templ_7745c5c3_Err | |
| 1083 | 1048 | } | |
| 1084 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 92, "\">") | |
| 1049 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 91, "\">") | |
| 1085 | 1050 | if templ_7745c5c3_Err != nil { | |
| 1086 | 1051 | return templ_7745c5c3_Err | |
| 1087 | 1052 | } | |
| 1088 | - | var templ_7745c5c3_Var52 string | |
| 1089 | - | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.OpenNotes)) | |
| 1053 | + | var templ_7745c5c3_Var51 string | |
| 1054 | + | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.OpenNotes)) | |
| 1090 | 1055 | if templ_7745c5c3_Err != nil { | |
| 1091 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 210, Col: 105} | |
| 1056 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 201, Col: 105} | |
| 1092 | 1057 | } | |
| 1093 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var52)) | |
| 1058 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var51)) | |
| 1094 | 1059 | if templ_7745c5c3_Err != nil { | |
| 1095 | 1060 | return templ_7745c5c3_Err | |
| 1096 | 1061 | } | |
| 1097 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 93, "</span> ") | |
| 1062 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 92, "</span> ") | |
| 1098 | 1063 | if templ_7745c5c3_Err != nil { | |
| 1099 | 1064 | return templ_7745c5c3_Err | |
| 1100 | 1065 | } | |
| 1101 | 1066 | } else if f.Notes > 0 { | |
| 1102 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 94, "<span class=\"cn done\" title=\"") | |
| 1067 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 93, "<span class=\"cn done\" title=\"") | |
| 1103 | 1068 | if templ_7745c5c3_Err != nil { | |
| 1104 | 1069 | return templ_7745c5c3_Err | |
| 1105 | 1070 | } | |
| 1106 | - | var templ_7745c5c3_Var53 string | |
| 1107 | - | templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.ResolveAttributeValue(plural(f.Notes, "resolved comment", "resolved comments")) | |
| 1071 | + | var templ_7745c5c3_Var52 string | |
| 1072 | + | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.ResolveAttributeValue(plural(f.Notes, "resolved comment", "resolved comments")) | |
| 1108 | 1073 | if templ_7745c5c3_Err != nil { | |
| 1109 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 212, Col: 92} | |
| 1074 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 203, Col: 92} | |
| 1110 | 1075 | } | |
| 1111 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var53) | |
| 1076 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var52) | |
| 1112 | 1077 | if templ_7745c5c3_Err != nil { | |
| 1113 | 1078 | return templ_7745c5c3_Err | |
| 1114 | 1079 | } | |
| 1115 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 95, "\">") | |
| 1080 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 94, "\">") | |
| 1116 | 1081 | if templ_7745c5c3_Err != nil { | |
| 1117 | 1082 | return templ_7745c5c3_Err | |
| 1118 | 1083 | } | |
| 1119 | - | var templ_7745c5c3_Var54 string | |
| 1120 | - | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Notes)) | |
| 1084 | + | var templ_7745c5c3_Var53 string | |
| 1085 | + | templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Notes)) | |
| 1121 | 1086 | if templ_7745c5c3_Err != nil { | |
| 1122 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 212, Col: 110} | |
| 1087 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 203, Col: 110} | |
| 1123 | 1088 | } | |
| 1124 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | |
| 1089 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var53)) | |
| 1125 | 1090 | if templ_7745c5c3_Err != nil { | |
| 1126 | 1091 | return templ_7745c5c3_Err | |
| 1127 | 1092 | } | |
| 1128 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 96, "</span> ") | |
| 1093 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 95, "</span> ") | |
| 1129 | 1094 | if templ_7745c5c3_Err != nil { | |
| 1130 | 1095 | return templ_7745c5c3_Err | |
| 1131 | 1096 | } | |
| 1132 | 1097 | } | |
| 1133 | 1098 | if f.Bin { | |
| 1134 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 97, "<span class=\"n mute\">bin</span>") | |
| 1099 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 96, "<span class=\"n mute\">bin</span>") | |
| 1135 | 1100 | if templ_7745c5c3_Err != nil { | |
| 1136 | 1101 | return templ_7745c5c3_Err | |
| 1137 | 1102 | } | |
| 1138 | 1103 | } else { | |
| 1139 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 98, "<span class=\"n\"><span class=\"plus\">+") | |
| 1104 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 97, "<span class=\"n\"><span class=\"plus\">+") | |
| 1140 | 1105 | if templ_7745c5c3_Err != nil { | |
| 1141 | 1106 | return templ_7745c5c3_Err | |
| 1142 | 1107 | } | |
| 1143 | - | var templ_7745c5c3_Var55 string | |
| 1144 | - | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Add)) | |
| 1108 | + | var templ_7745c5c3_Var54 string | |
| 1109 | + | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Add)) | |
| 1145 | 1110 | if templ_7745c5c3_Err != nil { | |
| 1146 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 217, Col: 55} | |
| 1111 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 55} | |
| 1147 | 1112 | } | |
| 1148 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) | |
| 1113 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | |
| 1149 | 1114 | if templ_7745c5c3_Err != nil { | |
| 1150 | 1115 | return templ_7745c5c3_Err | |
| 1151 | 1116 | } | |
| 1152 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, "</span> <span class=\"minus\">-") | |
| 1117 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 98, "</span> <span class=\"minus\">-") | |
| 1153 | 1118 | if templ_7745c5c3_Err != nil { | |
| 1154 | 1119 | return templ_7745c5c3_Err | |
| 1155 | 1120 | } | |
| 1156 | - | var templ_7745c5c3_Var56 string | |
| 1157 | - | templ_7745c5c3_Var56, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Del)) | |
| 1121 | + | var templ_7745c5c3_Var55 string | |
| 1122 | + | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Del)) | |
| 1158 | 1123 | if templ_7745c5c3_Err != nil { | |
| 1159 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 217, Col: 99} | |
| 1124 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 99} | |
| 1160 | 1125 | } | |
| 1161 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var56)) | |
| 1126 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) | |
| 1162 | 1127 | if templ_7745c5c3_Err != nil { | |
| 1163 | 1128 | return templ_7745c5c3_Err | |
| 1164 | 1129 | } | |
| 1165 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 100, "</span></span>") | |
| 1130 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, "</span></span>") | |
| 1166 | 1131 | if templ_7745c5c3_Err != nil { | |
| 1167 | 1132 | return templ_7745c5c3_Err | |
| 1168 | 1133 | } | |
| 1169 | 1134 | } | |
| 1170 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 101, "</a></li>") | |
| 1135 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 100, "</a></li>") | |
| 1171 | 1136 | if templ_7745c5c3_Err != nil { | |
| 1172 | 1137 | return templ_7745c5c3_Err | |
| 1173 | 1138 | } | |
| 1174 | 1139 | } | |
| 1175 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 102, "</ol>") | |
| 1140 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 101, "</ol>") | |
| 1176 | 1141 | if templ_7745c5c3_Err != nil { | |
| 1177 | 1142 | return templ_7745c5c3_Err | |
| 1178 | 1143 | } | |
| @@ -1200,270 +1165,270 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1200 | 1165 | }() | |
| 1201 | 1166 | } | |
| 1202 | 1167 | ctx = templ.InitializeContext(ctx) | |
| 1203 | - | templ_7745c5c3_Var57 := templ.GetChildren(ctx) | |
| 1204 | - | if templ_7745c5c3_Var57 == nil { | |
| 1205 | - | templ_7745c5c3_Var57 = templ.NopComponent | |
| 1168 | + | templ_7745c5c3_Var56 := templ.GetChildren(ctx) | |
| 1169 | + | if templ_7745c5c3_Var56 == nil { | |
| 1170 | + | templ_7745c5c3_Var56 = templ.NopComponent | |
| 1206 | 1171 | } | |
| 1207 | 1172 | ctx = templ.ClearChildren(ctx) | |
| 1208 | - | var templ_7745c5c3_Var58 = []any{"dfile", "lnw-" + itoa(f.Digits)} | |
| 1209 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var58...) | |
| 1173 | + | var templ_7745c5c3_Var57 = []any{"dfile", "lnw-" + itoa(f.Digits)} | |
| 1174 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var57...) | |
| 1210 | 1175 | if templ_7745c5c3_Err != nil { | |
| 1211 | 1176 | return templ_7745c5c3_Err | |
| 1212 | 1177 | } | |
| 1213 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 103, "<details class=\"") | |
| 1178 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 102, "<details class=\"") | |
| 1214 | 1179 | if templ_7745c5c3_Err != nil { | |
| 1215 | 1180 | return templ_7745c5c3_Err | |
| 1216 | 1181 | } | |
| 1217 | - | var templ_7745c5c3_Var59 string | |
| 1218 | - | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var58).String()) | |
| 1182 | + | var templ_7745c5c3_Var58 string | |
| 1183 | + | templ_7745c5c3_Var58, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var57).String()) | |
| 1219 | 1184 | if templ_7745c5c3_Err != nil { | |
| 1220 | 1185 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | |
| 1221 | 1186 | } | |
| 1222 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var59) | |
| 1187 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var58) | |
| 1223 | 1188 | if templ_7745c5c3_Err != nil { | |
| 1224 | 1189 | return templ_7745c5c3_Err | |
| 1225 | 1190 | } | |
| 1226 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 104, "\" id=\"") | |
| 1191 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 103, "\" id=\"") | |
| 1227 | 1192 | if templ_7745c5c3_Err != nil { | |
| 1228 | 1193 | return templ_7745c5c3_Err | |
| 1229 | 1194 | } | |
| 1230 | - | var templ_7745c5c3_Var60 string | |
| 1231 | - | templ_7745c5c3_Var60, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID) | |
| 1195 | + | var templ_7745c5c3_Var59 string | |
| 1196 | + | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID) | |
| 1232 | 1197 | if templ_7745c5c3_Err != nil { | |
| 1233 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 232, Col: 11} | |
| 1198 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 223, Col: 11} | |
| 1234 | 1199 | } | |
| 1235 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var60) | |
| 1200 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var59) | |
| 1236 | 1201 | if templ_7745c5c3_Err != nil { | |
| 1237 | 1202 | return templ_7745c5c3_Err | |
| 1238 | 1203 | } | |
| 1239 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 105, "\" data-file") | |
| 1204 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 104, "\" data-file") | |
| 1240 | 1205 | if templ_7745c5c3_Err != nil { | |
| 1241 | 1206 | return templ_7745c5c3_Err | |
| 1242 | 1207 | } | |
| 1243 | 1208 | if f.Open { | |
| 1244 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 106, " open") | |
| 1209 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 105, " open") | |
| 1245 | 1210 | if templ_7745c5c3_Err != nil { | |
| 1246 | 1211 | return templ_7745c5c3_Err | |
| 1247 | 1212 | } | |
| 1248 | 1213 | } | |
| 1249 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 107, "><summary><span class=\"st\">") | |
| 1214 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 106, "><summary><span class=\"st\">") | |
| 1215 | + | if templ_7745c5c3_Err != nil { | |
| 1216 | + | return templ_7745c5c3_Err | |
| 1217 | + | } | |
| 1218 | + | var templ_7745c5c3_Var60 string | |
| 1219 | + | templ_7745c5c3_Var60, templ_7745c5c3_Err = templ.JoinStringErrs(f.Status) | |
| 1220 | + | if templ_7745c5c3_Err != nil { | |
| 1221 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 30} | |
| 1222 | + | } | |
| 1223 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var60)) | |
| 1224 | + | if templ_7745c5c3_Err != nil { | |
| 1225 | + | return templ_7745c5c3_Err | |
| 1226 | + | } | |
| 1227 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 107, "</span>") | |
| 1250 | 1228 | if templ_7745c5c3_Err != nil { | |
| 1251 | 1229 | return templ_7745c5c3_Err | |
| 1252 | 1230 | } | |
| 1253 | 1231 | var templ_7745c5c3_Var61 string | |
| 1254 | - | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.JoinStringErrs(f.Status) | |
| 1232 | + | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1255 | 1233 | if templ_7745c5c3_Err != nil { | |
| 1256 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 30} | |
| 1234 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 44} | |
| 1257 | 1235 | } | |
| 1258 | 1236 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var61)) | |
| 1259 | 1237 | if templ_7745c5c3_Err != nil { | |
| 1260 | 1238 | return templ_7745c5c3_Err | |
| 1261 | 1239 | } | |
| 1262 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 108, "</span>") | |
| 1240 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 108, "<span class=\"p\">") | |
| 1263 | 1241 | if templ_7745c5c3_Err != nil { | |
| 1264 | 1242 | return templ_7745c5c3_Err | |
| 1265 | 1243 | } | |
| 1266 | 1244 | var templ_7745c5c3_Var62 string | |
| 1267 | - | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1245 | + | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.JoinStringErrs(f.Path) | |
| 1268 | 1246 | if templ_7745c5c3_Err != nil { | |
| 1269 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 44} | |
| 1247 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 70} | |
| 1270 | 1248 | } | |
| 1271 | 1249 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var62)) | |
| 1272 | 1250 | if templ_7745c5c3_Err != nil { | |
| 1273 | 1251 | return templ_7745c5c3_Err | |
| 1274 | 1252 | } | |
| 1275 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 109, "<span class=\"p\">") | |
| 1253 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 109, "</span>") | |
| 1276 | 1254 | if templ_7745c5c3_Err != nil { | |
| 1277 | 1255 | return templ_7745c5c3_Err | |
| 1278 | 1256 | } | |
| 1279 | 1257 | var templ_7745c5c3_Var63 string | |
| 1280 | - | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.JoinStringErrs(f.Path) | |
| 1258 | + | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1281 | 1259 | if templ_7745c5c3_Err != nil { | |
| 1282 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 70} | |
| 1260 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 84} | |
| 1283 | 1261 | } | |
| 1284 | 1262 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var63)) | |
| 1285 | 1263 | if templ_7745c5c3_Err != nil { | |
| 1286 | 1264 | return templ_7745c5c3_Err | |
| 1287 | 1265 | } | |
| 1288 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 110, "</span>") | |
| 1266 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 110, "<span class=\"plus\">+") | |
| 1289 | 1267 | if templ_7745c5c3_Err != nil { | |
| 1290 | 1268 | return templ_7745c5c3_Err | |
| 1291 | 1269 | } | |
| 1292 | 1270 | var templ_7745c5c3_Var64 string | |
| 1293 | - | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1271 | + | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Add)) | |
| 1294 | 1272 | if templ_7745c5c3_Err != nil { | |
| 1295 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 84} | |
| 1273 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 119} | |
| 1296 | 1274 | } | |
| 1297 | 1275 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var64)) | |
| 1298 | 1276 | if templ_7745c5c3_Err != nil { | |
| 1299 | 1277 | return templ_7745c5c3_Err | |
| 1300 | 1278 | } | |
| 1301 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 111, "<span class=\"plus\">+") | |
| 1279 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 111, "</span>") | |
| 1302 | 1280 | if templ_7745c5c3_Err != nil { | |
| 1303 | 1281 | return templ_7745c5c3_Err | |
| 1304 | 1282 | } | |
| 1305 | 1283 | var templ_7745c5c3_Var65 string | |
| 1306 | - | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Add)) | |
| 1284 | + | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1307 | 1285 | if templ_7745c5c3_Err != nil { | |
| 1308 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 119} | |
| 1286 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 133} | |
| 1309 | 1287 | } | |
| 1310 | 1288 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var65)) | |
| 1311 | 1289 | if templ_7745c5c3_Err != nil { | |
| 1312 | 1290 | return templ_7745c5c3_Err | |
| 1313 | 1291 | } | |
| 1314 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "</span>") | |
| 1292 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "<span class=\"minus\">-") | |
| 1315 | 1293 | if templ_7745c5c3_Err != nil { | |
| 1316 | 1294 | return templ_7745c5c3_Err | |
| 1317 | 1295 | } | |
| 1318 | 1296 | var templ_7745c5c3_Var66 string | |
| 1319 | - | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1297 | + | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Del)) | |
| 1320 | 1298 | if templ_7745c5c3_Err != nil { | |
| 1321 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 133} | |
| 1299 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 169} | |
| 1322 | 1300 | } | |
| 1323 | 1301 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var66)) | |
| 1324 | 1302 | if templ_7745c5c3_Err != nil { | |
| 1325 | 1303 | return templ_7745c5c3_Err | |
| 1326 | 1304 | } | |
| 1327 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 113, "<span class=\"minus\">-") | |
| 1328 | - | if templ_7745c5c3_Err != nil { | |
| 1329 | - | return templ_7745c5c3_Err | |
| 1330 | - | } | |
| 1331 | - | var templ_7745c5c3_Var67 string | |
| 1332 | - | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Del)) | |
| 1333 | - | if templ_7745c5c3_Err != nil { | |
| 1334 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 169} | |
| 1335 | - | } | |
| 1336 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) | |
| 1337 | - | if templ_7745c5c3_Err != nil { | |
| 1338 | - | return templ_7745c5c3_Err | |
| 1339 | - | } | |
| 1340 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 114, "</span> ") | |
| 1305 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 113, "</span> ") | |
| 1341 | 1306 | if templ_7745c5c3_Err != nil { | |
| 1342 | 1307 | return templ_7745c5c3_Err | |
| 1343 | 1308 | } | |
| 1344 | 1309 | if f.Note != "" { | |
| 1345 | - | var templ_7745c5c3_Var68 string | |
| 1346 | - | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1310 | + | var templ_7745c5c3_Var67 string | |
| 1311 | + | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1347 | 1312 | if templ_7745c5c3_Err != nil { | |
| 1348 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 241, Col: 9} | |
| 1313 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 232, Col: 9} | |
| 1349 | 1314 | } | |
| 1350 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | |
| 1315 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) | |
| 1351 | 1316 | if templ_7745c5c3_Err != nil { | |
| 1352 | 1317 | return templ_7745c5c3_Err | |
| 1353 | 1318 | } | |
| 1354 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 115, "<span class=\"note\">") | |
| 1319 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 114, "<span class=\"note\">") | |
| 1355 | 1320 | if templ_7745c5c3_Err != nil { | |
| 1356 | 1321 | return templ_7745c5c3_Err | |
| 1357 | 1322 | } | |
| 1358 | - | var templ_7745c5c3_Var69 string | |
| 1359 | - | templ_7745c5c3_Var69, templ_7745c5c3_Err = templ.JoinStringErrs(f.Note) | |
| 1323 | + | var templ_7745c5c3_Var68 string | |
| 1324 | + | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(f.Note) | |
| 1360 | 1325 | if templ_7745c5c3_Err != nil { | |
| 1361 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 241, Col: 38} | |
| 1326 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 232, Col: 38} | |
| 1362 | 1327 | } | |
| 1363 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var69)) | |
| 1328 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | |
| 1364 | 1329 | if templ_7745c5c3_Err != nil { | |
| 1365 | 1330 | return templ_7745c5c3_Err | |
| 1366 | 1331 | } | |
| 1367 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 116, "</span>") | |
| 1332 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 115, "</span>") | |
| 1368 | 1333 | if templ_7745c5c3_Err != nil { | |
| 1369 | 1334 | return templ_7745c5c3_Err | |
| 1370 | 1335 | } | |
| 1371 | 1336 | } | |
| 1372 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, "</summary> ") | |
| 1337 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 116, "</summary> ") | |
| 1373 | 1338 | if templ_7745c5c3_Err != nil { | |
| 1374 | 1339 | return templ_7745c5c3_Err | |
| 1375 | 1340 | } | |
| 1376 | 1341 | if f.Lazy { | |
| 1377 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 118, " ") | |
| 1342 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, " ") | |
| 1378 | 1343 | if templ_7745c5c3_Err != nil { | |
| 1379 | 1344 | return templ_7745c5c3_Err | |
| 1380 | 1345 | } | |
| 1381 | - | var templ_7745c5c3_Var70 = []any{"dlazy", "dlazy-" + itoa(f.Height)} | |
| 1382 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var70...) | |
| 1346 | + | var templ_7745c5c3_Var69 = []any{"dlazy", "dlazy-" + itoa(f.Height)} | |
| 1347 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var69...) | |
| 1383 | 1348 | if templ_7745c5c3_Err != nil { | |
| 1384 | 1349 | return templ_7745c5c3_Err | |
| 1385 | 1350 | } | |
| 1386 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 119, "<div class=\"") | |
| 1351 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 118, "<div class=\"") | |
| 1387 | 1352 | if templ_7745c5c3_Err != nil { | |
| 1388 | 1353 | return templ_7745c5c3_Err | |
| 1389 | 1354 | } | |
| 1390 | - | var templ_7745c5c3_Var71 string | |
| 1391 | - | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var70).String()) | |
| 1355 | + | var templ_7745c5c3_Var70 string | |
| 1356 | + | templ_7745c5c3_Var70, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var69).String()) | |
| 1392 | 1357 | if templ_7745c5c3_Err != nil { | |
| 1393 | 1358 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | |
| 1394 | 1359 | } | |
| 1395 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var71) | |
| 1360 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var70) | |
| 1396 | 1361 | if templ_7745c5c3_Err != nil { | |
| 1397 | 1362 | return templ_7745c5c3_Err | |
| 1398 | 1363 | } | |
| 1399 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 120, "\" data-src=\"") | |
| 1364 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 119, "\" data-src=\"") | |
| 1400 | 1365 | if templ_7745c5c3_Err != nil { | |
| 1401 | 1366 | return templ_7745c5c3_Err | |
| 1402 | 1367 | } | |
| 1403 | - | var templ_7745c5c3_Var72 string | |
| 1404 | - | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Src) | |
| 1368 | + | var templ_7745c5c3_Var71 string | |
| 1369 | + | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Src) | |
| 1405 | 1370 | if templ_7745c5c3_Err != nil { | |
| 1406 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 248, Col: 69} | |
| 1371 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 69} | |
| 1407 | 1372 | } | |
| 1408 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var72) | |
| 1373 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var71) | |
| 1409 | 1374 | if templ_7745c5c3_Err != nil { | |
| 1410 | 1375 | return templ_7745c5c3_Err | |
| 1411 | 1376 | } | |
| 1412 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 121, "\" data-notes=\"") | |
| 1377 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 120, "\" data-notes=\"") | |
| 1413 | 1378 | if templ_7745c5c3_Err != nil { | |
| 1414 | 1379 | return templ_7745c5c3_Err | |
| 1415 | 1380 | } | |
| 1416 | - | var templ_7745c5c3_Var73 string | |
| 1417 | - | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Comments) | |
| 1381 | + | var templ_7745c5c3_Var72 string | |
| 1382 | + | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Comments) | |
| 1418 | 1383 | if templ_7745c5c3_Err != nil { | |
| 1419 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 248, Col: 95} | |
| 1384 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 95} | |
| 1420 | 1385 | } | |
| 1421 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var73) | |
| 1386 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var72) | |
| 1422 | 1387 | if templ_7745c5c3_Err != nil { | |
| 1423 | 1388 | return templ_7745c5c3_Err | |
| 1424 | 1389 | } | |
| 1425 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 122, "\"><a href=\"") | |
| 1390 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 121, "\"><a href=\"") | |
| 1426 | 1391 | if templ_7745c5c3_Err != nil { | |
| 1427 | 1392 | return templ_7745c5c3_Err | |
| 1428 | 1393 | } | |
| 1429 | - | var templ_7745c5c3_Var74 templ.SafeURL | |
| 1430 | - | templ_7745c5c3_Var74, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL("?from=" + itoa(f.From) + "#" + f.ID)) | |
| 1394 | + | var templ_7745c5c3_Var73 templ.SafeURL | |
| 1395 | + | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL("?from=" + itoa(f.From) + "#" + f.ID)) | |
| 1431 | 1396 | if templ_7745c5c3_Err != nil { | |
| 1432 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 249, Col: 65} | |
| 1397 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 240, Col: 65} | |
| 1433 | 1398 | } | |
| 1434 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var74)) | |
| 1399 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) | |
| 1435 | 1400 | if templ_7745c5c3_Err != nil { | |
| 1436 | 1401 | return templ_7745c5c3_Err | |
| 1437 | 1402 | } | |
| 1438 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 123, "\">show this file</a></div>") | |
| 1403 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 122, "\">show this file</a></div>") | |
| 1439 | 1404 | if templ_7745c5c3_Err != nil { | |
| 1440 | 1405 | return templ_7745c5c3_Err | |
| 1441 | 1406 | } | |
| 1442 | 1407 | } else if len(f.Hunks) > 0 { | |
| 1443 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 124, "<div class=\"dscroll\">") | |
| 1408 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 123, "<div class=\"dscroll\">") | |
| 1444 | 1409 | if templ_7745c5c3_Err != nil { | |
| 1445 | 1410 | return templ_7745c5c3_Err | |
| 1446 | 1411 | } | |
| 1447 | 1412 | if p.ShowUnified { | |
| 1448 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 125, "<table class=\"dt uni\" aria-label=\"") | |
| 1413 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 124, "<table class=\"dt uni\" aria-label=\"") | |
| 1449 | 1414 | if templ_7745c5c3_Err != nil { | |
| 1450 | 1415 | return templ_7745c5c3_Err | |
| 1451 | 1416 | } | |
| 1452 | - | var templ_7745c5c3_Var75 string | |
| 1453 | - | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path + ", unified") | |
| 1417 | + | var templ_7745c5c3_Var74 string | |
| 1418 | + | templ_7745c5c3_Var74, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path + ", unified") | |
| 1454 | 1419 | if templ_7745c5c3_Err != nil { | |
| 1455 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 254, Col: 60} | |
| 1420 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 245, Col: 60} | |
| 1456 | 1421 | } | |
| 1457 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var75) | |
| 1422 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var74) | |
| 1458 | 1423 | if templ_7745c5c3_Err != nil { | |
| 1459 | 1424 | return templ_7745c5c3_Err | |
| 1460 | 1425 | } | |
| 1461 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 126, "\">") | |
| 1426 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 125, "\">") | |
| 1462 | 1427 | if templ_7745c5c3_Err != nil { | |
| 1463 | 1428 | return templ_7745c5c3_Err | |
| 1464 | 1429 | } | |
| 1465 | 1430 | for _, h := range f.Hunks { | |
| 1466 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 127, "<tbody>") | |
| 1431 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 126, "<tbody>") | |
| 1467 | 1432 | if templ_7745c5c3_Err != nil { | |
| 1468 | 1433 | return templ_7745c5c3_Err | |
| 1469 | 1434 | } | |
| @@ -1473,43 +1438,43 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1473 | 1438 | return templ_7745c5c3_Err | |
| 1474 | 1439 | } | |
| 1475 | 1440 | } | |
| 1476 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 128, "<tr class=\"hunk\"><td colspan=\"4\">") | |
| 1441 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 127, "<tr class=\"hunk\"><td colspan=\"4\">") | |
| 1477 | 1442 | if templ_7745c5c3_Err != nil { | |
| 1478 | 1443 | return templ_7745c5c3_Err | |
| 1479 | 1444 | } | |
| 1480 | - | var templ_7745c5c3_Var76 string | |
| 1481 | - | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.JoinStringErrs(h.Header) | |
| 1445 | + | var templ_7745c5c3_Var75 string | |
| 1446 | + | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.JoinStringErrs(h.Header) | |
| 1482 | 1447 | if templ_7745c5c3_Err != nil { | |
| 1483 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 260, Col: 51} | |
| 1448 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 251, Col: 51} | |
| 1484 | 1449 | } | |
| 1485 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var76)) | |
| 1450 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var75)) | |
| 1486 | 1451 | if templ_7745c5c3_Err != nil { | |
| 1487 | 1452 | return templ_7745c5c3_Err | |
| 1488 | 1453 | } | |
| 1489 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 129, "</td></tr>") | |
| 1454 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 128, "</td></tr>") | |
| 1490 | 1455 | if templ_7745c5c3_Err != nil { | |
| 1491 | 1456 | return templ_7745c5c3_Err | |
| 1492 | 1457 | } | |
| 1493 | 1458 | for _, ln := range h.Lines { | |
| 1494 | - | var templ_7745c5c3_Var77 = []any{ln.Kind, templ.KV("sel", ln.Selected)} | |
| 1495 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var77...) | |
| 1459 | + | var templ_7745c5c3_Var76 = []any{ln.Kind, templ.KV("sel", ln.Selected)} | |
| 1460 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var76...) | |
| 1496 | 1461 | if templ_7745c5c3_Err != nil { | |
| 1497 | 1462 | return templ_7745c5c3_Err | |
| 1498 | 1463 | } | |
| 1499 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 130, "<tr class=\"") | |
| 1464 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 129, "<tr class=\"") | |
| 1500 | 1465 | if templ_7745c5c3_Err != nil { | |
| 1501 | 1466 | return templ_7745c5c3_Err | |
| 1502 | 1467 | } | |
| 1503 | - | var templ_7745c5c3_Var78 string | |
| 1504 | - | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var77).String()) | |
| 1468 | + | var templ_7745c5c3_Var77 string | |
| 1469 | + | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var76).String()) | |
| 1505 | 1470 | if templ_7745c5c3_Err != nil { | |
| 1506 | 1471 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | |
| 1507 | 1472 | } | |
| 1508 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var78) | |
| 1473 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var77) | |
| 1509 | 1474 | if templ_7745c5c3_Err != nil { | |
| 1510 | 1475 | return templ_7745c5c3_Err | |
| 1511 | 1476 | } | |
| 1512 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 131, "\"><td class=\"ln\">") | |
| 1477 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 130, "\"><td class=\"ln\">") | |
| 1513 | 1478 | if templ_7745c5c3_Err != nil { | |
| 1514 | 1479 | return templ_7745c5c3_Err | |
| 1515 | 1480 | } | |
| @@ -1517,7 +1482,7 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1517 | 1482 | if templ_7745c5c3_Err != nil { | |
| 1518 | 1483 | return templ_7745c5c3_Err | |
| 1519 | 1484 | } | |
| 1520 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 132, "</td><td class=\"ln\">") | |
| 1485 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 131, "</td><td class=\"ln\">") | |
| 1521 | 1486 | if templ_7745c5c3_Err != nil { | |
| 1522 | 1487 | return templ_7745c5c3_Err | |
| 1523 | 1488 | } | |
| @@ -1525,20 +1490,20 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1525 | 1490 | if templ_7745c5c3_Err != nil { | |
| 1526 | 1491 | return templ_7745c5c3_Err | |
| 1527 | 1492 | } | |
| 1528 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 133, "</td><td class=\"m\">") | |
| 1493 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 132, "</td><td class=\"m\">") | |
| 1529 | 1494 | if templ_7745c5c3_Err != nil { | |
| 1530 | 1495 | return templ_7745c5c3_Err | |
| 1531 | 1496 | } | |
| 1532 | - | var templ_7745c5c3_Var79 string | |
| 1533 | - | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | |
| 1497 | + | var templ_7745c5c3_Var78 string | |
| 1498 | + | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | |
| 1534 | 1499 | if templ_7745c5c3_Err != nil { | |
| 1535 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 265, Col: 33} | |
| 1500 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 256, Col: 33} | |
| 1536 | 1501 | } | |
| 1537 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var79)) | |
| 1502 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var78)) | |
| 1538 | 1503 | if templ_7745c5c3_Err != nil { | |
| 1539 | 1504 | return templ_7745c5c3_Err | |
| 1540 | 1505 | } | |
| 1541 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 134, "</td><td class=\"tx chroma\">") | |
| 1506 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 133, "</td><td class=\"tx chroma\">") | |
| 1542 | 1507 | if templ_7745c5c3_Err != nil { | |
| 1543 | 1508 | return templ_7745c5c3_Err | |
| 1544 | 1509 | } | |
| @@ -1546,12 +1511,12 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1546 | 1511 | if templ_7745c5c3_Err != nil { | |
| 1547 | 1512 | return templ_7745c5c3_Err | |
| 1548 | 1513 | } | |
| 1549 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 135, "</td></tr>") | |
| 1514 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 134, "</td></tr>") | |
| 1550 | 1515 | if templ_7745c5c3_Err != nil { | |
| 1551 | 1516 | return templ_7745c5c3_Err | |
| 1552 | 1517 | } | |
| 1553 | 1518 | if len(ln.Notes) > 0 || ln.Form != nil { | |
| 1554 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 136, "<tr class=\"fnote\"><td colspan=\"3\"></td><td>") | |
| 1519 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 135, "<tr class=\"fnote\"><td colspan=\"3\"></td><td>") | |
| 1555 | 1520 | if templ_7745c5c3_Err != nil { | |
| 1556 | 1521 | return templ_7745c5c3_Err | |
| 1557 | 1522 | } | |
| @@ -1559,19 +1524,19 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1559 | 1524 | if templ_7745c5c3_Err != nil { | |
| 1560 | 1525 | return templ_7745c5c3_Err | |
| 1561 | 1526 | } | |
| 1562 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 137, "</td></tr>") | |
| 1527 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 136, "</td></tr>") | |
| 1563 | 1528 | if templ_7745c5c3_Err != nil { | |
| 1564 | 1529 | return templ_7745c5c3_Err | |
| 1565 | 1530 | } | |
| 1566 | 1531 | } | |
| 1567 | 1532 | } | |
| 1568 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 138, "</tbody> ") | |
| 1533 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 137, "</tbody> ") | |
| 1569 | 1534 | if templ_7745c5c3_Err != nil { | |
| 1570 | 1535 | return templ_7745c5c3_Err | |
| 1571 | 1536 | } | |
| 1572 | 1537 | } | |
| 1573 | 1538 | if f.Tail != nil { | |
| 1574 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 139, "<tbody>") | |
| 1539 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 138, "<tbody>") | |
| 1575 | 1540 | if templ_7745c5c3_Err != nil { | |
| 1576 | 1541 | return templ_7745c5c3_Err | |
| 1577 | 1542 | } | |
| @@ -1579,36 +1544,36 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1579 | 1544 | if templ_7745c5c3_Err != nil { | |
| 1580 | 1545 | return templ_7745c5c3_Err | |
| 1581 | 1546 | } | |
| 1582 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 140, "</tbody>") | |
| 1547 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 139, "</tbody>") | |
| 1583 | 1548 | if templ_7745c5c3_Err != nil { | |
| 1584 | 1549 | return templ_7745c5c3_Err | |
| 1585 | 1550 | } | |
| 1586 | 1551 | } | |
| 1587 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 141, "</table>") | |
| 1552 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 140, "</table>") | |
| 1588 | 1553 | if templ_7745c5c3_Err != nil { | |
| 1589 | 1554 | return templ_7745c5c3_Err | |
| 1590 | 1555 | } | |
| 1591 | 1556 | } | |
| 1592 | 1557 | if p.ShowSplit { | |
| 1593 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 142, "<table class=\"dt spl\" aria-label=\"") | |
| 1558 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 141, "<table class=\"dt spl\" aria-label=\"") | |
| 1594 | 1559 | if templ_7745c5c3_Err != nil { | |
| 1595 | 1560 | return templ_7745c5c3_Err | |
| 1596 | 1561 | } | |
| 1597 | - | var templ_7745c5c3_Var80 string | |
| 1598 | - | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path + ", split") | |
| 1562 | + | var templ_7745c5c3_Var79 string | |
| 1563 | + | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path + ", split") | |
| 1599 | 1564 | if templ_7745c5c3_Err != nil { | |
| 1600 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 285, Col: 58} | |
| 1565 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 276, Col: 58} | |
| 1601 | 1566 | } | |
| 1602 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var80) | |
| 1567 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var79) | |
| 1603 | 1568 | if templ_7745c5c3_Err != nil { | |
| 1604 | 1569 | return templ_7745c5c3_Err | |
| 1605 | 1570 | } | |
| 1606 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 143, "\"><colgroup><col class=\"c-ln\"><col class=\"c-m\"><col><col class=\"c-ln\"><col class=\"c-m\"><col></colgroup> ") | |
| 1571 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 142, "\"><colgroup><col class=\"c-ln\"><col class=\"c-m\"><col><col class=\"c-ln\"><col class=\"c-m\"><col></colgroup> ") | |
| 1607 | 1572 | if templ_7745c5c3_Err != nil { | |
| 1608 | 1573 | return templ_7745c5c3_Err | |
| 1609 | 1574 | } | |
| 1610 | 1575 | for _, h := range f.Hunks { | |
| 1611 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 144, "<tbody>") | |
| 1576 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 143, "<tbody>") | |
| 1612 | 1577 | if templ_7745c5c3_Err != nil { | |
| 1613 | 1578 | return templ_7745c5c3_Err | |
| 1614 | 1579 | } | |
| @@ -1618,25 +1583,25 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1618 | 1583 | return templ_7745c5c3_Err | |
| 1619 | 1584 | } | |
| 1620 | 1585 | } | |
| 1621 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 145, "<tr class=\"hunk\"><td colspan=\"6\">") | |
| 1586 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 144, "<tr class=\"hunk\"><td colspan=\"6\">") | |
| 1622 | 1587 | if templ_7745c5c3_Err != nil { | |
| 1623 | 1588 | return templ_7745c5c3_Err | |
| 1624 | 1589 | } | |
| 1625 | - | var templ_7745c5c3_Var81 string | |
| 1626 | - | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.JoinStringErrs(h.Header) | |
| 1590 | + | var templ_7745c5c3_Var80 string | |
| 1591 | + | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.JoinStringErrs(h.Header) | |
| 1627 | 1592 | if templ_7745c5c3_Err != nil { | |
| 1628 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 292, Col: 51} | |
| 1593 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 283, Col: 51} | |
| 1629 | 1594 | } | |
| 1630 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var81)) | |
| 1595 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var80)) | |
| 1631 | 1596 | if templ_7745c5c3_Err != nil { | |
| 1632 | 1597 | return templ_7745c5c3_Err | |
| 1633 | 1598 | } | |
| 1634 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 146, "</td></tr>") | |
| 1599 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 145, "</td></tr>") | |
| 1635 | 1600 | if templ_7745c5c3_Err != nil { | |
| 1636 | 1601 | return templ_7745c5c3_Err | |
| 1637 | 1602 | } | |
| 1638 | 1603 | for _, row := range h.Split { | |
| 1639 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 147, "<tr>") | |
| 1604 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 146, "<tr>") | |
| 1640 | 1605 | if templ_7745c5c3_Err != nil { | |
| 1641 | 1606 | return templ_7745c5c3_Err | |
| 1642 | 1607 | } | |
| @@ -1648,12 +1613,12 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1648 | 1613 | if templ_7745c5c3_Err != nil { | |
| 1649 | 1614 | return templ_7745c5c3_Err | |
| 1650 | 1615 | } | |
| 1651 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 148, "</tr>") | |
| 1616 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 147, "</tr>") | |
| 1652 | 1617 | if templ_7745c5c3_Err != nil { | |
| 1653 | 1618 | return templ_7745c5c3_Err | |
| 1654 | 1619 | } | |
| 1655 | 1620 | if notes, form := row.Notes(), row.Form(); len(notes) > 0 || form != nil { | |
| 1656 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 149, "<tr class=\"fnote\"><td colspan=\"6\">") | |
| 1621 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 148, "<tr class=\"fnote\"><td colspan=\"6\">") | |
| 1657 | 1622 | if templ_7745c5c3_Err != nil { | |
| 1658 | 1623 | return templ_7745c5c3_Err | |
| 1659 | 1624 | } | |
| @@ -1661,19 +1626,19 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1661 | 1626 | if templ_7745c5c3_Err != nil { | |
| 1662 | 1627 | return templ_7745c5c3_Err | |
| 1663 | 1628 | } | |
| 1664 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 150, "</td></tr>") | |
| 1629 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 149, "</td></tr>") | |
| 1665 | 1630 | if templ_7745c5c3_Err != nil { | |
| 1666 | 1631 | return templ_7745c5c3_Err | |
| 1667 | 1632 | } | |
| 1668 | 1633 | } | |
| 1669 | 1634 | } | |
| 1670 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 151, "</tbody> ") | |
| 1635 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 150, "</tbody> ") | |
| 1671 | 1636 | if templ_7745c5c3_Err != nil { | |
| 1672 | 1637 | return templ_7745c5c3_Err | |
| 1673 | 1638 | } | |
| 1674 | 1639 | } | |
| 1675 | 1640 | if f.Tail != nil { | |
| 1676 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 152, "<tbody>") | |
| 1641 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 151, "<tbody>") | |
| 1677 | 1642 | if templ_7745c5c3_Err != nil { | |
| 1678 | 1643 | return templ_7745c5c3_Err | |
| 1679 | 1644 | } | |
| @@ -1681,48 +1646,48 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1681 | 1646 | if templ_7745c5c3_Err != nil { | |
| 1682 | 1647 | return templ_7745c5c3_Err | |
| 1683 | 1648 | } | |
| 1684 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 153, "</tbody>") | |
| 1649 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 152, "</tbody>") | |
| 1685 | 1650 | if templ_7745c5c3_Err != nil { | |
| 1686 | 1651 | return templ_7745c5c3_Err | |
| 1687 | 1652 | } | |
| 1688 | 1653 | } | |
| 1689 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 154, "</table>") | |
| 1654 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 153, "</table>") | |
| 1690 | 1655 | if templ_7745c5c3_Err != nil { | |
| 1691 | 1656 | return templ_7745c5c3_Err | |
| 1692 | 1657 | } | |
| 1693 | 1658 | } | |
| 1694 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 155, "</div>") | |
| 1659 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 154, "</div>") | |
| 1695 | 1660 | if templ_7745c5c3_Err != nil { | |
| 1696 | 1661 | return templ_7745c5c3_Err | |
| 1697 | 1662 | } | |
| 1698 | 1663 | } else { | |
| 1699 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 156, "<p class=\"note pad\">") | |
| 1664 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 155, "<p class=\"note pad\">") | |
| 1700 | 1665 | if templ_7745c5c3_Err != nil { | |
| 1701 | 1666 | return templ_7745c5c3_Err | |
| 1702 | 1667 | } | |
| 1703 | 1668 | if f.Note != "" { | |
| 1704 | - | var templ_7745c5c3_Var82 string | |
| 1705 | - | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.JoinStringErrs(f.Note) | |
| 1669 | + | var templ_7745c5c3_Var81 string | |
| 1670 | + | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.JoinStringErrs(f.Note) | |
| 1706 | 1671 | if templ_7745c5c3_Err != nil { | |
| 1707 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 317, Col: 13} | |
| 1672 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 308, Col: 13} | |
| 1708 | 1673 | } | |
| 1709 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var82)) | |
| 1674 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var81)) | |
| 1710 | 1675 | if templ_7745c5c3_Err != nil { | |
| 1711 | 1676 | return templ_7745c5c3_Err | |
| 1712 | 1677 | } | |
| 1713 | 1678 | } else { | |
| 1714 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 157, "no textual change.") | |
| 1679 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 156, "no textual change.") | |
| 1715 | 1680 | if templ_7745c5c3_Err != nil { | |
| 1716 | 1681 | return templ_7745c5c3_Err | |
| 1717 | 1682 | } | |
| 1718 | 1683 | } | |
| 1719 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 158, "</p>") | |
| 1684 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 157, "</p>") | |
| 1720 | 1685 | if templ_7745c5c3_Err != nil { | |
| 1721 | 1686 | return templ_7745c5c3_Err | |
| 1722 | 1687 | } | |
| 1723 | 1688 | } | |
| 1724 | 1689 | if len(f.Loose) > 0 { | |
| 1725 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 159, "<div class=\"dloose\">") | |
| 1690 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 158, "<div class=\"dloose\">") | |
| 1726 | 1691 | if templ_7745c5c3_Err != nil { | |
| 1727 | 1692 | return templ_7745c5c3_Err | |
| 1728 | 1693 | } | |
| @@ -1732,12 +1697,12 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||
| 1732 | 1697 | return templ_7745c5c3_Err | |
| 1733 | 1698 | } | |
| 1734 | 1699 | } | |
| 1735 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 160, "</div>") | |
| 1700 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 159, "</div>") | |
| 1736 | 1701 | if templ_7745c5c3_Err != nil { | |
| 1737 | 1702 | return templ_7745c5c3_Err | |
| 1738 | 1703 | } | |
| 1739 | 1704 | } | |
| 1740 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 161, "</details>") | |
| 1705 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 160, "</details>") | |
| 1741 | 1706 | if templ_7745c5c3_Err != nil { | |
| 1742 | 1707 | return templ_7745c5c3_Err | |
| 1743 | 1708 | } | |
| @@ -1763,9 +1728,9 @@ func MRFiles(p MRFilesPage) templ.Component { | |||
| 1763 | 1728 | }() | |
| 1764 | 1729 | } | |
| 1765 | 1730 | ctx = templ.InitializeContext(ctx) | |
| 1766 | - | templ_7745c5c3_Var83 := templ.GetChildren(ctx) | |
| 1767 | - | if templ_7745c5c3_Var83 == nil { | |
| 1768 | - | templ_7745c5c3_Var83 = templ.NopComponent | |
| 1731 | + | templ_7745c5c3_Var82 := templ.GetChildren(ctx) | |
| 1732 | + | if templ_7745c5c3_Var82 == nil { | |
| 1733 | + | templ_7745c5c3_Var82 = templ.NopComponent | |
| 1769 | 1734 | } | |
| 1770 | 1735 | ctx = templ.ClearChildren(ctx) | |
| 1771 | 1736 | for _, f := range p.Files { | |
| @@ -1796,12 +1761,12 @@ func MRFilesMoved() templ.Component { | |||
| 1796 | 1761 | }() | |
| 1797 | 1762 | } | |
| 1798 | 1763 | ctx = templ.InitializeContext(ctx) | |
| 1799 | - | templ_7745c5c3_Var84 := templ.GetChildren(ctx) | |
| 1800 | - | if templ_7745c5c3_Var84 == nil { | |
| 1801 | - | templ_7745c5c3_Var84 = templ.NopComponent | |
| 1764 | + | templ_7745c5c3_Var83 := templ.GetChildren(ctx) | |
| 1765 | + | if templ_7745c5c3_Var83 == nil { | |
| 1766 | + | templ_7745c5c3_Var83 = templ.NopComponent | |
| 1802 | 1767 | } | |
| 1803 | 1768 | ctx = templ.ClearChildren(ctx) | |
| 1804 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 162, "<p class=\"notice\" data-moved>this merge request changed since the page was loaded — <a href=\"\">reload</a></p>") | |
| 1769 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 161, "<p class=\"notice\" data-moved>this merge request changed since the page was loaded — <a href=\"\">reload</a></p>") | |
| 1805 | 1770 | if templ_7745c5c3_Err != nil { | |
| 1806 | 1771 | return templ_7745c5c3_Err | |
| 1807 | 1772 | } | |
| @@ -1828,64 +1793,64 @@ func gapRow(g DiffGap, cols int) templ.Component { | |||
| 1828 | 1793 | }() | |
| 1829 | 1794 | } | |
| 1830 | 1795 | ctx = templ.InitializeContext(ctx) | |
| 1831 | - | templ_7745c5c3_Var85 := templ.GetChildren(ctx) | |
| 1832 | - | if templ_7745c5c3_Var85 == nil { | |
| 1833 | - | templ_7745c5c3_Var85 = templ.NopComponent | |
| 1796 | + | templ_7745c5c3_Var84 := templ.GetChildren(ctx) | |
| 1797 | + | if templ_7745c5c3_Var84 == nil { | |
| 1798 | + | templ_7745c5c3_Var84 = templ.NopComponent | |
| 1834 | 1799 | } | |
| 1835 | 1800 | ctx = templ.ClearChildren(ctx) | |
| 1836 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 163, "<tr class=\"gap\" data-js data-gap=\"") | |
| 1801 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 162, "<tr class=\"gap\" data-js data-gap=\"") | |
| 1837 | 1802 | if templ_7745c5c3_Err != nil { | |
| 1838 | 1803 | return templ_7745c5c3_Err | |
| 1839 | 1804 | } | |
| 1840 | - | var templ_7745c5c3_Var86 string | |
| 1841 | - | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.ResolveAttributeValue(g.Key) | |
| 1805 | + | var templ_7745c5c3_Var85 string | |
| 1806 | + | templ_7745c5c3_Var85, templ_7745c5c3_Err = templ.ResolveAttributeValue(g.Key) | |
| 1842 | 1807 | if templ_7745c5c3_Err != nil { | |
| 1843 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 351, Col: 41} | |
| 1808 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 342, Col: 41} | |
| 1844 | 1809 | } | |
| 1845 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var86) | |
| 1810 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var85) | |
| 1846 | 1811 | if templ_7745c5c3_Err != nil { | |
| 1847 | 1812 | return templ_7745c5c3_Err | |
| 1848 | 1813 | } | |
| 1849 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 164, "\"><td colspan=\"") | |
| 1814 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 163, "\"><td colspan=\"") | |
| 1850 | 1815 | if templ_7745c5c3_Err != nil { | |
| 1851 | 1816 | return templ_7745c5c3_Err | |
| 1852 | 1817 | } | |
| 1853 | - | var templ_7745c5c3_Var87 string | |
| 1854 | - | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(cols)) | |
| 1818 | + | var templ_7745c5c3_Var86 string | |
| 1819 | + | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(cols)) | |
| 1855 | 1820 | if templ_7745c5c3_Err != nil { | |
| 1856 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 352, Col: 26} | |
| 1821 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 343, Col: 26} | |
| 1857 | 1822 | } | |
| 1858 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var87) | |
| 1823 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var86) | |
| 1859 | 1824 | if templ_7745c5c3_Err != nil { | |
| 1860 | 1825 | return templ_7745c5c3_Err | |
| 1861 | 1826 | } | |
| 1862 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 165, "\"><button type=\"button\" data-src=\"") | |
| 1827 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 164, "\"><button type=\"button\" data-src=\"") | |
| 1863 | 1828 | if templ_7745c5c3_Err != nil { | |
| 1864 | 1829 | return templ_7745c5c3_Err | |
| 1865 | 1830 | } | |
| 1866 | - | var templ_7745c5c3_Var88 string | |
| 1867 | - | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.ResolveAttributeValue(g.Src) | |
| 1831 | + | var templ_7745c5c3_Var87 string | |
| 1832 | + | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.ResolveAttributeValue(g.Src) | |
| 1868 | 1833 | if templ_7745c5c3_Err != nil { | |
| 1869 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 353, Col: 41} | |
| 1834 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 344, Col: 41} | |
| 1870 | 1835 | } | |
| 1871 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var88) | |
| 1836 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var87) | |
| 1872 | 1837 | if templ_7745c5c3_Err != nil { | |
| 1873 | 1838 | return templ_7745c5c3_Err | |
| 1874 | 1839 | } | |
| 1875 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 166, "\"><span aria-hidden=\"true\">⋯</span> ") | |
| 1840 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 165, "\"><span aria-hidden=\"true\">⋯</span> ") | |
| 1876 | 1841 | if templ_7745c5c3_Err != nil { | |
| 1877 | 1842 | return templ_7745c5c3_Err | |
| 1878 | 1843 | } | |
| 1879 | - | var templ_7745c5c3_Var89 string | |
| 1880 | - | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.JoinStringErrs(g.Label()) | |
| 1844 | + | var templ_7745c5c3_Var88 string | |
| 1845 | + | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.JoinStringErrs(g.Label()) | |
| 1881 | 1846 | if templ_7745c5c3_Err != nil { | |
| 1882 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 354, Col: 51} | |
| 1847 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 345, Col: 51} | |
| 1883 | 1848 | } | |
| 1884 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var89)) | |
| 1849 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var88)) | |
| 1885 | 1850 | if templ_7745c5c3_Err != nil { | |
| 1886 | 1851 | return templ_7745c5c3_Err | |
| 1887 | 1852 | } | |
| 1888 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 167, "</button></td></tr>") | |
| 1853 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 166, "</button></td></tr>") | |
| 1889 | 1854 | if templ_7745c5c3_Err != nil { | |
| 1890 | 1855 | return templ_7745c5c3_Err | |
| 1891 | 1856 | } | |
| @@ -1911,56 +1876,56 @@ func DiffContext(c ContextRows) templ.Component { | |||
| 1911 | 1876 | }() | |
| 1912 | 1877 | } | |
| 1913 | 1878 | ctx = templ.InitializeContext(ctx) | |
| 1914 | - | templ_7745c5c3_Var90 := templ.GetChildren(ctx) | |
| 1915 | - | if templ_7745c5c3_Var90 == nil { | |
| 1916 | - | templ_7745c5c3_Var90 = templ.NopComponent | |
| 1879 | + | templ_7745c5c3_Var89 := templ.GetChildren(ctx) | |
| 1880 | + | if templ_7745c5c3_Var89 == nil { | |
| 1881 | + | templ_7745c5c3_Var89 = templ.NopComponent | |
| 1917 | 1882 | } | |
| 1918 | 1883 | ctx = templ.ClearChildren(ctx) | |
| 1919 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 168, "<table><tbody data-for=\"uni\">") | |
| 1884 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 167, "<table><tbody data-for=\"uni\">") | |
| 1920 | 1885 | if templ_7745c5c3_Err != nil { | |
| 1921 | 1886 | return templ_7745c5c3_Err | |
| 1922 | 1887 | } | |
| 1923 | 1888 | for _, ln := range c.Lines { | |
| 1924 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 169, "<tr class=\"ctx\"><td class=\"ln\">") | |
| 1889 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 168, "<tr class=\"ctx\"><td class=\"ln\">") | |
| 1925 | 1890 | if templ_7745c5c3_Err != nil { | |
| 1926 | 1891 | return templ_7745c5c3_Err | |
| 1927 | 1892 | } | |
| 1928 | - | var templ_7745c5c3_Var91 string | |
| 1929 | - | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Old) | |
| 1893 | + | var templ_7745c5c3_Var90 string | |
| 1894 | + | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Old) | |
| 1930 | 1895 | if templ_7745c5c3_Err != nil { | |
| 1931 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 367, Col: 28} | |
| 1896 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 358, Col: 28} | |
| 1932 | 1897 | } | |
| 1933 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var91)) | |
| 1898 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var90)) | |
| 1934 | 1899 | if templ_7745c5c3_Err != nil { | |
| 1935 | 1900 | return templ_7745c5c3_Err | |
| 1936 | 1901 | } | |
| 1937 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 170, "</td><td class=\"ln\">") | |
| 1902 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 169, "</td><td class=\"ln\">") | |
| 1938 | 1903 | if templ_7745c5c3_Err != nil { | |
| 1939 | 1904 | return templ_7745c5c3_Err | |
| 1940 | 1905 | } | |
| 1941 | - | var templ_7745c5c3_Var92 string | |
| 1942 | - | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.JoinStringErrs(ln.New) | |
| 1906 | + | var templ_7745c5c3_Var91 string | |
| 1907 | + | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.JoinStringErrs(ln.New) | |
| 1943 | 1908 | if templ_7745c5c3_Err != nil { | |
| 1944 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 368, Col: 28} | |
| 1909 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 359, Col: 28} | |
| 1945 | 1910 | } | |
| 1946 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var92)) | |
| 1911 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var91)) | |
| 1947 | 1912 | if templ_7745c5c3_Err != nil { | |
| 1948 | 1913 | return templ_7745c5c3_Err | |
| 1949 | 1914 | } | |
| 1950 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 171, "</td><td class=\"m\">") | |
| 1915 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 170, "</td><td class=\"m\">") | |
| 1951 | 1916 | if templ_7745c5c3_Err != nil { | |
| 1952 | 1917 | return templ_7745c5c3_Err | |
| 1953 | 1918 | } | |
| 1954 | - | var templ_7745c5c3_Var93 string | |
| 1955 | - | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | |
| 1919 | + | var templ_7745c5c3_Var92 string | |
| 1920 | + | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | |
| 1956 | 1921 | if templ_7745c5c3_Err != nil { | |
| 1957 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 369, Col: 28} | |
| 1922 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 360, Col: 28} | |
| 1958 | 1923 | } | |
| 1959 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var93)) | |
| 1924 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var92)) | |
| 1960 | 1925 | if templ_7745c5c3_Err != nil { | |
| 1961 | 1926 | return templ_7745c5c3_Err | |
| 1962 | 1927 | } | |
| 1963 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 172, "</td><td class=\"tx chroma\">") | |
| 1928 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 171, "</td><td class=\"tx chroma\">") | |
| 1964 | 1929 | if templ_7745c5c3_Err != nil { | |
| 1965 | 1930 | return templ_7745c5c3_Err | |
| 1966 | 1931 | } | |
| @@ -1968,7 +1933,7 @@ func DiffContext(c ContextRows) templ.Component { | |||
| 1968 | 1933 | if templ_7745c5c3_Err != nil { | |
| 1969 | 1934 | return templ_7745c5c3_Err | |
| 1970 | 1935 | } | |
| 1971 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 173, "</td></tr>") | |
| 1936 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 172, "</td></tr>") | |
| 1972 | 1937 | if templ_7745c5c3_Err != nil { | |
| 1973 | 1938 | return templ_7745c5c3_Err | |
| 1974 | 1939 | } | |
| @@ -1979,12 +1944,12 @@ func DiffContext(c ContextRows) templ.Component { | |||
| 1979 | 1944 | return templ_7745c5c3_Err | |
| 1980 | 1945 | } | |
| 1981 | 1946 | } | |
| 1982 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 174, "</tbody> <tbody data-for=\"spl\">") | |
| 1947 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 173, "</tbody> <tbody data-for=\"spl\">") | |
| 1983 | 1948 | if templ_7745c5c3_Err != nil { | |
| 1984 | 1949 | return templ_7745c5c3_Err | |
| 1985 | 1950 | } | |
| 1986 | 1951 | for i := range c.Lines { | |
| 1987 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 175, "<tr>") | |
| 1952 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 174, "<tr>") | |
| 1988 | 1953 | if templ_7745c5c3_Err != nil { | |
| 1989 | 1954 | return templ_7745c5c3_Err | |
| 1990 | 1955 | } | |
| @@ -1996,7 +1961,7 @@ func DiffContext(c ContextRows) templ.Component { | |||
| 1996 | 1961 | if templ_7745c5c3_Err != nil { | |
| 1997 | 1962 | return templ_7745c5c3_Err | |
| 1998 | 1963 | } | |
| 1999 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 176, "</tr>") | |
| 1964 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 175, "</tr>") | |
| 2000 | 1965 | if templ_7745c5c3_Err != nil { | |
| 2001 | 1966 | return templ_7745c5c3_Err | |
| 2002 | 1967 | } | |
| @@ -2007,7 +1972,7 @@ func DiffContext(c ContextRows) templ.Component { | |||
| 2007 | 1972 | return templ_7745c5c3_Err | |
| 2008 | 1973 | } | |
| 2009 | 1974 | } | |
| 2010 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 177, "</tbody></table>") | |
| 1975 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 176, "</tbody></table>") | |
| 2011 | 1976 | if templ_7745c5c3_Err != nil { | |
| 2012 | 1977 | return templ_7745c5c3_Err | |
| 2013 | 1978 | } | |
| @@ -2033,36 +1998,36 @@ func splitSide(ln *DiffLine, old bool) templ.Component { | |||
| 2033 | 1998 | }() | |
| 2034 | 1999 | } | |
| 2035 | 2000 | ctx = templ.InitializeContext(ctx) | |
| 2036 | - | templ_7745c5c3_Var94 := templ.GetChildren(ctx) | |
| 2037 | - | if templ_7745c5c3_Var94 == nil { | |
| 2038 | - | templ_7745c5c3_Var94 = templ.NopComponent | |
| 2001 | + | templ_7745c5c3_Var93 := templ.GetChildren(ctx) | |
| 2002 | + | if templ_7745c5c3_Var93 == nil { | |
| 2003 | + | templ_7745c5c3_Var93 = templ.NopComponent | |
| 2039 | 2004 | } | |
| 2040 | 2005 | ctx = templ.ClearChildren(ctx) | |
| 2041 | 2006 | if ln == nil { | |
| 2042 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 178, "<td class=\"ln none\"></td><td class=\"m none\"></td><td class=\"tx none\"></td>") | |
| 2007 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 177, "<td class=\"ln none\"></td><td class=\"m none\"></td><td class=\"tx none\"></td>") | |
| 2043 | 2008 | if templ_7745c5c3_Err != nil { | |
| 2044 | 2009 | return templ_7745c5c3_Err | |
| 2045 | 2010 | } | |
| 2046 | 2011 | } else { | |
| 2047 | - | var templ_7745c5c3_Var95 = []any{"ln", ln.Kind, templ.KV("sel", ln.Selected)} | |
| 2048 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var95...) | |
| 2012 | + | var templ_7745c5c3_Var94 = []any{"ln", ln.Kind, templ.KV("sel", ln.Selected)} | |
| 2013 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var94...) | |
| 2049 | 2014 | if templ_7745c5c3_Err != nil { | |
| 2050 | 2015 | return templ_7745c5c3_Err | |
| 2051 | 2016 | } | |
| 2052 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 179, "<td class=\"") | |
| 2017 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 178, "<td class=\"") | |
| 2053 | 2018 | if templ_7745c5c3_Err != nil { | |
| 2054 | 2019 | return templ_7745c5c3_Err | |
| 2055 | 2020 | } | |
| 2056 | - | var templ_7745c5c3_Var96 string | |
| 2057 | - | templ_7745c5c3_Var96, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var95).String()) | |
| 2021 | + | var templ_7745c5c3_Var95 string | |
| 2022 | + | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var94).String()) | |
| 2058 | 2023 | if templ_7745c5c3_Err != nil { | |
| 2059 | 2024 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | |
| 2060 | 2025 | } | |
| 2061 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var96) | |
| 2026 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var95) | |
| 2062 | 2027 | if templ_7745c5c3_Err != nil { | |
| 2063 | 2028 | return templ_7745c5c3_Err | |
| 2064 | 2029 | } | |
| 2065 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 180, "\">") | |
| 2030 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 179, "\">") | |
| 2066 | 2031 | if templ_7745c5c3_Err != nil { | |
| 2067 | 2032 | return templ_7745c5c3_Err | |
| 2068 | 2033 | } | |
| @@ -2077,64 +2042,64 @@ func splitSide(ln *DiffLine, old bool) templ.Component { | |||
| 2077 | 2042 | return templ_7745c5c3_Err | |
| 2078 | 2043 | } | |
| 2079 | 2044 | } | |
| 2080 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 181, "</td>") | |
| 2045 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 180, "</td>") | |
| 2081 | 2046 | if templ_7745c5c3_Err != nil { | |
| 2082 | 2047 | return templ_7745c5c3_Err | |
| 2083 | 2048 | } | |
| 2084 | - | var templ_7745c5c3_Var97 = []any{"m", ln.Kind, templ.KV("sel", ln.Selected)} | |
| 2085 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var97...) | |
| 2049 | + | var templ_7745c5c3_Var96 = []any{"m", ln.Kind, templ.KV("sel", ln.Selected)} | |
| 2050 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var96...) | |
| 2086 | 2051 | if templ_7745c5c3_Err != nil { | |
| 2087 | 2052 | return templ_7745c5c3_Err | |
| 2088 | 2053 | } | |
| 2089 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 182, "<td class=\"") | |
| 2054 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 181, "<td class=\"") | |
| 2090 | 2055 | if templ_7745c5c3_Err != nil { | |
| 2091 | 2056 | return templ_7745c5c3_Err | |
| 2092 | 2057 | } | |
| 2093 | - | var templ_7745c5c3_Var98 string | |
| 2094 | - | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var97).String()) | |
| 2058 | + | var templ_7745c5c3_Var97 string | |
| 2059 | + | templ_7745c5c3_Var97, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var96).String()) | |
| 2095 | 2060 | if templ_7745c5c3_Err != nil { | |
| 2096 | 2061 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | |
| 2097 | 2062 | } | |
| 2098 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var98) | |
| 2063 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var97) | |
| 2099 | 2064 | if templ_7745c5c3_Err != nil { | |
| 2100 | 2065 | return templ_7745c5c3_Err | |
| 2101 | 2066 | } | |
| 2102 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 183, "\">") | |
| 2067 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 182, "\">") | |
| 2103 | 2068 | if templ_7745c5c3_Err != nil { | |
| 2104 | 2069 | return templ_7745c5c3_Err | |
| 2105 | 2070 | } | |
| 2106 | - | var templ_7745c5c3_Var99 string | |
| 2107 | - | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | |
| 2071 | + | var templ_7745c5c3_Var98 string | |
| 2072 | + | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | |
| 2108 | 2073 | if templ_7745c5c3_Err != nil { | |
| 2109 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 406, Col: 68} | |
| 2074 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 397, Col: 68} | |
| 2110 | 2075 | } | |
| 2111 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) | |
| 2076 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) | |
| 2112 | 2077 | if templ_7745c5c3_Err != nil { | |
| 2113 | 2078 | return templ_7745c5c3_Err | |
| 2114 | 2079 | } | |
| 2115 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 184, "</td>") | |
| 2080 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 183, "</td>") | |
| 2116 | 2081 | if templ_7745c5c3_Err != nil { | |
| 2117 | 2082 | return templ_7745c5c3_Err | |
| 2118 | 2083 | } | |
| 2119 | - | var templ_7745c5c3_Var100 = []any{"tx", "chroma", ln.Kind, templ.KV("sel", ln.Selected)} | |
| 2120 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var100...) | |
| 2084 | + | var templ_7745c5c3_Var99 = []any{"tx", "chroma", ln.Kind, templ.KV("sel", ln.Selected)} | |
| 2085 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var99...) | |
| 2121 | 2086 | if templ_7745c5c3_Err != nil { | |
| 2122 | 2087 | return templ_7745c5c3_Err | |
| 2123 | 2088 | } | |
| 2124 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 185, "<td class=\"") | |
| 2089 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 184, "<td class=\"") | |
| 2125 | 2090 | if templ_7745c5c3_Err != nil { | |
| 2126 | 2091 | return templ_7745c5c3_Err | |
| 2127 | 2092 | } | |
| 2128 | - | var templ_7745c5c3_Var101 string | |
| 2129 | - | templ_7745c5c3_Var101, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var100).String()) | |
| 2093 | + | var templ_7745c5c3_Var100 string | |
| 2094 | + | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var99).String()) | |
| 2130 | 2095 | if templ_7745c5c3_Err != nil { | |
| 2131 | 2096 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | |
| 2132 | 2097 | } | |
| 2133 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var101) | |
| 2098 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var100) | |
| 2134 | 2099 | if templ_7745c5c3_Err != nil { | |
| 2135 | 2100 | return templ_7745c5c3_Err | |
| 2136 | 2101 | } | |
| 2137 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 186, "\">") | |
| 2102 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 185, "\">") | |
| 2138 | 2103 | if templ_7745c5c3_Err != nil { | |
| 2139 | 2104 | return templ_7745c5c3_Err | |
| 2140 | 2105 | } | |
| @@ -2142,7 +2107,7 @@ func splitSide(ln *DiffLine, old bool) templ.Component { | |||
| 2142 | 2107 | if templ_7745c5c3_Err != nil { | |
| 2143 | 2108 | return templ_7745c5c3_Err | |
| 2144 | 2109 | } | |
| 2145 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 187, "</td>") | |
| 2110 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 186, "</td>") | |
| 2146 | 2111 | if templ_7745c5c3_Err != nil { | |
| 2147 | 2112 | return templ_7745c5c3_Err | |
| 2148 | 2113 | } | |
| @@ -2169,49 +2134,49 @@ func gutter(n, href string) templ.Component { | |||
| 2169 | 2134 | }() | |
| 2170 | 2135 | } | |
| 2171 | 2136 | ctx = templ.InitializeContext(ctx) | |
| 2172 | - | templ_7745c5c3_Var102 := templ.GetChildren(ctx) | |
| 2173 | - | if templ_7745c5c3_Var102 == nil { | |
| 2174 | - | templ_7745c5c3_Var102 = templ.NopComponent | |
| 2137 | + | templ_7745c5c3_Var101 := templ.GetChildren(ctx) | |
| 2138 | + | if templ_7745c5c3_Var101 == nil { | |
| 2139 | + | templ_7745c5c3_Var101 = templ.NopComponent | |
| 2175 | 2140 | } | |
| 2176 | 2141 | ctx = templ.ClearChildren(ctx) | |
| 2177 | 2142 | if href != "" { | |
| 2178 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 188, "<a href=\"") | |
| 2143 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 187, "<a href=\"") | |
| 2179 | 2144 | if templ_7745c5c3_Err != nil { | |
| 2180 | 2145 | return templ_7745c5c3_Err | |
| 2181 | 2146 | } | |
| 2182 | - | var templ_7745c5c3_Var103 templ.SafeURL | |
| 2183 | - | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | |
| 2147 | + | var templ_7745c5c3_Var102 templ.SafeURL | |
| 2148 | + | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | |
| 2184 | 2149 | if templ_7745c5c3_Err != nil { | |
| 2185 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 415, Col: 31} | |
| 2150 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 406, Col: 31} | |
| 2186 | 2151 | } | |
| 2187 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | |
| 2152 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) | |
| 2188 | 2153 | if templ_7745c5c3_Err != nil { | |
| 2189 | 2154 | return templ_7745c5c3_Err | |
| 2190 | 2155 | } | |
| 2191 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 189, "\" title=\"comment on this line\">") | |
| 2156 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 188, "\" title=\"comment on this line\">") | |
| 2192 | 2157 | if templ_7745c5c3_Err != nil { | |
| 2193 | 2158 | return templ_7745c5c3_Err | |
| 2194 | 2159 | } | |
| 2195 | - | var templ_7745c5c3_Var104 string | |
| 2196 | - | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinStringErrs(n) | |
| 2160 | + | var templ_7745c5c3_Var103 string | |
| 2161 | + | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinStringErrs(n) | |
| 2197 | 2162 | if templ_7745c5c3_Err != nil { | |
| 2198 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 415, Col: 66} | |
| 2163 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 406, Col: 66} | |
| 2199 | 2164 | } | |
| 2200 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | |
| 2165 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | |
| 2201 | 2166 | if templ_7745c5c3_Err != nil { | |
| 2202 | 2167 | return templ_7745c5c3_Err | |
| 2203 | 2168 | } | |
| 2204 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 190, "</a>") | |
| 2169 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 189, "</a>") | |
| 2205 | 2170 | if templ_7745c5c3_Err != nil { | |
| 2206 | 2171 | return templ_7745c5c3_Err | |
| 2207 | 2172 | } | |
| 2208 | 2173 | } else { | |
| 2209 | - | var templ_7745c5c3_Var105 string | |
| 2210 | - | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinStringErrs(n) | |
| 2174 | + | var templ_7745c5c3_Var104 string | |
| 2175 | + | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinStringErrs(n) | |
| 2211 | 2176 | if templ_7745c5c3_Err != nil { | |
| 2212 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 417, Col: 5} | |
| 2177 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 408, Col: 5} | |
| 2213 | 2178 | } | |
| 2214 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) | |
| 2179 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | |
| 2215 | 2180 | if templ_7745c5c3_Err != nil { | |
| 2216 | 2181 | return templ_7745c5c3_Err | |
| 2217 | 2182 | } | |
| @@ -363,10 +363,6 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||||
| 363 | if templ_7745c5c3_Err != nil { | 363 | if templ_7745c5c3_Err != nil { | ||
| 364 | return templ_7745c5c3_Err | 364 | return templ_7745c5c3_Err | ||
| 365 | } | 365 | } | ||
| 366 | - | templ_7745c5c3_Err = wideButton().Render(ctx, templ_7745c5c3_Buffer) | |||
| 367 | - | if templ_7745c5c3_Err != nil { | |||
| 368 | - | return templ_7745c5c3_Err | |||
| 369 | - | } | |||
| 370 | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "</div>") | 366 | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "</div>") | ||
| 371 | if templ_7745c5c3_Err != nil { | 367 | if templ_7745c5c3_Err != nil { | ||
| 372 | return templ_7745c5c3_Err | 368 | return templ_7745c5c3_Err | ||
| @@ -389,7 +385,7 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||||
| 389 | var templ_7745c5c3_Var17 string | 385 | var templ_7745c5c3_Var17 string | ||
| 390 | templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | 386 | templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | ||
| 391 | if templ_7745c5c3_Err != nil { | 387 | if templ_7745c5c3_Err != nil { | ||
| 392 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 85, Col: 29} | 388 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 84, Col: 29} |
| 393 | } | 389 | } | ||
| 394 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) | 390 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) | ||
| 395 | if templ_7745c5c3_Err != nil { | 391 | if templ_7745c5c3_Err != nil { | ||
| @@ -412,7 +408,7 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||||
| 412 | var templ_7745c5c3_Var18 string | 408 | var templ_7745c5c3_Var18 string | ||
| 413 | templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 409 | templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | ||
| 414 | if templ_7745c5c3_Err != nil { | 410 | if templ_7745c5c3_Err != nil { | ||
| 415 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 90, Col: 22} | 411 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 89, Col: 22} |
| 416 | } | 412 | } | ||
| 417 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var18) | 413 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var18) | ||
| 418 | if templ_7745c5c3_Err != nil { | 414 | if templ_7745c5c3_Err != nil { | ||
| @@ -430,7 +426,7 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||||
| 430 | var templ_7745c5c3_Var19 string | 426 | var templ_7745c5c3_Var19 string | ||
| 431 | templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 427 | templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | ||
| 432 | if templ_7745c5c3_Err != nil { | 428 | if templ_7745c5c3_Err != nil { | ||
| 433 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 92, Col: 22} | 429 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 91, Col: 22} |
| 434 | } | 430 | } | ||
| 435 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var19) | 431 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var19) | ||
| 436 | if templ_7745c5c3_Err != nil { | 432 | if templ_7745c5c3_Err != nil { | ||
| @@ -465,7 +461,7 @@ func Commit(l Layout, p CommitPage) templ.Component { | |||||
| 465 | var templ_7745c5c3_Var20 string | 461 | var templ_7745c5c3_Var20 string | ||
| 466 | templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 462 | templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | ||
| 467 | if templ_7745c5c3_Err != nil { | 463 | if templ_7745c5c3_Err != nil { | ||
| 468 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 102, Col: 41} | 464 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 101, Col: 41} |
| 469 | } | 465 | } | ||
| 470 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) | 466 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) | ||
| 471 | if templ_7745c5c3_Err != nil { | 467 | if templ_7745c5c3_Err != nil { | ||
| @@ -541,7 +537,7 @@ func diffViewMenu(p DiffView) templ.Component { | |||||
| 541 | var templ_7745c5c3_Var22 string | 537 | var templ_7745c5c3_Var22 string | ||
| 542 | templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(viewLabel(p.View)) | 538 | templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(viewLabel(p.View)) | ||
| 543 | if templ_7745c5c3_Err != nil { | 539 | if templ_7745c5c3_Err != nil { | ||
| 544 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 121, Col: 122} | 540 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 120, Col: 122} |
| 545 | } | 541 | } | ||
| 546 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) | 542 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) | ||
| 547 | if templ_7745c5c3_Err != nil { | 543 | if templ_7745c5c3_Err != nil { | ||
| @@ -555,7 +551,7 @@ func diffViewMenu(p DiffView) templ.Component { | |||||
| 555 | var templ_7745c5c3_Var23 string | 551 | var templ_7745c5c3_Var23 string | ||
| 556 | templ_7745c5c3_Var23, templ_7745c5c3_Err = templ.JoinStringErrs(viewLabel(p.View)) | 552 | templ_7745c5c3_Var23, templ_7745c5c3_Err = templ.JoinStringErrs(viewLabel(p.View)) | ||
| 557 | if templ_7745c5c3_Err != nil { | 553 | if templ_7745c5c3_Err != nil { | ||
| 558 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 123, Col: 23} | 554 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 122, Col: 23} |
| 559 | } | 555 | } | ||
| 560 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var23)) | 556 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var23)) | ||
| 561 | if templ_7745c5c3_Err != nil { | 557 | if templ_7745c5c3_Err != nil { | ||
| @@ -586,37 +582,6 @@ func diffViewMenu(p DiffView) templ.Component { | |||||
| 586 | }) | 582 | }) | ||
| 587 | } | 583 | } | ||
| 588 | 584 | ||||
| 589 | - | // wideButton turns the wide mode (w, on every page) on or off: the rail goes | |||
| 590 | - | // to the right edge and the code takes the rest. ermite.js keeps the choice. | |||
| 591 | - | func wideButton() templ.Component { | |||
| 592 | - | return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | |||
| 593 | - | templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | |||
| 594 | - | if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { | |||
| 595 | - | return templ_7745c5c3_CtxErr | |||
| 596 | - | } | |||
| 597 | - | templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | |||
| 598 | - | if !templ_7745c5c3_IsBuffer { | |||
| 599 | - | defer func() { | |||
| 600 | - | templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | |||
| 601 | - | if templ_7745c5c3_Err == nil { | |||
| 602 | - | templ_7745c5c3_Err = templ_7745c5c3_BufErr | |||
| 603 | - | } | |||
| 604 | - | }() | |||
| 605 | - | } | |||
| 606 | - | ctx = templ.InitializeContext(ctx) | |||
| 607 | - | templ_7745c5c3_Var24 := templ.GetChildren(ctx) | |||
| 608 | - | if templ_7745c5c3_Var24 == nil { | |||
| 609 | - | templ_7745c5c3_Var24 = templ.NopComponent | |||
| 610 | - | } | |||
| 611 | - | ctx = templ.ClearChildren(ctx) | |||
| 612 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "<button type=\"button\" class=\"btn\" data-js data-fire=\"wide\" data-wide-toggle aria-pressed=\"false\" aria-keyshortcuts=\"w\" title=\"use the whole width of the screen\">Wide<kbd aria-hidden=\"true\">w</kbd></button>") | |||
| 613 | - | if templ_7745c5c3_Err != nil { | |||
| 614 | - | return templ_7745c5c3_Err | |||
| 615 | - | } | |||
| 616 | - | return nil | |||
| 617 | - | }) | |||
| 618 | - | } | |||
| 619 | - | ||||
| 620 | // viewLink is a button of the diff tools. It is a link, so that the split | 585 | // viewLink is a button of the diff tools. It is a link, so that the split | ||
| 621 | // layout works without JavaScript; with it, and when both layouts are in the | 586 | // layout works without JavaScript; with it, and when both layouts are in the | ||
| 622 | // page, a click only flips the layout. | 587 | // page, a click only flips the layout. | ||
| @@ -636,106 +601,106 @@ func viewLink(p DiffView, view, label, key, href string) templ.Component { | |||||
| 636 | }() | 601 | }() | ||
| 637 | } | 602 | } | ||
| 638 | ctx = templ.InitializeContext(ctx) | 603 | ctx = templ.InitializeContext(ctx) | ||
| 639 | - | templ_7745c5c3_Var25 := templ.GetChildren(ctx) | 604 | + | templ_7745c5c3_Var24 := templ.GetChildren(ctx) |
| 640 | - | if templ_7745c5c3_Var25 == nil { | 605 | + | if templ_7745c5c3_Var24 == nil { |
| 641 | - | templ_7745c5c3_Var25 = templ.NopComponent | 606 | + | templ_7745c5c3_Var24 = templ.NopComponent |
| 642 | } | 607 | } | ||
| 643 | ctx = templ.ClearChildren(ctx) | 608 | ctx = templ.ClearChildren(ctx) | ||
| 644 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, "<a href=\"") | 609 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "<a href=\"") |
| 645 | if templ_7745c5c3_Err != nil { | 610 | if templ_7745c5c3_Err != nil { | ||
| 646 | return templ_7745c5c3_Err | 611 | return templ_7745c5c3_Err | ||
| 647 | } | 612 | } | ||
| 648 | - | var templ_7745c5c3_Var26 templ.SafeURL | 613 | + | var templ_7745c5c3_Var25 templ.SafeURL |
| 649 | - | templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | 614 | + | templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) |
| 650 | if templ_7745c5c3_Err != nil { | 615 | if templ_7745c5c3_Err != nil { | ||
| 651 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 147, Col: 28} | 616 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 138, Col: 28} |
| 652 | } | 617 | } | ||
| 653 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var26)) | 618 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25)) |
| 654 | if templ_7745c5c3_Err != nil { | 619 | if templ_7745c5c3_Err != nil { | ||
| 655 | return templ_7745c5c3_Err | 620 | return templ_7745c5c3_Err | ||
| 656 | } | 621 | } | ||
| 657 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 62, "\" class=\"btn vbtn\" data-view=\"") | 622 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, "\" class=\"btn vbtn\" data-view=\"") |
| 658 | if templ_7745c5c3_Err != nil { | 623 | if templ_7745c5c3_Err != nil { | ||
| 659 | return templ_7745c5c3_Err | 624 | return templ_7745c5c3_Err | ||
| 660 | } | 625 | } | ||
| 661 | - | var templ_7745c5c3_Var27 string | 626 | + | var templ_7745c5c3_Var26 string |
| 662 | - | templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.ResolveAttributeValue(view) | 627 | + | templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.ResolveAttributeValue(view) |
| 663 | if templ_7745c5c3_Err != nil { | 628 | if templ_7745c5c3_Err != nil { | ||
| 664 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 149, Col: 18} | 629 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 140, Col: 18} |
| 665 | } | 630 | } | ||
| 666 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var27) | 631 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var26) |
| 667 | if templ_7745c5c3_Err != nil { | 632 | if templ_7745c5c3_Err != nil { | ||
| 668 | return templ_7745c5c3_Err | 633 | return templ_7745c5c3_Err | ||
| 669 | } | 634 | } | ||
| 670 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 63, "\" aria-keyshortcuts=\"") | 635 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 62, "\" aria-keyshortcuts=\"") |
| 671 | if templ_7745c5c3_Err != nil { | 636 | if templ_7745c5c3_Err != nil { | ||
| 672 | return templ_7745c5c3_Err | 637 | return templ_7745c5c3_Err | ||
| 673 | } | 638 | } | ||
| 674 | - | var templ_7745c5c3_Var28 string | 639 | + | var templ_7745c5c3_Var27 string |
| 675 | - | templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.ResolveAttributeValue(key) | 640 | + | templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.ResolveAttributeValue(key) |
| 676 | if templ_7745c5c3_Err != nil { | 641 | if templ_7745c5c3_Err != nil { | ||
| 677 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 150, Col: 25} | 642 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 141, Col: 25} |
| 678 | } | 643 | } | ||
| 679 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var28) | 644 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var27) |
| 680 | if templ_7745c5c3_Err != nil { | 645 | if templ_7745c5c3_Err != nil { | ||
| 681 | return templ_7745c5c3_Err | 646 | return templ_7745c5c3_Err | ||
| 682 | } | 647 | } | ||
| 683 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 64, "\"") | 648 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 63, "\"") |
| 684 | if templ_7745c5c3_Err != nil { | 649 | if templ_7745c5c3_Err != nil { | ||
| 685 | return templ_7745c5c3_Err | 650 | return templ_7745c5c3_Err | ||
| 686 | } | 651 | } | ||
| 687 | if p.View == view { | 652 | if p.View == view { | ||
| 688 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 65, " aria-current=\"true\"") | 653 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 64, " aria-current=\"true\"") |
| 689 | if templ_7745c5c3_Err != nil { | 654 | if templ_7745c5c3_Err != nil { | ||
| 690 | return templ_7745c5c3_Err | 655 | return templ_7745c5c3_Err | ||
| 691 | } | 656 | } | ||
| 692 | } | 657 | } | ||
| 693 | if p.Both { | 658 | if p.Both { | ||
| 694 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 66, " data-fire=\"") | 659 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 65, " data-fire=\"") |
| 695 | if templ_7745c5c3_Err != nil { | 660 | if templ_7745c5c3_Err != nil { | ||
| 696 | return templ_7745c5c3_Err | 661 | return templ_7745c5c3_Err | ||
| 697 | } | 662 | } | ||
| 698 | - | var templ_7745c5c3_Var29 string | 663 | + | var templ_7745c5c3_Var28 string |
| 699 | - | templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.ResolveAttributeValue(view) | 664 | + | templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.ResolveAttributeValue(view) |
| 700 | if templ_7745c5c3_Err != nil { | 665 | if templ_7745c5c3_Err != nil { | ||
| 701 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 155, Col: 19} | 666 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 146, Col: 19} |
| 702 | } | 667 | } | ||
| 703 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var29) | 668 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var28) |
| 704 | if templ_7745c5c3_Err != nil { | 669 | if templ_7745c5c3_Err != nil { | ||
| 705 | return templ_7745c5c3_Err | 670 | return templ_7745c5c3_Err | ||
| 706 | } | 671 | } | ||
| 707 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 67, "\" :aria-current=\"q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false\"") | 672 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 66, "\" :aria-current=\"q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false\"") |
| 708 | if templ_7745c5c3_Err != nil { | 673 | if templ_7745c5c3_Err != nil { | ||
| 709 | return templ_7745c5c3_Err | 674 | return templ_7745c5c3_Err | ||
| 710 | } | 675 | } | ||
| 711 | } | 676 | } | ||
| 712 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 68, ">") | 677 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 67, ">") |
| 713 | if templ_7745c5c3_Err != nil { | 678 | if templ_7745c5c3_Err != nil { | ||
| 714 | return templ_7745c5c3_Err | 679 | return templ_7745c5c3_Err | ||
| 715 | } | 680 | } | ||
| 716 | - | var templ_7745c5c3_Var30 string | 681 | + | var templ_7745c5c3_Var29 string |
| 717 | - | templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(label) | 682 | + | templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.JoinStringErrs(label) |
| 718 | if templ_7745c5c3_Err != nil { | 683 | if templ_7745c5c3_Err != nil { | ||
| 719 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 158, Col: 9} | 684 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 149, Col: 9} |
| 720 | } | 685 | } | ||
| 721 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) | 686 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var29)) |
| 722 | if templ_7745c5c3_Err != nil { | 687 | if templ_7745c5c3_Err != nil { | ||
| 723 | return templ_7745c5c3_Err | 688 | return templ_7745c5c3_Err | ||
| 724 | } | 689 | } | ||
| 725 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 69, "<kbd aria-hidden=\"true\">") | 690 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 68, "<kbd aria-hidden=\"true\">") |
| 726 | if templ_7745c5c3_Err != nil { | 691 | if templ_7745c5c3_Err != nil { | ||
| 727 | return templ_7745c5c3_Err | 692 | return templ_7745c5c3_Err | ||
| 728 | } | 693 | } | ||
| 729 | - | var templ_7745c5c3_Var31 string | 694 | + | var templ_7745c5c3_Var30 string |
| 730 | - | templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinStringErrs(key) | 695 | + | templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(key) |
| 731 | if templ_7745c5c3_Err != nil { | 696 | if templ_7745c5c3_Err != nil { | ||
| 732 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 158, Col: 40} | 697 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 149, Col: 40} |
| 733 | } | 698 | } | ||
| 734 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var31)) | 699 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) |
| 735 | if templ_7745c5c3_Err != nil { | 700 | if templ_7745c5c3_Err != nil { | ||
| 736 | return templ_7745c5c3_Err | 701 | return templ_7745c5c3_Err | ||
| 737 | } | 702 | } | ||
| 738 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "</kbd></a>") | 703 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 69, "</kbd></a>") |
| 739 | if templ_7745c5c3_Err != nil { | 704 | if templ_7745c5c3_Err != nil { | ||
| 740 | return templ_7745c5c3_Err | 705 | return templ_7745c5c3_Err | ||
| 741 | } | 706 | } | ||
| @@ -761,12 +726,12 @@ func collapseButton() templ.Component { | |||||
| 761 | }() | 726 | }() | ||
| 762 | } | 727 | } | ||
| 763 | ctx = templ.InitializeContext(ctx) | 728 | ctx = templ.InitializeContext(ctx) | ||
| 764 | - | templ_7745c5c3_Var32 := templ.GetChildren(ctx) | 729 | + | templ_7745c5c3_Var31 := templ.GetChildren(ctx) |
| 765 | - | if templ_7745c5c3_Var32 == nil { | 730 | + | if templ_7745c5c3_Var31 == nil { |
| 766 | - | templ_7745c5c3_Var32 = templ.NopComponent | 731 | + | templ_7745c5c3_Var31 = templ.NopComponent |
| 767 | } | 732 | } | ||
| 768 | ctx = templ.ClearChildren(ctx) | 733 | ctx = templ.ClearChildren(ctx) | ||
| 769 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "<button type=\"button\" aria-keyshortcuts=\"x\" data-js data-fire=\"collapse\" class=\"btn\"><span hx-live=\"this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'\">Collapse all</span><kbd aria-hidden=\"true\">x</kbd></button>") | 734 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "<button type=\"button\" aria-keyshortcuts=\"x\" data-js data-fire=\"collapse\" class=\"btn\"><span hx-live=\"this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'\">Collapse all</span><kbd aria-hidden=\"true\">x</kbd></button>") |
| 770 | if templ_7745c5c3_Err != nil { | 735 | if templ_7745c5c3_Err != nil { | ||
| 771 | return templ_7745c5c3_Err | 736 | return templ_7745c5c3_Err | ||
| 772 | } | 737 | } | ||
| @@ -790,83 +755,83 @@ func personView(pr Person) templ.Component { | |||||
| 790 | }() | 755 | }() | ||
| 791 | } | 756 | } | ||
| 792 | ctx = templ.InitializeContext(ctx) | 757 | ctx = templ.InitializeContext(ctx) | ||
| 793 | - | templ_7745c5c3_Var33 := templ.GetChildren(ctx) | 758 | + | templ_7745c5c3_Var32 := templ.GetChildren(ctx) |
| 794 | - | if templ_7745c5c3_Var33 == nil { | 759 | + | if templ_7745c5c3_Var32 == nil { |
| 795 | - | templ_7745c5c3_Var33 = templ.NopComponent | 760 | + | templ_7745c5c3_Var32 = templ.NopComponent |
| 796 | } | 761 | } | ||
| 797 | ctx = templ.ClearChildren(ctx) | 762 | ctx = templ.ClearChildren(ctx) | ||
| 798 | - | var templ_7745c5c3_Var34 string | 763 | + | var templ_7745c5c3_Var33 string |
| 799 | - | templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(pr.Name) | 764 | + | templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinStringErrs(pr.Name) |
| 800 | if templ_7745c5c3_Err != nil { | 765 | if templ_7745c5c3_Err != nil { | ||
| 801 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 170, Col: 10} | 766 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 161, Col: 10} |
| 802 | } | 767 | } | ||
| 803 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var34)) | 768 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var33)) |
| 804 | if templ_7745c5c3_Err != nil { | 769 | if templ_7745c5c3_Err != nil { | ||
| 805 | return templ_7745c5c3_Err | 770 | return templ_7745c5c3_Err | ||
| 806 | } | 771 | } | ||
| 807 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 72, " ") | 772 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, " ") |
| 808 | if templ_7745c5c3_Err != nil { | 773 | if templ_7745c5c3_Err != nil { | ||
| 809 | return templ_7745c5c3_Err | 774 | return templ_7745c5c3_Err | ||
| 810 | } | 775 | } | ||
| 811 | if pr.WhenAt != "" { | 776 | if pr.WhenAt != "" { | ||
| 812 | - | var templ_7745c5c3_Var35 string | 777 | + | var templ_7745c5c3_Var34 string |
| 813 | - | templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | 778 | + | templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") |
| 814 | if templ_7745c5c3_Err != nil { | 779 | if templ_7745c5c3_Err != nil { | ||
| 815 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 10} | 780 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 10} |
| 816 | } | 781 | } | ||
| 817 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var35)) | 782 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var34)) |
| 818 | if templ_7745c5c3_Err != nil { | 783 | if templ_7745c5c3_Err != nil { | ||
| 819 | return templ_7745c5c3_Err | 784 | return templ_7745c5c3_Err | ||
| 820 | } | 785 | } | ||
| 821 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 73, "<time datetime=\"") | 786 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 72, "<time datetime=\"") |
| 822 | if templ_7745c5c3_Err != nil { | 787 | if templ_7745c5c3_Err != nil { | ||
| 823 | return templ_7745c5c3_Err | 788 | return templ_7745c5c3_Err | ||
| 824 | } | 789 | } | ||
| 825 | - | var templ_7745c5c3_Var36 string | 790 | + | var templ_7745c5c3_Var35 string |
| 826 | - | templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.ResolveAttributeValue(pr.WhenAt) | 791 | + | templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.ResolveAttributeValue(pr.WhenAt) |
| 827 | if templ_7745c5c3_Err != nil { | 792 | if templ_7745c5c3_Err != nil { | ||
| 828 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 38} | 793 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 38} |
| 829 | } | 794 | } | ||
| 830 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var36) | 795 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var35) |
| 831 | if templ_7745c5c3_Err != nil { | 796 | if templ_7745c5c3_Err != nil { | ||
| 832 | return templ_7745c5c3_Err | 797 | return templ_7745c5c3_Err | ||
| 833 | } | 798 | } | ||
| 834 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 74, "\" title=\"") | 799 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 73, "\" title=\"") |
| 835 | if templ_7745c5c3_Err != nil { | 800 | if templ_7745c5c3_Err != nil { | ||
| 836 | return templ_7745c5c3_Err | 801 | return templ_7745c5c3_Err | ||
| 837 | } | 802 | } | ||
| 838 | - | var templ_7745c5c3_Var37 string | 803 | + | var templ_7745c5c3_Var36 string |
| 839 | - | templ_7745c5c3_Var37, templ_7745c5c3_Err = templ.ResolveAttributeValue(pr.Abs) | 804 | + | templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.ResolveAttributeValue(pr.Abs) |
| 840 | if templ_7745c5c3_Err != nil { | 805 | if templ_7745c5c3_Err != nil { | ||
| 841 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 55} | 806 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 55} |
| 842 | } | 807 | } | ||
| 843 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var37) | 808 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var36) |
| 844 | if templ_7745c5c3_Err != nil { | 809 | if templ_7745c5c3_Err != nil { | ||
| 845 | return templ_7745c5c3_Err | 810 | return templ_7745c5c3_Err | ||
| 846 | } | 811 | } | ||
| 847 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 75, "\">") | 812 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 74, "\">") |
| 848 | if templ_7745c5c3_Err != nil { | 813 | if templ_7745c5c3_Err != nil { | ||
| 849 | return templ_7745c5c3_Err | 814 | return templ_7745c5c3_Err | ||
| 850 | } | 815 | } | ||
| 851 | - | var templ_7745c5c3_Var38 string | 816 | + | var templ_7745c5c3_Var37 string |
| 852 | - | templ_7745c5c3_Var38, templ_7745c5c3_Err = templ.JoinStringErrs(pr.When) | 817 | + | templ_7745c5c3_Var37, templ_7745c5c3_Err = templ.JoinStringErrs(pr.When) |
| 853 | if templ_7745c5c3_Err != nil { | 818 | if templ_7745c5c3_Err != nil { | ||
| 854 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 67} | 819 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 67} |
| 855 | } | 820 | } | ||
| 856 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var38)) | 821 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var37)) |
| 857 | if templ_7745c5c3_Err != nil { | 822 | if templ_7745c5c3_Err != nil { | ||
| 858 | return templ_7745c5c3_Err | 823 | return templ_7745c5c3_Err | ||
| 859 | } | 824 | } | ||
| 860 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 76, "</time>") | 825 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 75, "</time>") |
| 861 | if templ_7745c5c3_Err != nil { | 826 | if templ_7745c5c3_Err != nil { | ||
| 862 | return templ_7745c5c3_Err | 827 | return templ_7745c5c3_Err | ||
| 863 | } | 828 | } | ||
| 864 | - | var templ_7745c5c3_Var39 string | 829 | + | var templ_7745c5c3_Var38 string |
| 865 | - | templ_7745c5c3_Var39, templ_7745c5c3_Err = templ.JoinStringErrs(" · " + pr.Abs) | 830 | + | templ_7745c5c3_Var38, templ_7745c5c3_Err = templ.JoinStringErrs(" · " + pr.Abs) |
| 866 | if templ_7745c5c3_Err != nil { | 831 | if templ_7745c5c3_Err != nil { | ||
| 867 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 172, Col: 93} | 832 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 163, Col: 93} |
| 868 | } | 833 | } | ||
| 869 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var39)) | 834 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var38)) |
| 870 | if templ_7745c5c3_Err != nil { | 835 | if templ_7745c5c3_Err != nil { | ||
| 871 | return templ_7745c5c3_Err | 836 | return templ_7745c5c3_Err | ||
| 872 | } | 837 | } | ||
| @@ -891,25 +856,25 @@ func commitRail(p CommitPage) templ.Component { | |||||
| 891 | }() | 856 | }() | ||
| 892 | } | 857 | } | ||
| 893 | ctx = templ.InitializeContext(ctx) | 858 | ctx = templ.InitializeContext(ctx) | ||
| 894 | - | templ_7745c5c3_Var40 := templ.GetChildren(ctx) | 859 | + | templ_7745c5c3_Var39 := templ.GetChildren(ctx) |
| 895 | - | if templ_7745c5c3_Var40 == nil { | 860 | + | if templ_7745c5c3_Var39 == nil { |
| 896 | - | templ_7745c5c3_Var40 = templ.NopComponent | 861 | + | templ_7745c5c3_Var39 = templ.NopComponent |
| 897 | } | 862 | } | ||
| 898 | ctx = templ.ClearChildren(ctx) | 863 | ctx = templ.ClearChildren(ctx) | ||
| 899 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 77, "<section aria-labelledby=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | 864 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 76, "<section aria-labelledby=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") |
| 900 | if templ_7745c5c3_Err != nil { | 865 | if templ_7745c5c3_Err != nil { | ||
| 901 | return templ_7745c5c3_Err | 866 | return templ_7745c5c3_Err | ||
| 902 | } | 867 | } | ||
| 903 | - | var templ_7745c5c3_Var41 string | 868 | + | var templ_7745c5c3_Var40 string |
| 904 | - | templ_7745c5c3_Var41, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | 869 | + | templ_7745c5c3_Var40, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) |
| 905 | if templ_7745c5c3_Err != nil { | 870 | if templ_7745c5c3_Err != nil { | ||
| 906 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 178, Col: 65} | 871 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 169, Col: 65} |
| 907 | } | 872 | } | ||
| 908 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var41)) | 873 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var40)) |
| 909 | if templ_7745c5c3_Err != nil { | 874 | if templ_7745c5c3_Err != nil { | ||
| 910 | return templ_7745c5c3_Err | 875 | return templ_7745c5c3_Err | ||
| 911 | } | 876 | } | ||
| 912 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 78, "</span></h2>") | 877 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 77, "</span></h2>") |
| 913 | if templ_7745c5c3_Err != nil { | 878 | if templ_7745c5c3_Err != nil { | ||
| 914 | return templ_7745c5c3_Err | 879 | return templ_7745c5c3_Err | ||
| 915 | } | 880 | } | ||
| @@ -917,7 +882,7 @@ func commitRail(p CommitPage) templ.Component { | |||||
| 917 | if templ_7745c5c3_Err != nil { | 882 | if templ_7745c5c3_Err != nil { | ||
| 918 | return templ_7745c5c3_Err | 883 | return templ_7745c5c3_Err | ||
| 919 | } | 884 | } | ||
| 920 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 79, "</section>") | 885 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 78, "</section>") |
| 921 | if templ_7745c5c3_Err != nil { | 886 | if templ_7745c5c3_Err != nil { | ||
| 922 | return templ_7745c5c3_Err | 887 | return templ_7745c5c3_Err | ||
| 923 | } | 888 | } | ||
| @@ -943,236 +908,236 @@ func FileList(files []DiffFile) templ.Component { | |||||
| 943 | }() | 908 | }() | ||
| 944 | } | 909 | } | ||
| 945 | ctx = templ.InitializeContext(ctx) | 910 | ctx = templ.InitializeContext(ctx) | ||
| 946 | - | templ_7745c5c3_Var42 := templ.GetChildren(ctx) | 911 | + | templ_7745c5c3_Var41 := templ.GetChildren(ctx) |
| 947 | - | if templ_7745c5c3_Var42 == nil { | 912 | + | if templ_7745c5c3_Var41 == nil { |
| 948 | - | templ_7745c5c3_Var42 = templ.NopComponent | 913 | + | templ_7745c5c3_Var41 = templ.NopComponent |
| 949 | } | 914 | } | ||
| 950 | ctx = templ.ClearChildren(ctx) | 915 | ctx = templ.ClearChildren(ctx) | ||
| 951 | if len(files) > fileFilterMin { | 916 | if len(files) > fileFilterMin { | ||
| 952 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 80, "<div class=\"ffilter\"><label for=\"files-filter\" class=\"sr\">filter the changed files</label> <input id=\"files-filter\" type=\"search\" placeholder=\"Filter files…\" autocomplete=\"off\" data-pick=\".files > li\" hx-on:input=\"ermite.filter(this)\"></div>") | 917 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 79, "<div class=\"ffilter\"><label for=\"files-filter\" class=\"sr\">filter the changed files</label> <input id=\"files-filter\" type=\"search\" placeholder=\"Filter files…\" autocomplete=\"off\" data-pick=\".files > li\" hx-on:input=\"ermite.filter(this)\"></div>") |
| 953 | if templ_7745c5c3_Err != nil { | 918 | if templ_7745c5c3_Err != nil { | ||
| 954 | return templ_7745c5c3_Err | 919 | return templ_7745c5c3_Err | ||
| 955 | } | 920 | } | ||
| 956 | } | 921 | } | ||
| 957 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 81, "<ol class=\"files\" aria-label=\"Changed files\">") | 922 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 80, "<ol class=\"files\" aria-label=\"Changed files\">") |
| 958 | if templ_7745c5c3_Err != nil { | 923 | if templ_7745c5c3_Err != nil { | ||
| 959 | return templ_7745c5c3_Err | 924 | return templ_7745c5c3_Err | ||
| 960 | } | 925 | } | ||
| 961 | for _, f := range files { | 926 | for _, f := range files { | ||
| 962 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 82, "<li><a href=\"") | 927 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 81, "<li><a href=\"") |
| 963 | if templ_7745c5c3_Err != nil { | 928 | if templ_7745c5c3_Err != nil { | ||
| 964 | return templ_7745c5c3_Err | 929 | return templ_7745c5c3_Err | ||
| 965 | } | 930 | } | ||
| 966 | - | var templ_7745c5c3_Var43 templ.SafeURL | 931 | + | var templ_7745c5c3_Var42 templ.SafeURL |
| 967 | - | templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL("#" + f.ID)) | 932 | + | templ_7745c5c3_Var42, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL("#" + f.ID)) |
| 968 | if templ_7745c5c3_Err != nil { | 933 | if templ_7745c5c3_Err != nil { | ||
| 969 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 203, Col: 37} | 934 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 194, Col: 37} |
| 970 | } | 935 | } | ||
| 971 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var43)) | 936 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var42)) |
| 972 | if templ_7745c5c3_Err != nil { | 937 | if templ_7745c5c3_Err != nil { | ||
| 973 | return templ_7745c5c3_Err | 938 | return templ_7745c5c3_Err | ||
| 974 | } | 939 | } | ||
| 975 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 83, "\" title=\"") | 940 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 82, "\" title=\"") |
| 941 | + | if templ_7745c5c3_Err != nil { | |||
| 942 | + | return templ_7745c5c3_Err | |||
| 943 | + | } | |||
| 944 | + | var templ_7745c5c3_Var43 string | |||
| 945 | + | templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | |||
| 946 | + | if templ_7745c5c3_Err != nil { | |||
| 947 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 195, Col: 19} | |||
| 948 | + | } | |||
| 949 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var43) | |||
| 950 | + | if templ_7745c5c3_Err != nil { | |||
| 951 | + | return templ_7745c5c3_Err | |||
| 952 | + | } | |||
| 953 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 83, "\" hx-on:click=\"(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))\"><span class=\"st\" data-st=\"") | |||
| 976 | if templ_7745c5c3_Err != nil { | 954 | if templ_7745c5c3_Err != nil { | ||
| 977 | return templ_7745c5c3_Err | 955 | return templ_7745c5c3_Err | ||
| 978 | } | 956 | } | ||
| 979 | var templ_7745c5c3_Var44 string | 957 | var templ_7745c5c3_Var44 string | ||
| 980 | - | templ_7745c5c3_Var44, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | 958 | + | templ_7745c5c3_Var44, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Status) |
| 981 | if templ_7745c5c3_Err != nil { | 959 | if templ_7745c5c3_Err != nil { | ||
| 982 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 204, Col: 19} | 960 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 198, Col: 40} |
| 983 | } | 961 | } | ||
| 984 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var44) | 962 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var44) | ||
| 985 | if templ_7745c5c3_Err != nil { | 963 | if templ_7745c5c3_Err != nil { | ||
| 986 | return templ_7745c5c3_Err | 964 | return templ_7745c5c3_Err | ||
| 987 | } | 965 | } | ||
| 988 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 84, "\" hx-on:click=\"(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))\"><span class=\"st\" data-st=\"") | 966 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 84, "\" title=\"") |
| 989 | if templ_7745c5c3_Err != nil { | 967 | if templ_7745c5c3_Err != nil { | ||
| 990 | return templ_7745c5c3_Err | 968 | return templ_7745c5c3_Err | ||
| 991 | } | 969 | } | ||
| 992 | var templ_7745c5c3_Var45 string | 970 | var templ_7745c5c3_Var45 string | ||
| 993 | - | templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Status) | 971 | + | templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.ResolveAttributeValue(statusName(f.Status)) |
| 994 | if templ_7745c5c3_Err != nil { | 972 | if templ_7745c5c3_Err != nil { | ||
| 995 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 207, Col: 40} | 973 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 198, Col: 71} |
| 996 | } | 974 | } | ||
| 997 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var45) | 975 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var45) | ||
| 998 | if templ_7745c5c3_Err != nil { | 976 | if templ_7745c5c3_Err != nil { | ||
| 999 | return templ_7745c5c3_Err | 977 | return templ_7745c5c3_Err | ||
| 1000 | } | 978 | } | ||
| 1001 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 85, "\" title=\"") | 979 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 85, "\">") |
| 1002 | if templ_7745c5c3_Err != nil { | 980 | if templ_7745c5c3_Err != nil { | ||
| 1003 | return templ_7745c5c3_Err | 981 | return templ_7745c5c3_Err | ||
| 1004 | } | 982 | } | ||
| 1005 | var templ_7745c5c3_Var46 string | 983 | var templ_7745c5c3_Var46 string | ||
| 1006 | - | templ_7745c5c3_Var46, templ_7745c5c3_Err = templ.ResolveAttributeValue(statusName(f.Status)) | 984 | + | templ_7745c5c3_Var46, templ_7745c5c3_Err = templ.JoinStringErrs(f.Status) |
| 1007 | if templ_7745c5c3_Err != nil { | 985 | if templ_7745c5c3_Err != nil { | ||
| 1008 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 207, Col: 71} | 986 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 198, Col: 84} |
| 1009 | } | 987 | } | ||
| 1010 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var46) | 988 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var46)) |
| 1011 | if templ_7745c5c3_Err != nil { | 989 | if templ_7745c5c3_Err != nil { | ||
| 1012 | return templ_7745c5c3_Err | 990 | return templ_7745c5c3_Err | ||
| 1013 | } | 991 | } | ||
| 1014 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 86, "\">") | 992 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 86, "</span> <span class=\"nm\"><span class=\"p\">") |
| 1015 | if templ_7745c5c3_Err != nil { | 993 | if templ_7745c5c3_Err != nil { | ||
| 1016 | return templ_7745c5c3_Err | 994 | return templ_7745c5c3_Err | ||
| 1017 | } | 995 | } | ||
| 1018 | var templ_7745c5c3_Var47 string | 996 | var templ_7745c5c3_Var47 string | ||
| 1019 | - | templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(f.Status) | 997 | + | templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(f.Name) |
| 1020 | if templ_7745c5c3_Err != nil { | 998 | if templ_7745c5c3_Err != nil { | ||
| 1021 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 207, Col: 84} | 999 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 199, Col: 46} |
| 1022 | } | 1000 | } | ||
| 1023 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var47)) | 1001 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var47)) | ||
| 1024 | if templ_7745c5c3_Err != nil { | 1002 | if templ_7745c5c3_Err != nil { | ||
| 1025 | return templ_7745c5c3_Err | 1003 | return templ_7745c5c3_Err | ||
| 1026 | } | 1004 | } | ||
| 1027 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 87, "</span> <span class=\"nm\"><span class=\"p\">") | 1005 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 87, "</span>") |
| 1028 | if templ_7745c5c3_Err != nil { | 1006 | if templ_7745c5c3_Err != nil { | ||
| 1029 | return templ_7745c5c3_Err | 1007 | return templ_7745c5c3_Err | ||
| 1030 | } | 1008 | } | ||
| 1031 | var templ_7745c5c3_Var48 string | 1009 | var templ_7745c5c3_Var48 string | ||
| 1032 | - | templ_7745c5c3_Var48, templ_7745c5c3_Err = templ.JoinStringErrs(f.Name) | 1010 | + | templ_7745c5c3_Var48, templ_7745c5c3_Err = templ.JoinStringErrs(" ") |
| 1033 | if templ_7745c5c3_Err != nil { | 1011 | if templ_7745c5c3_Err != nil { | ||
| 1034 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 46} | 1012 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 199, Col: 60} |
| 1035 | } | 1013 | } | ||
| 1036 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var48)) | 1014 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var48)) | ||
| 1037 | if templ_7745c5c3_Err != nil { | 1015 | if templ_7745c5c3_Err != nil { | ||
| 1038 | return templ_7745c5c3_Err | 1016 | return templ_7745c5c3_Err | ||
| 1039 | } | 1017 | } | ||
| 1040 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 88, "</span>") | 1018 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 88, "<span class=\"d\"><bdi>") |
| 1041 | if templ_7745c5c3_Err != nil { | 1019 | if templ_7745c5c3_Err != nil { | ||
| 1042 | return templ_7745c5c3_Err | 1020 | return templ_7745c5c3_Err | ||
| 1043 | } | 1021 | } | ||
| 1044 | var templ_7745c5c3_Var49 string | 1022 | var templ_7745c5c3_Var49 string | ||
| 1045 | - | templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1023 | + | templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.JoinStringErrs(f.Dir) |
| 1046 | if templ_7745c5c3_Err != nil { | 1024 | if templ_7745c5c3_Err != nil { | ||
| 1047 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 60} | 1025 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 199, Col: 90} |
| 1048 | } | 1026 | } | ||
| 1049 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var49)) | 1027 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var49)) | ||
| 1050 | if templ_7745c5c3_Err != nil { | 1028 | if templ_7745c5c3_Err != nil { | ||
| 1051 | return templ_7745c5c3_Err | 1029 | return templ_7745c5c3_Err | ||
| 1052 | } | 1030 | } | ||
| 1053 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 89, "<span class=\"d\"><bdi>") | 1031 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 89, "</bdi></span></span> ") |
| 1054 | - | if templ_7745c5c3_Err != nil { | |||
| 1055 | - | return templ_7745c5c3_Err | |||
| 1056 | - | } | |||
| 1057 | - | var templ_7745c5c3_Var50 string | |||
| 1058 | - | templ_7745c5c3_Var50, templ_7745c5c3_Err = templ.JoinStringErrs(f.Dir) | |||
| 1059 | - | if templ_7745c5c3_Err != nil { | |||
| 1060 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 90} | |||
| 1061 | - | } | |||
| 1062 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var50)) | |||
| 1063 | - | if templ_7745c5c3_Err != nil { | |||
| 1064 | - | return templ_7745c5c3_Err | |||
| 1065 | - | } | |||
| 1066 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 90, "</bdi></span></span> ") | |||
| 1067 | if templ_7745c5c3_Err != nil { | 1032 | if templ_7745c5c3_Err != nil { | ||
| 1068 | return templ_7745c5c3_Err | 1033 | return templ_7745c5c3_Err | ||
| 1069 | } | 1034 | } | ||
| 1070 | if f.OpenNotes > 0 { | 1035 | if f.OpenNotes > 0 { | ||
| 1071 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 91, "<span class=\"cn\" title=\"") | 1036 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 90, "<span class=\"cn\" title=\"") |
| 1072 | if templ_7745c5c3_Err != nil { | 1037 | if templ_7745c5c3_Err != nil { | ||
| 1073 | return templ_7745c5c3_Err | 1038 | return templ_7745c5c3_Err | ||
| 1074 | } | 1039 | } | ||
| 1075 | - | var templ_7745c5c3_Var51 string | 1040 | + | var templ_7745c5c3_Var50 string |
| 1076 | - | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.ResolveAttributeValue(plural(f.OpenNotes, "open comment", "open comments")) | 1041 | + | templ_7745c5c3_Var50, templ_7745c5c3_Err = templ.ResolveAttributeValue(plural(f.OpenNotes, "open comment", "open comments")) |
| 1077 | if templ_7745c5c3_Err != nil { | 1042 | if templ_7745c5c3_Err != nil { | ||
| 1078 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 210, Col: 83} | 1043 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 201, Col: 83} |
| 1079 | } | 1044 | } | ||
| 1080 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var51) | 1045 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var50) |
| 1081 | if templ_7745c5c3_Err != nil { | 1046 | if templ_7745c5c3_Err != nil { | ||
| 1082 | return templ_7745c5c3_Err | 1047 | return templ_7745c5c3_Err | ||
| 1083 | } | 1048 | } | ||
| 1084 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 92, "\">") | 1049 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 91, "\">") |
| 1085 | if templ_7745c5c3_Err != nil { | 1050 | if templ_7745c5c3_Err != nil { | ||
| 1086 | return templ_7745c5c3_Err | 1051 | return templ_7745c5c3_Err | ||
| 1087 | } | 1052 | } | ||
| 1088 | - | var templ_7745c5c3_Var52 string | 1053 | + | var templ_7745c5c3_Var51 string |
| 1089 | - | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.OpenNotes)) | 1054 | + | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.OpenNotes)) |
| 1090 | if templ_7745c5c3_Err != nil { | 1055 | if templ_7745c5c3_Err != nil { | ||
| 1091 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 210, Col: 105} | 1056 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 201, Col: 105} |
| 1092 | } | 1057 | } | ||
| 1093 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var52)) | 1058 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var51)) |
| 1094 | if templ_7745c5c3_Err != nil { | 1059 | if templ_7745c5c3_Err != nil { | ||
| 1095 | return templ_7745c5c3_Err | 1060 | return templ_7745c5c3_Err | ||
| 1096 | } | 1061 | } | ||
| 1097 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 93, "</span> ") | 1062 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 92, "</span> ") |
| 1098 | if templ_7745c5c3_Err != nil { | 1063 | if templ_7745c5c3_Err != nil { | ||
| 1099 | return templ_7745c5c3_Err | 1064 | return templ_7745c5c3_Err | ||
| 1100 | } | 1065 | } | ||
| 1101 | } else if f.Notes > 0 { | 1066 | } else if f.Notes > 0 { | ||
| 1102 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 94, "<span class=\"cn done\" title=\"") | 1067 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 93, "<span class=\"cn done\" title=\"") |
| 1103 | if templ_7745c5c3_Err != nil { | 1068 | if templ_7745c5c3_Err != nil { | ||
| 1104 | return templ_7745c5c3_Err | 1069 | return templ_7745c5c3_Err | ||
| 1105 | } | 1070 | } | ||
| 1106 | - | var templ_7745c5c3_Var53 string | 1071 | + | var templ_7745c5c3_Var52 string |
| 1107 | - | templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.ResolveAttributeValue(plural(f.Notes, "resolved comment", "resolved comments")) | 1072 | + | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.ResolveAttributeValue(plural(f.Notes, "resolved comment", "resolved comments")) |
| 1108 | if templ_7745c5c3_Err != nil { | 1073 | if templ_7745c5c3_Err != nil { | ||
| 1109 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 212, Col: 92} | 1074 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 203, Col: 92} |
| 1110 | } | 1075 | } | ||
| 1111 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var53) | 1076 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var52) |
| 1112 | if templ_7745c5c3_Err != nil { | 1077 | if templ_7745c5c3_Err != nil { | ||
| 1113 | return templ_7745c5c3_Err | 1078 | return templ_7745c5c3_Err | ||
| 1114 | } | 1079 | } | ||
| 1115 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 95, "\">") | 1080 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 94, "\">") |
| 1116 | if templ_7745c5c3_Err != nil { | 1081 | if templ_7745c5c3_Err != nil { | ||
| 1117 | return templ_7745c5c3_Err | 1082 | return templ_7745c5c3_Err | ||
| 1118 | } | 1083 | } | ||
| 1119 | - | var templ_7745c5c3_Var54 string | 1084 | + | var templ_7745c5c3_Var53 string |
| 1120 | - | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Notes)) | 1085 | + | templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Notes)) |
| 1121 | if templ_7745c5c3_Err != nil { | 1086 | if templ_7745c5c3_Err != nil { | ||
| 1122 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 212, Col: 110} | 1087 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 203, Col: 110} |
| 1123 | } | 1088 | } | ||
| 1124 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | 1089 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var53)) |
| 1125 | if templ_7745c5c3_Err != nil { | 1090 | if templ_7745c5c3_Err != nil { | ||
| 1126 | return templ_7745c5c3_Err | 1091 | return templ_7745c5c3_Err | ||
| 1127 | } | 1092 | } | ||
| 1128 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 96, "</span> ") | 1093 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 95, "</span> ") |
| 1129 | if templ_7745c5c3_Err != nil { | 1094 | if templ_7745c5c3_Err != nil { | ||
| 1130 | return templ_7745c5c3_Err | 1095 | return templ_7745c5c3_Err | ||
| 1131 | } | 1096 | } | ||
| 1132 | } | 1097 | } | ||
| 1133 | if f.Bin { | 1098 | if f.Bin { | ||
| 1134 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 97, "<span class=\"n mute\">bin</span>") | 1099 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 96, "<span class=\"n mute\">bin</span>") |
| 1135 | if templ_7745c5c3_Err != nil { | 1100 | if templ_7745c5c3_Err != nil { | ||
| 1136 | return templ_7745c5c3_Err | 1101 | return templ_7745c5c3_Err | ||
| 1137 | } | 1102 | } | ||
| 1138 | } else { | 1103 | } else { | ||
| 1139 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 98, "<span class=\"n\"><span class=\"plus\">+") | 1104 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 97, "<span class=\"n\"><span class=\"plus\">+") |
| 1140 | if templ_7745c5c3_Err != nil { | 1105 | if templ_7745c5c3_Err != nil { | ||
| 1141 | return templ_7745c5c3_Err | 1106 | return templ_7745c5c3_Err | ||
| 1142 | } | 1107 | } | ||
| 1143 | - | var templ_7745c5c3_Var55 string | 1108 | + | var templ_7745c5c3_Var54 string |
| 1144 | - | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Add)) | 1109 | + | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Add)) |
| 1145 | if templ_7745c5c3_Err != nil { | 1110 | if templ_7745c5c3_Err != nil { | ||
| 1146 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 217, Col: 55} | 1111 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 55} |
| 1147 | } | 1112 | } | ||
| 1148 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) | 1113 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) |
| 1149 | if templ_7745c5c3_Err != nil { | 1114 | if templ_7745c5c3_Err != nil { | ||
| 1150 | return templ_7745c5c3_Err | 1115 | return templ_7745c5c3_Err | ||
| 1151 | } | 1116 | } | ||
| 1152 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, "</span> <span class=\"minus\">-") | 1117 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 98, "</span> <span class=\"minus\">-") |
| 1153 | if templ_7745c5c3_Err != nil { | 1118 | if templ_7745c5c3_Err != nil { | ||
| 1154 | return templ_7745c5c3_Err | 1119 | return templ_7745c5c3_Err | ||
| 1155 | } | 1120 | } | ||
| 1156 | - | var templ_7745c5c3_Var56 string | 1121 | + | var templ_7745c5c3_Var55 string |
| 1157 | - | templ_7745c5c3_Var56, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Del)) | 1122 | + | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Del)) |
| 1158 | if templ_7745c5c3_Err != nil { | 1123 | if templ_7745c5c3_Err != nil { | ||
| 1159 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 217, Col: 99} | 1124 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 208, Col: 99} |
| 1160 | } | 1125 | } | ||
| 1161 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var56)) | 1126 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) |
| 1162 | if templ_7745c5c3_Err != nil { | 1127 | if templ_7745c5c3_Err != nil { | ||
| 1163 | return templ_7745c5c3_Err | 1128 | return templ_7745c5c3_Err | ||
| 1164 | } | 1129 | } | ||
| 1165 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 100, "</span></span>") | 1130 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, "</span></span>") |
| 1166 | if templ_7745c5c3_Err != nil { | 1131 | if templ_7745c5c3_Err != nil { | ||
| 1167 | return templ_7745c5c3_Err | 1132 | return templ_7745c5c3_Err | ||
| 1168 | } | 1133 | } | ||
| 1169 | } | 1134 | } | ||
| 1170 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 101, "</a></li>") | 1135 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 100, "</a></li>") |
| 1171 | if templ_7745c5c3_Err != nil { | 1136 | if templ_7745c5c3_Err != nil { | ||
| 1172 | return templ_7745c5c3_Err | 1137 | return templ_7745c5c3_Err | ||
| 1173 | } | 1138 | } | ||
| 1174 | } | 1139 | } | ||
| 1175 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 102, "</ol>") | 1140 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 101, "</ol>") |
| 1176 | if templ_7745c5c3_Err != nil { | 1141 | if templ_7745c5c3_Err != nil { | ||
| 1177 | return templ_7745c5c3_Err | 1142 | return templ_7745c5c3_Err | ||
| 1178 | } | 1143 | } | ||
| @@ -1200,270 +1165,270 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1200 | }() | 1165 | }() | ||
| 1201 | } | 1166 | } | ||
| 1202 | ctx = templ.InitializeContext(ctx) | 1167 | ctx = templ.InitializeContext(ctx) | ||
| 1203 | - | templ_7745c5c3_Var57 := templ.GetChildren(ctx) | 1168 | + | templ_7745c5c3_Var56 := templ.GetChildren(ctx) |
| 1204 | - | if templ_7745c5c3_Var57 == nil { | 1169 | + | if templ_7745c5c3_Var56 == nil { |
| 1205 | - | templ_7745c5c3_Var57 = templ.NopComponent | 1170 | + | templ_7745c5c3_Var56 = templ.NopComponent |
| 1206 | } | 1171 | } | ||
| 1207 | ctx = templ.ClearChildren(ctx) | 1172 | ctx = templ.ClearChildren(ctx) | ||
| 1208 | - | var templ_7745c5c3_Var58 = []any{"dfile", "lnw-" + itoa(f.Digits)} | 1173 | + | var templ_7745c5c3_Var57 = []any{"dfile", "lnw-" + itoa(f.Digits)} |
| 1209 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var58...) | 1174 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var57...) |
| 1210 | if templ_7745c5c3_Err != nil { | 1175 | if templ_7745c5c3_Err != nil { | ||
| 1211 | return templ_7745c5c3_Err | 1176 | return templ_7745c5c3_Err | ||
| 1212 | } | 1177 | } | ||
| 1213 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 103, "<details class=\"") | 1178 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 102, "<details class=\"") |
| 1214 | if templ_7745c5c3_Err != nil { | 1179 | if templ_7745c5c3_Err != nil { | ||
| 1215 | return templ_7745c5c3_Err | 1180 | return templ_7745c5c3_Err | ||
| 1216 | } | 1181 | } | ||
| 1217 | - | var templ_7745c5c3_Var59 string | 1182 | + | var templ_7745c5c3_Var58 string |
| 1218 | - | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var58).String()) | 1183 | + | templ_7745c5c3_Var58, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var57).String()) |
| 1219 | if templ_7745c5c3_Err != nil { | 1184 | if templ_7745c5c3_Err != nil { | ||
| 1220 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | 1185 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | ||
| 1221 | } | 1186 | } | ||
| 1222 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var59) | 1187 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var58) |
| 1223 | if templ_7745c5c3_Err != nil { | 1188 | if templ_7745c5c3_Err != nil { | ||
| 1224 | return templ_7745c5c3_Err | 1189 | return templ_7745c5c3_Err | ||
| 1225 | } | 1190 | } | ||
| 1226 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 104, "\" id=\"") | 1191 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 103, "\" id=\"") |
| 1227 | if templ_7745c5c3_Err != nil { | 1192 | if templ_7745c5c3_Err != nil { | ||
| 1228 | return templ_7745c5c3_Err | 1193 | return templ_7745c5c3_Err | ||
| 1229 | } | 1194 | } | ||
| 1230 | - | var templ_7745c5c3_Var60 string | 1195 | + | var templ_7745c5c3_Var59 string |
| 1231 | - | templ_7745c5c3_Var60, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID) | 1196 | + | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID) |
| 1232 | if templ_7745c5c3_Err != nil { | 1197 | if templ_7745c5c3_Err != nil { | ||
| 1233 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 232, Col: 11} | 1198 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 223, Col: 11} |
| 1234 | } | 1199 | } | ||
| 1235 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var60) | 1200 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var59) |
| 1236 | if templ_7745c5c3_Err != nil { | 1201 | if templ_7745c5c3_Err != nil { | ||
| 1237 | return templ_7745c5c3_Err | 1202 | return templ_7745c5c3_Err | ||
| 1238 | } | 1203 | } | ||
| 1239 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 105, "\" data-file") | 1204 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 104, "\" data-file") |
| 1240 | if templ_7745c5c3_Err != nil { | 1205 | if templ_7745c5c3_Err != nil { | ||
| 1241 | return templ_7745c5c3_Err | 1206 | return templ_7745c5c3_Err | ||
| 1242 | } | 1207 | } | ||
| 1243 | if f.Open { | 1208 | if f.Open { | ||
| 1244 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 106, " open") | 1209 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 105, " open") |
| 1245 | if templ_7745c5c3_Err != nil { | 1210 | if templ_7745c5c3_Err != nil { | ||
| 1246 | return templ_7745c5c3_Err | 1211 | return templ_7745c5c3_Err | ||
| 1247 | } | 1212 | } | ||
| 1248 | } | 1213 | } | ||
| 1249 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 107, "><summary><span class=\"st\">") | 1214 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 106, "><summary><span class=\"st\">") |
| 1215 | + | if templ_7745c5c3_Err != nil { | |||
| 1216 | + | return templ_7745c5c3_Err | |||
| 1217 | + | } | |||
| 1218 | + | var templ_7745c5c3_Var60 string | |||
| 1219 | + | templ_7745c5c3_Var60, templ_7745c5c3_Err = templ.JoinStringErrs(f.Status) | |||
| 1220 | + | if templ_7745c5c3_Err != nil { | |||
| 1221 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 30} | |||
| 1222 | + | } | |||
| 1223 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var60)) | |||
| 1224 | + | if templ_7745c5c3_Err != nil { | |||
| 1225 | + | return templ_7745c5c3_Err | |||
| 1226 | + | } | |||
| 1227 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 107, "</span>") | |||
| 1250 | if templ_7745c5c3_Err != nil { | 1228 | if templ_7745c5c3_Err != nil { | ||
| 1251 | return templ_7745c5c3_Err | 1229 | return templ_7745c5c3_Err | ||
| 1252 | } | 1230 | } | ||
| 1253 | var templ_7745c5c3_Var61 string | 1231 | var templ_7745c5c3_Var61 string | ||
| 1254 | - | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.JoinStringErrs(f.Status) | 1232 | + | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.JoinStringErrs(" ") |
| 1255 | if templ_7745c5c3_Err != nil { | 1233 | if templ_7745c5c3_Err != nil { | ||
| 1256 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 30} | 1234 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 44} |
| 1257 | } | 1235 | } | ||
| 1258 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var61)) | 1236 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var61)) | ||
| 1259 | if templ_7745c5c3_Err != nil { | 1237 | if templ_7745c5c3_Err != nil { | ||
| 1260 | return templ_7745c5c3_Err | 1238 | return templ_7745c5c3_Err | ||
| 1261 | } | 1239 | } | ||
| 1262 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 108, "</span>") | 1240 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 108, "<span class=\"p\">") |
| 1263 | if templ_7745c5c3_Err != nil { | 1241 | if templ_7745c5c3_Err != nil { | ||
| 1264 | return templ_7745c5c3_Err | 1242 | return templ_7745c5c3_Err | ||
| 1265 | } | 1243 | } | ||
| 1266 | var templ_7745c5c3_Var62 string | 1244 | var templ_7745c5c3_Var62 string | ||
| 1267 | - | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1245 | + | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.JoinStringErrs(f.Path) |
| 1268 | if templ_7745c5c3_Err != nil { | 1246 | if templ_7745c5c3_Err != nil { | ||
| 1269 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 44} | 1247 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 70} |
| 1270 | } | 1248 | } | ||
| 1271 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var62)) | 1249 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var62)) | ||
| 1272 | if templ_7745c5c3_Err != nil { | 1250 | if templ_7745c5c3_Err != nil { | ||
| 1273 | return templ_7745c5c3_Err | 1251 | return templ_7745c5c3_Err | ||
| 1274 | } | 1252 | } | ||
| 1275 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 109, "<span class=\"p\">") | 1253 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 109, "</span>") |
| 1276 | if templ_7745c5c3_Err != nil { | 1254 | if templ_7745c5c3_Err != nil { | ||
| 1277 | return templ_7745c5c3_Err | 1255 | return templ_7745c5c3_Err | ||
| 1278 | } | 1256 | } | ||
| 1279 | var templ_7745c5c3_Var63 string | 1257 | var templ_7745c5c3_Var63 string | ||
| 1280 | - | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.JoinStringErrs(f.Path) | 1258 | + | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.JoinStringErrs(" ") |
| 1281 | if templ_7745c5c3_Err != nil { | 1259 | if templ_7745c5c3_Err != nil { | ||
| 1282 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 70} | 1260 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 84} |
| 1283 | } | 1261 | } | ||
| 1284 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var63)) | 1262 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var63)) | ||
| 1285 | if templ_7745c5c3_Err != nil { | 1263 | if templ_7745c5c3_Err != nil { | ||
| 1286 | return templ_7745c5c3_Err | 1264 | return templ_7745c5c3_Err | ||
| 1287 | } | 1265 | } | ||
| 1288 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 110, "</span>") | 1266 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 110, "<span class=\"plus\">+") |
| 1289 | if templ_7745c5c3_Err != nil { | 1267 | if templ_7745c5c3_Err != nil { | ||
| 1290 | return templ_7745c5c3_Err | 1268 | return templ_7745c5c3_Err | ||
| 1291 | } | 1269 | } | ||
| 1292 | var templ_7745c5c3_Var64 string | 1270 | var templ_7745c5c3_Var64 string | ||
| 1293 | - | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1271 | + | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Add)) |
| 1294 | if templ_7745c5c3_Err != nil { | 1272 | if templ_7745c5c3_Err != nil { | ||
| 1295 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 84} | 1273 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 119} |
| 1296 | } | 1274 | } | ||
| 1297 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var64)) | 1275 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var64)) | ||
| 1298 | if templ_7745c5c3_Err != nil { | 1276 | if templ_7745c5c3_Err != nil { | ||
| 1299 | return templ_7745c5c3_Err | 1277 | return templ_7745c5c3_Err | ||
| 1300 | } | 1278 | } | ||
| 1301 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 111, "<span class=\"plus\">+") | 1279 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 111, "</span>") |
| 1302 | if templ_7745c5c3_Err != nil { | 1280 | if templ_7745c5c3_Err != nil { | ||
| 1303 | return templ_7745c5c3_Err | 1281 | return templ_7745c5c3_Err | ||
| 1304 | } | 1282 | } | ||
| 1305 | var templ_7745c5c3_Var65 string | 1283 | var templ_7745c5c3_Var65 string | ||
| 1306 | - | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Add)) | 1284 | + | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(" ") |
| 1307 | if templ_7745c5c3_Err != nil { | 1285 | if templ_7745c5c3_Err != nil { | ||
| 1308 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 119} | 1286 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 133} |
| 1309 | } | 1287 | } | ||
| 1310 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var65)) | 1288 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var65)) | ||
| 1311 | if templ_7745c5c3_Err != nil { | 1289 | if templ_7745c5c3_Err != nil { | ||
| 1312 | return templ_7745c5c3_Err | 1290 | return templ_7745c5c3_Err | ||
| 1313 | } | 1291 | } | ||
| 1314 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "</span>") | 1292 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "<span class=\"minus\">-") |
| 1315 | if templ_7745c5c3_Err != nil { | 1293 | if templ_7745c5c3_Err != nil { | ||
| 1316 | return templ_7745c5c3_Err | 1294 | return templ_7745c5c3_Err | ||
| 1317 | } | 1295 | } | ||
| 1318 | var templ_7745c5c3_Var66 string | 1296 | var templ_7745c5c3_Var66 string | ||
| 1319 | - | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1297 | + | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Del)) |
| 1320 | if templ_7745c5c3_Err != nil { | 1298 | if templ_7745c5c3_Err != nil { | ||
| 1321 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 133} | 1299 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 230, Col: 169} |
| 1322 | } | 1300 | } | ||
| 1323 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var66)) | 1301 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var66)) | ||
| 1324 | if templ_7745c5c3_Err != nil { | 1302 | if templ_7745c5c3_Err != nil { | ||
| 1325 | return templ_7745c5c3_Err | 1303 | return templ_7745c5c3_Err | ||
| 1326 | } | 1304 | } | ||
| 1327 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 113, "<span class=\"minus\">-") | 1305 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 113, "</span> ") |
| 1328 | - | if templ_7745c5c3_Err != nil { | |||
| 1329 | - | return templ_7745c5c3_Err | |||
| 1330 | - | } | |||
| 1331 | - | var templ_7745c5c3_Var67 string | |||
| 1332 | - | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(f.Del)) | |||
| 1333 | - | if templ_7745c5c3_Err != nil { | |||
| 1334 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 169} | |||
| 1335 | - | } | |||
| 1336 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) | |||
| 1337 | - | if templ_7745c5c3_Err != nil { | |||
| 1338 | - | return templ_7745c5c3_Err | |||
| 1339 | - | } | |||
| 1340 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 114, "</span> ") | |||
| 1341 | if templ_7745c5c3_Err != nil { | 1306 | if templ_7745c5c3_Err != nil { | ||
| 1342 | return templ_7745c5c3_Err | 1307 | return templ_7745c5c3_Err | ||
| 1343 | } | 1308 | } | ||
| 1344 | if f.Note != "" { | 1309 | if f.Note != "" { | ||
| 1345 | - | var templ_7745c5c3_Var68 string | 1310 | + | var templ_7745c5c3_Var67 string |
| 1346 | - | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1311 | + | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(" ") |
| 1347 | if templ_7745c5c3_Err != nil { | 1312 | if templ_7745c5c3_Err != nil { | ||
| 1348 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 241, Col: 9} | 1313 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 232, Col: 9} |
| 1349 | } | 1314 | } | ||
| 1350 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | 1315 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) |
| 1351 | if templ_7745c5c3_Err != nil { | 1316 | if templ_7745c5c3_Err != nil { | ||
| 1352 | return templ_7745c5c3_Err | 1317 | return templ_7745c5c3_Err | ||
| 1353 | } | 1318 | } | ||
| 1354 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 115, "<span class=\"note\">") | 1319 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 114, "<span class=\"note\">") |
| 1355 | if templ_7745c5c3_Err != nil { | 1320 | if templ_7745c5c3_Err != nil { | ||
| 1356 | return templ_7745c5c3_Err | 1321 | return templ_7745c5c3_Err | ||
| 1357 | } | 1322 | } | ||
| 1358 | - | var templ_7745c5c3_Var69 string | 1323 | + | var templ_7745c5c3_Var68 string |
| 1359 | - | templ_7745c5c3_Var69, templ_7745c5c3_Err = templ.JoinStringErrs(f.Note) | 1324 | + | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(f.Note) |
| 1360 | if templ_7745c5c3_Err != nil { | 1325 | if templ_7745c5c3_Err != nil { | ||
| 1361 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 241, Col: 38} | 1326 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 232, Col: 38} |
| 1362 | } | 1327 | } | ||
| 1363 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var69)) | 1328 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) |
| 1364 | if templ_7745c5c3_Err != nil { | 1329 | if templ_7745c5c3_Err != nil { | ||
| 1365 | return templ_7745c5c3_Err | 1330 | return templ_7745c5c3_Err | ||
| 1366 | } | 1331 | } | ||
| 1367 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 116, "</span>") | 1332 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 115, "</span>") |
| 1368 | if templ_7745c5c3_Err != nil { | 1333 | if templ_7745c5c3_Err != nil { | ||
| 1369 | return templ_7745c5c3_Err | 1334 | return templ_7745c5c3_Err | ||
| 1370 | } | 1335 | } | ||
| 1371 | } | 1336 | } | ||
| 1372 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, "</summary> ") | 1337 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 116, "</summary> ") |
| 1373 | if templ_7745c5c3_Err != nil { | 1338 | if templ_7745c5c3_Err != nil { | ||
| 1374 | return templ_7745c5c3_Err | 1339 | return templ_7745c5c3_Err | ||
| 1375 | } | 1340 | } | ||
| 1376 | if f.Lazy { | 1341 | if f.Lazy { | ||
| 1377 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 118, " ") | 1342 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, " ") |
| 1378 | if templ_7745c5c3_Err != nil { | 1343 | if templ_7745c5c3_Err != nil { | ||
| 1379 | return templ_7745c5c3_Err | 1344 | return templ_7745c5c3_Err | ||
| 1380 | } | 1345 | } | ||
| 1381 | - | var templ_7745c5c3_Var70 = []any{"dlazy", "dlazy-" + itoa(f.Height)} | 1346 | + | var templ_7745c5c3_Var69 = []any{"dlazy", "dlazy-" + itoa(f.Height)} |
| 1382 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var70...) | 1347 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var69...) |
| 1383 | if templ_7745c5c3_Err != nil { | 1348 | if templ_7745c5c3_Err != nil { | ||
| 1384 | return templ_7745c5c3_Err | 1349 | return templ_7745c5c3_Err | ||
| 1385 | } | 1350 | } | ||
| 1386 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 119, "<div class=\"") | 1351 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 118, "<div class=\"") |
| 1387 | if templ_7745c5c3_Err != nil { | 1352 | if templ_7745c5c3_Err != nil { | ||
| 1388 | return templ_7745c5c3_Err | 1353 | return templ_7745c5c3_Err | ||
| 1389 | } | 1354 | } | ||
| 1390 | - | var templ_7745c5c3_Var71 string | 1355 | + | var templ_7745c5c3_Var70 string |
| 1391 | - | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var70).String()) | 1356 | + | templ_7745c5c3_Var70, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var69).String()) |
| 1392 | if templ_7745c5c3_Err != nil { | 1357 | if templ_7745c5c3_Err != nil { | ||
| 1393 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | 1358 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | ||
| 1394 | } | 1359 | } | ||
| 1395 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var71) | 1360 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var70) |
| 1396 | if templ_7745c5c3_Err != nil { | 1361 | if templ_7745c5c3_Err != nil { | ||
| 1397 | return templ_7745c5c3_Err | 1362 | return templ_7745c5c3_Err | ||
| 1398 | } | 1363 | } | ||
| 1399 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 120, "\" data-src=\"") | 1364 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 119, "\" data-src=\"") |
| 1400 | if templ_7745c5c3_Err != nil { | 1365 | if templ_7745c5c3_Err != nil { | ||
| 1401 | return templ_7745c5c3_Err | 1366 | return templ_7745c5c3_Err | ||
| 1402 | } | 1367 | } | ||
| 1403 | - | var templ_7745c5c3_Var72 string | 1368 | + | var templ_7745c5c3_Var71 string |
| 1404 | - | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Src) | 1369 | + | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Src) |
| 1405 | if templ_7745c5c3_Err != nil { | 1370 | if templ_7745c5c3_Err != nil { | ||
| 1406 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 248, Col: 69} | 1371 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 69} |
| 1407 | } | 1372 | } | ||
| 1408 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var72) | 1373 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var71) |
| 1409 | if templ_7745c5c3_Err != nil { | 1374 | if templ_7745c5c3_Err != nil { | ||
| 1410 | return templ_7745c5c3_Err | 1375 | return templ_7745c5c3_Err | ||
| 1411 | } | 1376 | } | ||
| 1412 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 121, "\" data-notes=\"") | 1377 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 120, "\" data-notes=\"") |
| 1413 | if templ_7745c5c3_Err != nil { | 1378 | if templ_7745c5c3_Err != nil { | ||
| 1414 | return templ_7745c5c3_Err | 1379 | return templ_7745c5c3_Err | ||
| 1415 | } | 1380 | } | ||
| 1416 | - | var templ_7745c5c3_Var73 string | 1381 | + | var templ_7745c5c3_Var72 string |
| 1417 | - | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Comments) | 1382 | + | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Comments) |
| 1418 | if templ_7745c5c3_Err != nil { | 1383 | if templ_7745c5c3_Err != nil { | ||
| 1419 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 248, Col: 95} | 1384 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 239, Col: 95} |
| 1420 | } | 1385 | } | ||
| 1421 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var73) | 1386 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var72) |
| 1422 | if templ_7745c5c3_Err != nil { | 1387 | if templ_7745c5c3_Err != nil { | ||
| 1423 | return templ_7745c5c3_Err | 1388 | return templ_7745c5c3_Err | ||
| 1424 | } | 1389 | } | ||
| 1425 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 122, "\"><a href=\"") | 1390 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 121, "\"><a href=\"") |
| 1426 | if templ_7745c5c3_Err != nil { | 1391 | if templ_7745c5c3_Err != nil { | ||
| 1427 | return templ_7745c5c3_Err | 1392 | return templ_7745c5c3_Err | ||
| 1428 | } | 1393 | } | ||
| 1429 | - | var templ_7745c5c3_Var74 templ.SafeURL | 1394 | + | var templ_7745c5c3_Var73 templ.SafeURL |
| 1430 | - | templ_7745c5c3_Var74, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL("?from=" + itoa(f.From) + "#" + f.ID)) | 1395 | + | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL("?from=" + itoa(f.From) + "#" + f.ID)) |
| 1431 | if templ_7745c5c3_Err != nil { | 1396 | if templ_7745c5c3_Err != nil { | ||
| 1432 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 249, Col: 65} | 1397 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 240, Col: 65} |
| 1433 | } | 1398 | } | ||
| 1434 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var74)) | 1399 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) |
| 1435 | if templ_7745c5c3_Err != nil { | 1400 | if templ_7745c5c3_Err != nil { | ||
| 1436 | return templ_7745c5c3_Err | 1401 | return templ_7745c5c3_Err | ||
| 1437 | } | 1402 | } | ||
| 1438 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 123, "\">show this file</a></div>") | 1403 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 122, "\">show this file</a></div>") |
| 1439 | if templ_7745c5c3_Err != nil { | 1404 | if templ_7745c5c3_Err != nil { | ||
| 1440 | return templ_7745c5c3_Err | 1405 | return templ_7745c5c3_Err | ||
| 1441 | } | 1406 | } | ||
| 1442 | } else if len(f.Hunks) > 0 { | 1407 | } else if len(f.Hunks) > 0 { | ||
| 1443 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 124, "<div class=\"dscroll\">") | 1408 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 123, "<div class=\"dscroll\">") |
| 1444 | if templ_7745c5c3_Err != nil { | 1409 | if templ_7745c5c3_Err != nil { | ||
| 1445 | return templ_7745c5c3_Err | 1410 | return templ_7745c5c3_Err | ||
| 1446 | } | 1411 | } | ||
| 1447 | if p.ShowUnified { | 1412 | if p.ShowUnified { | ||
| 1448 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 125, "<table class=\"dt uni\" aria-label=\"") | 1413 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 124, "<table class=\"dt uni\" aria-label=\"") |
| 1449 | if templ_7745c5c3_Err != nil { | 1414 | if templ_7745c5c3_Err != nil { | ||
| 1450 | return templ_7745c5c3_Err | 1415 | return templ_7745c5c3_Err | ||
| 1451 | } | 1416 | } | ||
| 1452 | - | var templ_7745c5c3_Var75 string | 1417 | + | var templ_7745c5c3_Var74 string |
| 1453 | - | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path + ", unified") | 1418 | + | templ_7745c5c3_Var74, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path + ", unified") |
| 1454 | if templ_7745c5c3_Err != nil { | 1419 | if templ_7745c5c3_Err != nil { | ||
| 1455 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 254, Col: 60} | 1420 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 245, Col: 60} |
| 1456 | } | 1421 | } | ||
| 1457 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var75) | 1422 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var74) |
| 1458 | if templ_7745c5c3_Err != nil { | 1423 | if templ_7745c5c3_Err != nil { | ||
| 1459 | return templ_7745c5c3_Err | 1424 | return templ_7745c5c3_Err | ||
| 1460 | } | 1425 | } | ||
| 1461 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 126, "\">") | 1426 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 125, "\">") |
| 1462 | if templ_7745c5c3_Err != nil { | 1427 | if templ_7745c5c3_Err != nil { | ||
| 1463 | return templ_7745c5c3_Err | 1428 | return templ_7745c5c3_Err | ||
| 1464 | } | 1429 | } | ||
| 1465 | for _, h := range f.Hunks { | 1430 | for _, h := range f.Hunks { | ||
| 1466 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 127, "<tbody>") | 1431 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 126, "<tbody>") |
| 1467 | if templ_7745c5c3_Err != nil { | 1432 | if templ_7745c5c3_Err != nil { | ||
| 1468 | return templ_7745c5c3_Err | 1433 | return templ_7745c5c3_Err | ||
| 1469 | } | 1434 | } | ||
| @@ -1473,43 +1438,43 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1473 | return templ_7745c5c3_Err | 1438 | return templ_7745c5c3_Err | ||
| 1474 | } | 1439 | } | ||
| 1475 | } | 1440 | } | ||
| 1476 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 128, "<tr class=\"hunk\"><td colspan=\"4\">") | 1441 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 127, "<tr class=\"hunk\"><td colspan=\"4\">") |
| 1477 | if templ_7745c5c3_Err != nil { | 1442 | if templ_7745c5c3_Err != nil { | ||
| 1478 | return templ_7745c5c3_Err | 1443 | return templ_7745c5c3_Err | ||
| 1479 | } | 1444 | } | ||
| 1480 | - | var templ_7745c5c3_Var76 string | 1445 | + | var templ_7745c5c3_Var75 string |
| 1481 | - | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.JoinStringErrs(h.Header) | 1446 | + | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.JoinStringErrs(h.Header) |
| 1482 | if templ_7745c5c3_Err != nil { | 1447 | if templ_7745c5c3_Err != nil { | ||
| 1483 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 260, Col: 51} | 1448 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 251, Col: 51} |
| 1484 | } | 1449 | } | ||
| 1485 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var76)) | 1450 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var75)) |
| 1486 | if templ_7745c5c3_Err != nil { | 1451 | if templ_7745c5c3_Err != nil { | ||
| 1487 | return templ_7745c5c3_Err | 1452 | return templ_7745c5c3_Err | ||
| 1488 | } | 1453 | } | ||
| 1489 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 129, "</td></tr>") | 1454 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 128, "</td></tr>") |
| 1490 | if templ_7745c5c3_Err != nil { | 1455 | if templ_7745c5c3_Err != nil { | ||
| 1491 | return templ_7745c5c3_Err | 1456 | return templ_7745c5c3_Err | ||
| 1492 | } | 1457 | } | ||
| 1493 | for _, ln := range h.Lines { | 1458 | for _, ln := range h.Lines { | ||
| 1494 | - | var templ_7745c5c3_Var77 = []any{ln.Kind, templ.KV("sel", ln.Selected)} | 1459 | + | var templ_7745c5c3_Var76 = []any{ln.Kind, templ.KV("sel", ln.Selected)} |
| 1495 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var77...) | 1460 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var76...) |
| 1496 | if templ_7745c5c3_Err != nil { | 1461 | if templ_7745c5c3_Err != nil { | ||
| 1497 | return templ_7745c5c3_Err | 1462 | return templ_7745c5c3_Err | ||
| 1498 | } | 1463 | } | ||
| 1499 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 130, "<tr class=\"") | 1464 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 129, "<tr class=\"") |
| 1500 | if templ_7745c5c3_Err != nil { | 1465 | if templ_7745c5c3_Err != nil { | ||
| 1501 | return templ_7745c5c3_Err | 1466 | return templ_7745c5c3_Err | ||
| 1502 | } | 1467 | } | ||
| 1503 | - | var templ_7745c5c3_Var78 string | 1468 | + | var templ_7745c5c3_Var77 string |
| 1504 | - | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var77).String()) | 1469 | + | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var76).String()) |
| 1505 | if templ_7745c5c3_Err != nil { | 1470 | if templ_7745c5c3_Err != nil { | ||
| 1506 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | 1471 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | ||
| 1507 | } | 1472 | } | ||
| 1508 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var78) | 1473 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var77) |
| 1509 | if templ_7745c5c3_Err != nil { | 1474 | if templ_7745c5c3_Err != nil { | ||
| 1510 | return templ_7745c5c3_Err | 1475 | return templ_7745c5c3_Err | ||
| 1511 | } | 1476 | } | ||
| 1512 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 131, "\"><td class=\"ln\">") | 1477 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 130, "\"><td class=\"ln\">") |
| 1513 | if templ_7745c5c3_Err != nil { | 1478 | if templ_7745c5c3_Err != nil { | ||
| 1514 | return templ_7745c5c3_Err | 1479 | return templ_7745c5c3_Err | ||
| 1515 | } | 1480 | } | ||
| @@ -1517,7 +1482,7 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1517 | if templ_7745c5c3_Err != nil { | 1482 | if templ_7745c5c3_Err != nil { | ||
| 1518 | return templ_7745c5c3_Err | 1483 | return templ_7745c5c3_Err | ||
| 1519 | } | 1484 | } | ||
| 1520 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 132, "</td><td class=\"ln\">") | 1485 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 131, "</td><td class=\"ln\">") |
| 1521 | if templ_7745c5c3_Err != nil { | 1486 | if templ_7745c5c3_Err != nil { | ||
| 1522 | return templ_7745c5c3_Err | 1487 | return templ_7745c5c3_Err | ||
| 1523 | } | 1488 | } | ||
| @@ -1525,20 +1490,20 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1525 | if templ_7745c5c3_Err != nil { | 1490 | if templ_7745c5c3_Err != nil { | ||
| 1526 | return templ_7745c5c3_Err | 1491 | return templ_7745c5c3_Err | ||
| 1527 | } | 1492 | } | ||
| 1528 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 133, "</td><td class=\"m\">") | 1493 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 132, "</td><td class=\"m\">") |
| 1529 | if templ_7745c5c3_Err != nil { | 1494 | if templ_7745c5c3_Err != nil { | ||
| 1530 | return templ_7745c5c3_Err | 1495 | return templ_7745c5c3_Err | ||
| 1531 | } | 1496 | } | ||
| 1532 | - | var templ_7745c5c3_Var79 string | 1497 | + | var templ_7745c5c3_Var78 string |
| 1533 | - | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | 1498 | + | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) |
| 1534 | if templ_7745c5c3_Err != nil { | 1499 | if templ_7745c5c3_Err != nil { | ||
| 1535 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 265, Col: 33} | 1500 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 256, Col: 33} |
| 1536 | } | 1501 | } | ||
| 1537 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var79)) | 1502 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var78)) |
| 1538 | if templ_7745c5c3_Err != nil { | 1503 | if templ_7745c5c3_Err != nil { | ||
| 1539 | return templ_7745c5c3_Err | 1504 | return templ_7745c5c3_Err | ||
| 1540 | } | 1505 | } | ||
| 1541 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 134, "</td><td class=\"tx chroma\">") | 1506 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 133, "</td><td class=\"tx chroma\">") |
| 1542 | if templ_7745c5c3_Err != nil { | 1507 | if templ_7745c5c3_Err != nil { | ||
| 1543 | return templ_7745c5c3_Err | 1508 | return templ_7745c5c3_Err | ||
| 1544 | } | 1509 | } | ||
| @@ -1546,12 +1511,12 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1546 | if templ_7745c5c3_Err != nil { | 1511 | if templ_7745c5c3_Err != nil { | ||
| 1547 | return templ_7745c5c3_Err | 1512 | return templ_7745c5c3_Err | ||
| 1548 | } | 1513 | } | ||
| 1549 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 135, "</td></tr>") | 1514 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 134, "</td></tr>") |
| 1550 | if templ_7745c5c3_Err != nil { | 1515 | if templ_7745c5c3_Err != nil { | ||
| 1551 | return templ_7745c5c3_Err | 1516 | return templ_7745c5c3_Err | ||
| 1552 | } | 1517 | } | ||
| 1553 | if len(ln.Notes) > 0 || ln.Form != nil { | 1518 | if len(ln.Notes) > 0 || ln.Form != nil { | ||
| 1554 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 136, "<tr class=\"fnote\"><td colspan=\"3\"></td><td>") | 1519 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 135, "<tr class=\"fnote\"><td colspan=\"3\"></td><td>") |
| 1555 | if templ_7745c5c3_Err != nil { | 1520 | if templ_7745c5c3_Err != nil { | ||
| 1556 | return templ_7745c5c3_Err | 1521 | return templ_7745c5c3_Err | ||
| 1557 | } | 1522 | } | ||
| @@ -1559,19 +1524,19 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1559 | if templ_7745c5c3_Err != nil { | 1524 | if templ_7745c5c3_Err != nil { | ||
| 1560 | return templ_7745c5c3_Err | 1525 | return templ_7745c5c3_Err | ||
| 1561 | } | 1526 | } | ||
| 1562 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 137, "</td></tr>") | 1527 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 136, "</td></tr>") |
| 1563 | if templ_7745c5c3_Err != nil { | 1528 | if templ_7745c5c3_Err != nil { | ||
| 1564 | return templ_7745c5c3_Err | 1529 | return templ_7745c5c3_Err | ||
| 1565 | } | 1530 | } | ||
| 1566 | } | 1531 | } | ||
| 1567 | } | 1532 | } | ||
| 1568 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 138, "</tbody> ") | 1533 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 137, "</tbody> ") |
| 1569 | if templ_7745c5c3_Err != nil { | 1534 | if templ_7745c5c3_Err != nil { | ||
| 1570 | return templ_7745c5c3_Err | 1535 | return templ_7745c5c3_Err | ||
| 1571 | } | 1536 | } | ||
| 1572 | } | 1537 | } | ||
| 1573 | if f.Tail != nil { | 1538 | if f.Tail != nil { | ||
| 1574 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 139, "<tbody>") | 1539 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 138, "<tbody>") |
| 1575 | if templ_7745c5c3_Err != nil { | 1540 | if templ_7745c5c3_Err != nil { | ||
| 1576 | return templ_7745c5c3_Err | 1541 | return templ_7745c5c3_Err | ||
| 1577 | } | 1542 | } | ||
| @@ -1579,36 +1544,36 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1579 | if templ_7745c5c3_Err != nil { | 1544 | if templ_7745c5c3_Err != nil { | ||
| 1580 | return templ_7745c5c3_Err | 1545 | return templ_7745c5c3_Err | ||
| 1581 | } | 1546 | } | ||
| 1582 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 140, "</tbody>") | 1547 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 139, "</tbody>") |
| 1583 | if templ_7745c5c3_Err != nil { | 1548 | if templ_7745c5c3_Err != nil { | ||
| 1584 | return templ_7745c5c3_Err | 1549 | return templ_7745c5c3_Err | ||
| 1585 | } | 1550 | } | ||
| 1586 | } | 1551 | } | ||
| 1587 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 141, "</table>") | 1552 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 140, "</table>") |
| 1588 | if templ_7745c5c3_Err != nil { | 1553 | if templ_7745c5c3_Err != nil { | ||
| 1589 | return templ_7745c5c3_Err | 1554 | return templ_7745c5c3_Err | ||
| 1590 | } | 1555 | } | ||
| 1591 | } | 1556 | } | ||
| 1592 | if p.ShowSplit { | 1557 | if p.ShowSplit { | ||
| 1593 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 142, "<table class=\"dt spl\" aria-label=\"") | 1558 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 141, "<table class=\"dt spl\" aria-label=\"") |
| 1594 | if templ_7745c5c3_Err != nil { | 1559 | if templ_7745c5c3_Err != nil { | ||
| 1595 | return templ_7745c5c3_Err | 1560 | return templ_7745c5c3_Err | ||
| 1596 | } | 1561 | } | ||
| 1597 | - | var templ_7745c5c3_Var80 string | 1562 | + | var templ_7745c5c3_Var79 string |
| 1598 | - | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path + ", split") | 1563 | + | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path + ", split") |
| 1599 | if templ_7745c5c3_Err != nil { | 1564 | if templ_7745c5c3_Err != nil { | ||
| 1600 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 285, Col: 58} | 1565 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 276, Col: 58} |
| 1601 | } | 1566 | } | ||
| 1602 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var80) | 1567 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var79) |
| 1603 | if templ_7745c5c3_Err != nil { | 1568 | if templ_7745c5c3_Err != nil { | ||
| 1604 | return templ_7745c5c3_Err | 1569 | return templ_7745c5c3_Err | ||
| 1605 | } | 1570 | } | ||
| 1606 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 143, "\"><colgroup><col class=\"c-ln\"><col class=\"c-m\"><col><col class=\"c-ln\"><col class=\"c-m\"><col></colgroup> ") | 1571 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 142, "\"><colgroup><col class=\"c-ln\"><col class=\"c-m\"><col><col class=\"c-ln\"><col class=\"c-m\"><col></colgroup> ") |
| 1607 | if templ_7745c5c3_Err != nil { | 1572 | if templ_7745c5c3_Err != nil { | ||
| 1608 | return templ_7745c5c3_Err | 1573 | return templ_7745c5c3_Err | ||
| 1609 | } | 1574 | } | ||
| 1610 | for _, h := range f.Hunks { | 1575 | for _, h := range f.Hunks { | ||
| 1611 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 144, "<tbody>") | 1576 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 143, "<tbody>") |
| 1612 | if templ_7745c5c3_Err != nil { | 1577 | if templ_7745c5c3_Err != nil { | ||
| 1613 | return templ_7745c5c3_Err | 1578 | return templ_7745c5c3_Err | ||
| 1614 | } | 1579 | } | ||
| @@ -1618,25 +1583,25 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1618 | return templ_7745c5c3_Err | 1583 | return templ_7745c5c3_Err | ||
| 1619 | } | 1584 | } | ||
| 1620 | } | 1585 | } | ||
| 1621 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 145, "<tr class=\"hunk\"><td colspan=\"6\">") | 1586 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 144, "<tr class=\"hunk\"><td colspan=\"6\">") |
| 1622 | if templ_7745c5c3_Err != nil { | 1587 | if templ_7745c5c3_Err != nil { | ||
| 1623 | return templ_7745c5c3_Err | 1588 | return templ_7745c5c3_Err | ||
| 1624 | } | 1589 | } | ||
| 1625 | - | var templ_7745c5c3_Var81 string | 1590 | + | var templ_7745c5c3_Var80 string |
| 1626 | - | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.JoinStringErrs(h.Header) | 1591 | + | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.JoinStringErrs(h.Header) |
| 1627 | if templ_7745c5c3_Err != nil { | 1592 | if templ_7745c5c3_Err != nil { | ||
| 1628 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 292, Col: 51} | 1593 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 283, Col: 51} |
| 1629 | } | 1594 | } | ||
| 1630 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var81)) | 1595 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var80)) |
| 1631 | if templ_7745c5c3_Err != nil { | 1596 | if templ_7745c5c3_Err != nil { | ||
| 1632 | return templ_7745c5c3_Err | 1597 | return templ_7745c5c3_Err | ||
| 1633 | } | 1598 | } | ||
| 1634 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 146, "</td></tr>") | 1599 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 145, "</td></tr>") |
| 1635 | if templ_7745c5c3_Err != nil { | 1600 | if templ_7745c5c3_Err != nil { | ||
| 1636 | return templ_7745c5c3_Err | 1601 | return templ_7745c5c3_Err | ||
| 1637 | } | 1602 | } | ||
| 1638 | for _, row := range h.Split { | 1603 | for _, row := range h.Split { | ||
| 1639 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 147, "<tr>") | 1604 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 146, "<tr>") |
| 1640 | if templ_7745c5c3_Err != nil { | 1605 | if templ_7745c5c3_Err != nil { | ||
| 1641 | return templ_7745c5c3_Err | 1606 | return templ_7745c5c3_Err | ||
| 1642 | } | 1607 | } | ||
| @@ -1648,12 +1613,12 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1648 | if templ_7745c5c3_Err != nil { | 1613 | if templ_7745c5c3_Err != nil { | ||
| 1649 | return templ_7745c5c3_Err | 1614 | return templ_7745c5c3_Err | ||
| 1650 | } | 1615 | } | ||
| 1651 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 148, "</tr>") | 1616 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 147, "</tr>") |
| 1652 | if templ_7745c5c3_Err != nil { | 1617 | if templ_7745c5c3_Err != nil { | ||
| 1653 | return templ_7745c5c3_Err | 1618 | return templ_7745c5c3_Err | ||
| 1654 | } | 1619 | } | ||
| 1655 | if notes, form := row.Notes(), row.Form(); len(notes) > 0 || form != nil { | 1620 | if notes, form := row.Notes(), row.Form(); len(notes) > 0 || form != nil { | ||
| 1656 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 149, "<tr class=\"fnote\"><td colspan=\"6\">") | 1621 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 148, "<tr class=\"fnote\"><td colspan=\"6\">") |
| 1657 | if templ_7745c5c3_Err != nil { | 1622 | if templ_7745c5c3_Err != nil { | ||
| 1658 | return templ_7745c5c3_Err | 1623 | return templ_7745c5c3_Err | ||
| 1659 | } | 1624 | } | ||
| @@ -1661,19 +1626,19 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1661 | if templ_7745c5c3_Err != nil { | 1626 | if templ_7745c5c3_Err != nil { | ||
| 1662 | return templ_7745c5c3_Err | 1627 | return templ_7745c5c3_Err | ||
| 1663 | } | 1628 | } | ||
| 1664 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 150, "</td></tr>") | 1629 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 149, "</td></tr>") |
| 1665 | if templ_7745c5c3_Err != nil { | 1630 | if templ_7745c5c3_Err != nil { | ||
| 1666 | return templ_7745c5c3_Err | 1631 | return templ_7745c5c3_Err | ||
| 1667 | } | 1632 | } | ||
| 1668 | } | 1633 | } | ||
| 1669 | } | 1634 | } | ||
| 1670 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 151, "</tbody> ") | 1635 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 150, "</tbody> ") |
| 1671 | if templ_7745c5c3_Err != nil { | 1636 | if templ_7745c5c3_Err != nil { | ||
| 1672 | return templ_7745c5c3_Err | 1637 | return templ_7745c5c3_Err | ||
| 1673 | } | 1638 | } | ||
| 1674 | } | 1639 | } | ||
| 1675 | if f.Tail != nil { | 1640 | if f.Tail != nil { | ||
| 1676 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 152, "<tbody>") | 1641 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 151, "<tbody>") |
| 1677 | if templ_7745c5c3_Err != nil { | 1642 | if templ_7745c5c3_Err != nil { | ||
| 1678 | return templ_7745c5c3_Err | 1643 | return templ_7745c5c3_Err | ||
| 1679 | } | 1644 | } | ||
| @@ -1681,48 +1646,48 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1681 | if templ_7745c5c3_Err != nil { | 1646 | if templ_7745c5c3_Err != nil { | ||
| 1682 | return templ_7745c5c3_Err | 1647 | return templ_7745c5c3_Err | ||
| 1683 | } | 1648 | } | ||
| 1684 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 153, "</tbody>") | 1649 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 152, "</tbody>") |
| 1685 | if templ_7745c5c3_Err != nil { | 1650 | if templ_7745c5c3_Err != nil { | ||
| 1686 | return templ_7745c5c3_Err | 1651 | return templ_7745c5c3_Err | ||
| 1687 | } | 1652 | } | ||
| 1688 | } | 1653 | } | ||
| 1689 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 154, "</table>") | 1654 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 153, "</table>") |
| 1690 | if templ_7745c5c3_Err != nil { | 1655 | if templ_7745c5c3_Err != nil { | ||
| 1691 | return templ_7745c5c3_Err | 1656 | return templ_7745c5c3_Err | ||
| 1692 | } | 1657 | } | ||
| 1693 | } | 1658 | } | ||
| 1694 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 155, "</div>") | 1659 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 154, "</div>") |
| 1695 | if templ_7745c5c3_Err != nil { | 1660 | if templ_7745c5c3_Err != nil { | ||
| 1696 | return templ_7745c5c3_Err | 1661 | return templ_7745c5c3_Err | ||
| 1697 | } | 1662 | } | ||
| 1698 | } else { | 1663 | } else { | ||
| 1699 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 156, "<p class=\"note pad\">") | 1664 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 155, "<p class=\"note pad\">") |
| 1700 | if templ_7745c5c3_Err != nil { | 1665 | if templ_7745c5c3_Err != nil { | ||
| 1701 | return templ_7745c5c3_Err | 1666 | return templ_7745c5c3_Err | ||
| 1702 | } | 1667 | } | ||
| 1703 | if f.Note != "" { | 1668 | if f.Note != "" { | ||
| 1704 | - | var templ_7745c5c3_Var82 string | 1669 | + | var templ_7745c5c3_Var81 string |
| 1705 | - | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.JoinStringErrs(f.Note) | 1670 | + | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.JoinStringErrs(f.Note) |
| 1706 | if templ_7745c5c3_Err != nil { | 1671 | if templ_7745c5c3_Err != nil { | ||
| 1707 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 317, Col: 13} | 1672 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 308, Col: 13} |
| 1708 | } | 1673 | } | ||
| 1709 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var82)) | 1674 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var81)) |
| 1710 | if templ_7745c5c3_Err != nil { | 1675 | if templ_7745c5c3_Err != nil { | ||
| 1711 | return templ_7745c5c3_Err | 1676 | return templ_7745c5c3_Err | ||
| 1712 | } | 1677 | } | ||
| 1713 | } else { | 1678 | } else { | ||
| 1714 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 157, "no textual change.") | 1679 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 156, "no textual change.") |
| 1715 | if templ_7745c5c3_Err != nil { | 1680 | if templ_7745c5c3_Err != nil { | ||
| 1716 | return templ_7745c5c3_Err | 1681 | return templ_7745c5c3_Err | ||
| 1717 | } | 1682 | } | ||
| 1718 | } | 1683 | } | ||
| 1719 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 158, "</p>") | 1684 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 157, "</p>") |
| 1720 | if templ_7745c5c3_Err != nil { | 1685 | if templ_7745c5c3_Err != nil { | ||
| 1721 | return templ_7745c5c3_Err | 1686 | return templ_7745c5c3_Err | ||
| 1722 | } | 1687 | } | ||
| 1723 | } | 1688 | } | ||
| 1724 | if len(f.Loose) > 0 { | 1689 | if len(f.Loose) > 0 { | ||
| 1725 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 159, "<div class=\"dloose\">") | 1690 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 158, "<div class=\"dloose\">") |
| 1726 | if templ_7745c5c3_Err != nil { | 1691 | if templ_7745c5c3_Err != nil { | ||
| 1727 | return templ_7745c5c3_Err | 1692 | return templ_7745c5c3_Err | ||
| 1728 | } | 1693 | } | ||
| @@ -1732,12 +1697,12 @@ func DiffFileView(f DiffFile, p DiffView) templ.Component { | |||||
| 1732 | return templ_7745c5c3_Err | 1697 | return templ_7745c5c3_Err | ||
| 1733 | } | 1698 | } | ||
| 1734 | } | 1699 | } | ||
| 1735 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 160, "</div>") | 1700 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 159, "</div>") |
| 1736 | if templ_7745c5c3_Err != nil { | 1701 | if templ_7745c5c3_Err != nil { | ||
| 1737 | return templ_7745c5c3_Err | 1702 | return templ_7745c5c3_Err | ||
| 1738 | } | 1703 | } | ||
| 1739 | } | 1704 | } | ||
| 1740 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 161, "</details>") | 1705 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 160, "</details>") |
| 1741 | if templ_7745c5c3_Err != nil { | 1706 | if templ_7745c5c3_Err != nil { | ||
| 1742 | return templ_7745c5c3_Err | 1707 | return templ_7745c5c3_Err | ||
| 1743 | } | 1708 | } | ||
| @@ -1763,9 +1728,9 @@ func MRFiles(p MRFilesPage) templ.Component { | |||||
| 1763 | }() | 1728 | }() | ||
| 1764 | } | 1729 | } | ||
| 1765 | ctx = templ.InitializeContext(ctx) | 1730 | ctx = templ.InitializeContext(ctx) | ||
| 1766 | - | templ_7745c5c3_Var83 := templ.GetChildren(ctx) | 1731 | + | templ_7745c5c3_Var82 := templ.GetChildren(ctx) |
| 1767 | - | if templ_7745c5c3_Var83 == nil { | 1732 | + | if templ_7745c5c3_Var82 == nil { |
| 1768 | - | templ_7745c5c3_Var83 = templ.NopComponent | 1733 | + | templ_7745c5c3_Var82 = templ.NopComponent |
| 1769 | } | 1734 | } | ||
| 1770 | ctx = templ.ClearChildren(ctx) | 1735 | ctx = templ.ClearChildren(ctx) | ||
| 1771 | for _, f := range p.Files { | 1736 | for _, f := range p.Files { | ||
| @@ -1796,12 +1761,12 @@ func MRFilesMoved() templ.Component { | |||||
| 1796 | }() | 1761 | }() | ||
| 1797 | } | 1762 | } | ||
| 1798 | ctx = templ.InitializeContext(ctx) | 1763 | ctx = templ.InitializeContext(ctx) | ||
| 1799 | - | templ_7745c5c3_Var84 := templ.GetChildren(ctx) | 1764 | + | templ_7745c5c3_Var83 := templ.GetChildren(ctx) |
| 1800 | - | if templ_7745c5c3_Var84 == nil { | 1765 | + | if templ_7745c5c3_Var83 == nil { |
| 1801 | - | templ_7745c5c3_Var84 = templ.NopComponent | 1766 | + | templ_7745c5c3_Var83 = templ.NopComponent |
| 1802 | } | 1767 | } | ||
| 1803 | ctx = templ.ClearChildren(ctx) | 1768 | ctx = templ.ClearChildren(ctx) | ||
| 1804 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 162, "<p class=\"notice\" data-moved>this merge request changed since the page was loaded — <a href=\"\">reload</a></p>") | 1769 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 161, "<p class=\"notice\" data-moved>this merge request changed since the page was loaded — <a href=\"\">reload</a></p>") |
| 1805 | if templ_7745c5c3_Err != nil { | 1770 | if templ_7745c5c3_Err != nil { | ||
| 1806 | return templ_7745c5c3_Err | 1771 | return templ_7745c5c3_Err | ||
| 1807 | } | 1772 | } | ||
| @@ -1828,64 +1793,64 @@ func gapRow(g DiffGap, cols int) templ.Component { | |||||
| 1828 | }() | 1793 | }() | ||
| 1829 | } | 1794 | } | ||
| 1830 | ctx = templ.InitializeContext(ctx) | 1795 | ctx = templ.InitializeContext(ctx) | ||
| 1831 | - | templ_7745c5c3_Var85 := templ.GetChildren(ctx) | 1796 | + | templ_7745c5c3_Var84 := templ.GetChildren(ctx) |
| 1832 | - | if templ_7745c5c3_Var85 == nil { | 1797 | + | if templ_7745c5c3_Var84 == nil { |
| 1833 | - | templ_7745c5c3_Var85 = templ.NopComponent | 1798 | + | templ_7745c5c3_Var84 = templ.NopComponent |
| 1834 | } | 1799 | } | ||
| 1835 | ctx = templ.ClearChildren(ctx) | 1800 | ctx = templ.ClearChildren(ctx) | ||
| 1836 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 163, "<tr class=\"gap\" data-js data-gap=\"") | 1801 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 162, "<tr class=\"gap\" data-js data-gap=\"") |
| 1837 | if templ_7745c5c3_Err != nil { | 1802 | if templ_7745c5c3_Err != nil { | ||
| 1838 | return templ_7745c5c3_Err | 1803 | return templ_7745c5c3_Err | ||
| 1839 | } | 1804 | } | ||
| 1840 | - | var templ_7745c5c3_Var86 string | 1805 | + | var templ_7745c5c3_Var85 string |
| 1841 | - | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.ResolveAttributeValue(g.Key) | 1806 | + | templ_7745c5c3_Var85, templ_7745c5c3_Err = templ.ResolveAttributeValue(g.Key) |
| 1842 | if templ_7745c5c3_Err != nil { | 1807 | if templ_7745c5c3_Err != nil { | ||
| 1843 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 351, Col: 41} | 1808 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 342, Col: 41} |
| 1844 | } | 1809 | } | ||
| 1845 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var86) | 1810 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var85) |
| 1846 | if templ_7745c5c3_Err != nil { | 1811 | if templ_7745c5c3_Err != nil { | ||
| 1847 | return templ_7745c5c3_Err | 1812 | return templ_7745c5c3_Err | ||
| 1848 | } | 1813 | } | ||
| 1849 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 164, "\"><td colspan=\"") | 1814 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 163, "\"><td colspan=\"") |
| 1850 | if templ_7745c5c3_Err != nil { | 1815 | if templ_7745c5c3_Err != nil { | ||
| 1851 | return templ_7745c5c3_Err | 1816 | return templ_7745c5c3_Err | ||
| 1852 | } | 1817 | } | ||
| 1853 | - | var templ_7745c5c3_Var87 string | 1818 | + | var templ_7745c5c3_Var86 string |
| 1854 | - | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(cols)) | 1819 | + | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(cols)) |
| 1855 | if templ_7745c5c3_Err != nil { | 1820 | if templ_7745c5c3_Err != nil { | ||
| 1856 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 352, Col: 26} | 1821 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 343, Col: 26} |
| 1857 | } | 1822 | } | ||
| 1858 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var87) | 1823 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var86) |
| 1859 | if templ_7745c5c3_Err != nil { | 1824 | if templ_7745c5c3_Err != nil { | ||
| 1860 | return templ_7745c5c3_Err | 1825 | return templ_7745c5c3_Err | ||
| 1861 | } | 1826 | } | ||
| 1862 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 165, "\"><button type=\"button\" data-src=\"") | 1827 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 164, "\"><button type=\"button\" data-src=\"") |
| 1863 | if templ_7745c5c3_Err != nil { | 1828 | if templ_7745c5c3_Err != nil { | ||
| 1864 | return templ_7745c5c3_Err | 1829 | return templ_7745c5c3_Err | ||
| 1865 | } | 1830 | } | ||
| 1866 | - | var templ_7745c5c3_Var88 string | 1831 | + | var templ_7745c5c3_Var87 string |
| 1867 | - | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.ResolveAttributeValue(g.Src) | 1832 | + | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.ResolveAttributeValue(g.Src) |
| 1868 | if templ_7745c5c3_Err != nil { | 1833 | if templ_7745c5c3_Err != nil { | ||
| 1869 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 353, Col: 41} | 1834 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 344, Col: 41} |
| 1870 | } | 1835 | } | ||
| 1871 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var88) | 1836 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var87) |
| 1872 | if templ_7745c5c3_Err != nil { | 1837 | if templ_7745c5c3_Err != nil { | ||
| 1873 | return templ_7745c5c3_Err | 1838 | return templ_7745c5c3_Err | ||
| 1874 | } | 1839 | } | ||
| 1875 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 166, "\"><span aria-hidden=\"true\">⋯</span> ") | 1840 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 165, "\"><span aria-hidden=\"true\">⋯</span> ") |
| 1876 | if templ_7745c5c3_Err != nil { | 1841 | if templ_7745c5c3_Err != nil { | ||
| 1877 | return templ_7745c5c3_Err | 1842 | return templ_7745c5c3_Err | ||
| 1878 | } | 1843 | } | ||
| 1879 | - | var templ_7745c5c3_Var89 string | 1844 | + | var templ_7745c5c3_Var88 string |
| 1880 | - | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.JoinStringErrs(g.Label()) | 1845 | + | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.JoinStringErrs(g.Label()) |
| 1881 | if templ_7745c5c3_Err != nil { | 1846 | if templ_7745c5c3_Err != nil { | ||
| 1882 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 354, Col: 51} | 1847 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 345, Col: 51} |
| 1883 | } | 1848 | } | ||
| 1884 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var89)) | 1849 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var88)) |
| 1885 | if templ_7745c5c3_Err != nil { | 1850 | if templ_7745c5c3_Err != nil { | ||
| 1886 | return templ_7745c5c3_Err | 1851 | return templ_7745c5c3_Err | ||
| 1887 | } | 1852 | } | ||
| 1888 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 167, "</button></td></tr>") | 1853 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 166, "</button></td></tr>") |
| 1889 | if templ_7745c5c3_Err != nil { | 1854 | if templ_7745c5c3_Err != nil { | ||
| 1890 | return templ_7745c5c3_Err | 1855 | return templ_7745c5c3_Err | ||
| 1891 | } | 1856 | } | ||
| @@ -1911,56 +1876,56 @@ func DiffContext(c ContextRows) templ.Component { | |||||
| 1911 | }() | 1876 | }() | ||
| 1912 | } | 1877 | } | ||
| 1913 | ctx = templ.InitializeContext(ctx) | 1878 | ctx = templ.InitializeContext(ctx) | ||
| 1914 | - | templ_7745c5c3_Var90 := templ.GetChildren(ctx) | 1879 | + | templ_7745c5c3_Var89 := templ.GetChildren(ctx) |
| 1915 | - | if templ_7745c5c3_Var90 == nil { | 1880 | + | if templ_7745c5c3_Var89 == nil { |
| 1916 | - | templ_7745c5c3_Var90 = templ.NopComponent | 1881 | + | templ_7745c5c3_Var89 = templ.NopComponent |
| 1917 | } | 1882 | } | ||
| 1918 | ctx = templ.ClearChildren(ctx) | 1883 | ctx = templ.ClearChildren(ctx) | ||
| 1919 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 168, "<table><tbody data-for=\"uni\">") | 1884 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 167, "<table><tbody data-for=\"uni\">") |
| 1920 | if templ_7745c5c3_Err != nil { | 1885 | if templ_7745c5c3_Err != nil { | ||
| 1921 | return templ_7745c5c3_Err | 1886 | return templ_7745c5c3_Err | ||
| 1922 | } | 1887 | } | ||
| 1923 | for _, ln := range c.Lines { | 1888 | for _, ln := range c.Lines { | ||
| 1924 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 169, "<tr class=\"ctx\"><td class=\"ln\">") | 1889 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 168, "<tr class=\"ctx\"><td class=\"ln\">") |
| 1925 | if templ_7745c5c3_Err != nil { | 1890 | if templ_7745c5c3_Err != nil { | ||
| 1926 | return templ_7745c5c3_Err | 1891 | return templ_7745c5c3_Err | ||
| 1927 | } | 1892 | } | ||
| 1928 | - | var templ_7745c5c3_Var91 string | 1893 | + | var templ_7745c5c3_Var90 string |
| 1929 | - | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Old) | 1894 | + | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Old) |
| 1930 | if templ_7745c5c3_Err != nil { | 1895 | if templ_7745c5c3_Err != nil { | ||
| 1931 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 367, Col: 28} | 1896 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 358, Col: 28} |
| 1932 | } | 1897 | } | ||
| 1933 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var91)) | 1898 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var90)) |
| 1934 | if templ_7745c5c3_Err != nil { | 1899 | if templ_7745c5c3_Err != nil { | ||
| 1935 | return templ_7745c5c3_Err | 1900 | return templ_7745c5c3_Err | ||
| 1936 | } | 1901 | } | ||
| 1937 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 170, "</td><td class=\"ln\">") | 1902 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 169, "</td><td class=\"ln\">") |
| 1938 | if templ_7745c5c3_Err != nil { | 1903 | if templ_7745c5c3_Err != nil { | ||
| 1939 | return templ_7745c5c3_Err | 1904 | return templ_7745c5c3_Err | ||
| 1940 | } | 1905 | } | ||
| 1941 | - | var templ_7745c5c3_Var92 string | 1906 | + | var templ_7745c5c3_Var91 string |
| 1942 | - | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.JoinStringErrs(ln.New) | 1907 | + | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.JoinStringErrs(ln.New) |
| 1943 | if templ_7745c5c3_Err != nil { | 1908 | if templ_7745c5c3_Err != nil { | ||
| 1944 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 368, Col: 28} | 1909 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 359, Col: 28} |
| 1945 | } | 1910 | } | ||
| 1946 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var92)) | 1911 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var91)) |
| 1947 | if templ_7745c5c3_Err != nil { | 1912 | if templ_7745c5c3_Err != nil { | ||
| 1948 | return templ_7745c5c3_Err | 1913 | return templ_7745c5c3_Err | ||
| 1949 | } | 1914 | } | ||
| 1950 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 171, "</td><td class=\"m\">") | 1915 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 170, "</td><td class=\"m\">") |
| 1951 | if templ_7745c5c3_Err != nil { | 1916 | if templ_7745c5c3_Err != nil { | ||
| 1952 | return templ_7745c5c3_Err | 1917 | return templ_7745c5c3_Err | ||
| 1953 | } | 1918 | } | ||
| 1954 | - | var templ_7745c5c3_Var93 string | 1919 | + | var templ_7745c5c3_Var92 string |
| 1955 | - | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | 1920 | + | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) |
| 1956 | if templ_7745c5c3_Err != nil { | 1921 | if templ_7745c5c3_Err != nil { | ||
| 1957 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 369, Col: 28} | 1922 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 360, Col: 28} |
| 1958 | } | 1923 | } | ||
| 1959 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var93)) | 1924 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var92)) |
| 1960 | if templ_7745c5c3_Err != nil { | 1925 | if templ_7745c5c3_Err != nil { | ||
| 1961 | return templ_7745c5c3_Err | 1926 | return templ_7745c5c3_Err | ||
| 1962 | } | 1927 | } | ||
| 1963 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 172, "</td><td class=\"tx chroma\">") | 1928 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 171, "</td><td class=\"tx chroma\">") |
| 1964 | if templ_7745c5c3_Err != nil { | 1929 | if templ_7745c5c3_Err != nil { | ||
| 1965 | return templ_7745c5c3_Err | 1930 | return templ_7745c5c3_Err | ||
| 1966 | } | 1931 | } | ||
| @@ -1968,7 +1933,7 @@ func DiffContext(c ContextRows) templ.Component { | |||||
| 1968 | if templ_7745c5c3_Err != nil { | 1933 | if templ_7745c5c3_Err != nil { | ||
| 1969 | return templ_7745c5c3_Err | 1934 | return templ_7745c5c3_Err | ||
| 1970 | } | 1935 | } | ||
| 1971 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 173, "</td></tr>") | 1936 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 172, "</td></tr>") |
| 1972 | if templ_7745c5c3_Err != nil { | 1937 | if templ_7745c5c3_Err != nil { | ||
| 1973 | return templ_7745c5c3_Err | 1938 | return templ_7745c5c3_Err | ||
| 1974 | } | 1939 | } | ||
| @@ -1979,12 +1944,12 @@ func DiffContext(c ContextRows) templ.Component { | |||||
| 1979 | return templ_7745c5c3_Err | 1944 | return templ_7745c5c3_Err | ||
| 1980 | } | 1945 | } | ||
| 1981 | } | 1946 | } | ||
| 1982 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 174, "</tbody> <tbody data-for=\"spl\">") | 1947 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 173, "</tbody> <tbody data-for=\"spl\">") |
| 1983 | if templ_7745c5c3_Err != nil { | 1948 | if templ_7745c5c3_Err != nil { | ||
| 1984 | return templ_7745c5c3_Err | 1949 | return templ_7745c5c3_Err | ||
| 1985 | } | 1950 | } | ||
| 1986 | for i := range c.Lines { | 1951 | for i := range c.Lines { | ||
| 1987 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 175, "<tr>") | 1952 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 174, "<tr>") |
| 1988 | if templ_7745c5c3_Err != nil { | 1953 | if templ_7745c5c3_Err != nil { | ||
| 1989 | return templ_7745c5c3_Err | 1954 | return templ_7745c5c3_Err | ||
| 1990 | } | 1955 | } | ||
| @@ -1996,7 +1961,7 @@ func DiffContext(c ContextRows) templ.Component { | |||||
| 1996 | if templ_7745c5c3_Err != nil { | 1961 | if templ_7745c5c3_Err != nil { | ||
| 1997 | return templ_7745c5c3_Err | 1962 | return templ_7745c5c3_Err | ||
| 1998 | } | 1963 | } | ||
| 1999 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 176, "</tr>") | 1964 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 175, "</tr>") |
| 2000 | if templ_7745c5c3_Err != nil { | 1965 | if templ_7745c5c3_Err != nil { | ||
| 2001 | return templ_7745c5c3_Err | 1966 | return templ_7745c5c3_Err | ||
| 2002 | } | 1967 | } | ||
| @@ -2007,7 +1972,7 @@ func DiffContext(c ContextRows) templ.Component { | |||||
| 2007 | return templ_7745c5c3_Err | 1972 | return templ_7745c5c3_Err | ||
| 2008 | } | 1973 | } | ||
| 2009 | } | 1974 | } | ||
| 2010 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 177, "</tbody></table>") | 1975 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 176, "</tbody></table>") |
| 2011 | if templ_7745c5c3_Err != nil { | 1976 | if templ_7745c5c3_Err != nil { | ||
| 2012 | return templ_7745c5c3_Err | 1977 | return templ_7745c5c3_Err | ||
| 2013 | } | 1978 | } | ||
| @@ -2033,36 +1998,36 @@ func splitSide(ln *DiffLine, old bool) templ.Component { | |||||
| 2033 | }() | 1998 | }() | ||
| 2034 | } | 1999 | } | ||
| 2035 | ctx = templ.InitializeContext(ctx) | 2000 | ctx = templ.InitializeContext(ctx) | ||
| 2036 | - | templ_7745c5c3_Var94 := templ.GetChildren(ctx) | 2001 | + | templ_7745c5c3_Var93 := templ.GetChildren(ctx) |
| 2037 | - | if templ_7745c5c3_Var94 == nil { | 2002 | + | if templ_7745c5c3_Var93 == nil { |
| 2038 | - | templ_7745c5c3_Var94 = templ.NopComponent | 2003 | + | templ_7745c5c3_Var93 = templ.NopComponent |
| 2039 | } | 2004 | } | ||
| 2040 | ctx = templ.ClearChildren(ctx) | 2005 | ctx = templ.ClearChildren(ctx) | ||
| 2041 | if ln == nil { | 2006 | if ln == nil { | ||
| 2042 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 178, "<td class=\"ln none\"></td><td class=\"m none\"></td><td class=\"tx none\"></td>") | 2007 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 177, "<td class=\"ln none\"></td><td class=\"m none\"></td><td class=\"tx none\"></td>") |
| 2043 | if templ_7745c5c3_Err != nil { | 2008 | if templ_7745c5c3_Err != nil { | ||
| 2044 | return templ_7745c5c3_Err | 2009 | return templ_7745c5c3_Err | ||
| 2045 | } | 2010 | } | ||
| 2046 | } else { | 2011 | } else { | ||
| 2047 | - | var templ_7745c5c3_Var95 = []any{"ln", ln.Kind, templ.KV("sel", ln.Selected)} | 2012 | + | var templ_7745c5c3_Var94 = []any{"ln", ln.Kind, templ.KV("sel", ln.Selected)} |
| 2048 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var95...) | 2013 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var94...) |
| 2049 | if templ_7745c5c3_Err != nil { | 2014 | if templ_7745c5c3_Err != nil { | ||
| 2050 | return templ_7745c5c3_Err | 2015 | return templ_7745c5c3_Err | ||
| 2051 | } | 2016 | } | ||
| 2052 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 179, "<td class=\"") | 2017 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 178, "<td class=\"") |
| 2053 | if templ_7745c5c3_Err != nil { | 2018 | if templ_7745c5c3_Err != nil { | ||
| 2054 | return templ_7745c5c3_Err | 2019 | return templ_7745c5c3_Err | ||
| 2055 | } | 2020 | } | ||
| 2056 | - | var templ_7745c5c3_Var96 string | 2021 | + | var templ_7745c5c3_Var95 string |
| 2057 | - | templ_7745c5c3_Var96, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var95).String()) | 2022 | + | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var94).String()) |
| 2058 | if templ_7745c5c3_Err != nil { | 2023 | if templ_7745c5c3_Err != nil { | ||
| 2059 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | 2024 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | ||
| 2060 | } | 2025 | } | ||
| 2061 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var96) | 2026 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var95) |
| 2062 | if templ_7745c5c3_Err != nil { | 2027 | if templ_7745c5c3_Err != nil { | ||
| 2063 | return templ_7745c5c3_Err | 2028 | return templ_7745c5c3_Err | ||
| 2064 | } | 2029 | } | ||
| 2065 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 180, "\">") | 2030 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 179, "\">") |
| 2066 | if templ_7745c5c3_Err != nil { | 2031 | if templ_7745c5c3_Err != nil { | ||
| 2067 | return templ_7745c5c3_Err | 2032 | return templ_7745c5c3_Err | ||
| 2068 | } | 2033 | } | ||
| @@ -2077,64 +2042,64 @@ func splitSide(ln *DiffLine, old bool) templ.Component { | |||||
| 2077 | return templ_7745c5c3_Err | 2042 | return templ_7745c5c3_Err | ||
| 2078 | } | 2043 | } | ||
| 2079 | } | 2044 | } | ||
| 2080 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 181, "</td>") | 2045 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 180, "</td>") |
| 2081 | if templ_7745c5c3_Err != nil { | 2046 | if templ_7745c5c3_Err != nil { | ||
| 2082 | return templ_7745c5c3_Err | 2047 | return templ_7745c5c3_Err | ||
| 2083 | } | 2048 | } | ||
| 2084 | - | var templ_7745c5c3_Var97 = []any{"m", ln.Kind, templ.KV("sel", ln.Selected)} | 2049 | + | var templ_7745c5c3_Var96 = []any{"m", ln.Kind, templ.KV("sel", ln.Selected)} |
| 2085 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var97...) | 2050 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var96...) |
| 2086 | if templ_7745c5c3_Err != nil { | 2051 | if templ_7745c5c3_Err != nil { | ||
| 2087 | return templ_7745c5c3_Err | 2052 | return templ_7745c5c3_Err | ||
| 2088 | } | 2053 | } | ||
| 2089 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 182, "<td class=\"") | 2054 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 181, "<td class=\"") |
| 2090 | if templ_7745c5c3_Err != nil { | 2055 | if templ_7745c5c3_Err != nil { | ||
| 2091 | return templ_7745c5c3_Err | 2056 | return templ_7745c5c3_Err | ||
| 2092 | } | 2057 | } | ||
| 2093 | - | var templ_7745c5c3_Var98 string | 2058 | + | var templ_7745c5c3_Var97 string |
| 2094 | - | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var97).String()) | 2059 | + | templ_7745c5c3_Var97, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var96).String()) |
| 2095 | if templ_7745c5c3_Err != nil { | 2060 | if templ_7745c5c3_Err != nil { | ||
| 2096 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | 2061 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | ||
| 2097 | } | 2062 | } | ||
| 2098 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var98) | 2063 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var97) |
| 2099 | if templ_7745c5c3_Err != nil { | 2064 | if templ_7745c5c3_Err != nil { | ||
| 2100 | return templ_7745c5c3_Err | 2065 | return templ_7745c5c3_Err | ||
| 2101 | } | 2066 | } | ||
| 2102 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 183, "\">") | 2067 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 182, "\">") |
| 2103 | if templ_7745c5c3_Err != nil { | 2068 | if templ_7745c5c3_Err != nil { | ||
| 2104 | return templ_7745c5c3_Err | 2069 | return templ_7745c5c3_Err | ||
| 2105 | } | 2070 | } | ||
| 2106 | - | var templ_7745c5c3_Var99 string | 2071 | + | var templ_7745c5c3_Var98 string |
| 2107 | - | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) | 2072 | + | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinStringErrs(ln.Mark) |
| 2108 | if templ_7745c5c3_Err != nil { | 2073 | if templ_7745c5c3_Err != nil { | ||
| 2109 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 406, Col: 68} | 2074 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 397, Col: 68} |
| 2110 | } | 2075 | } | ||
| 2111 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) | 2076 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) |
| 2112 | if templ_7745c5c3_Err != nil { | 2077 | if templ_7745c5c3_Err != nil { | ||
| 2113 | return templ_7745c5c3_Err | 2078 | return templ_7745c5c3_Err | ||
| 2114 | } | 2079 | } | ||
| 2115 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 184, "</td>") | 2080 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 183, "</td>") |
| 2116 | if templ_7745c5c3_Err != nil { | 2081 | if templ_7745c5c3_Err != nil { | ||
| 2117 | return templ_7745c5c3_Err | 2082 | return templ_7745c5c3_Err | ||
| 2118 | } | 2083 | } | ||
| 2119 | - | var templ_7745c5c3_Var100 = []any{"tx", "chroma", ln.Kind, templ.KV("sel", ln.Selected)} | 2084 | + | var templ_7745c5c3_Var99 = []any{"tx", "chroma", ln.Kind, templ.KV("sel", ln.Selected)} |
| 2120 | - | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var100...) | 2085 | + | templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var99...) |
| 2121 | if templ_7745c5c3_Err != nil { | 2086 | if templ_7745c5c3_Err != nil { | ||
| 2122 | return templ_7745c5c3_Err | 2087 | return templ_7745c5c3_Err | ||
| 2123 | } | 2088 | } | ||
| 2124 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 185, "<td class=\"") | 2089 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 184, "<td class=\"") |
| 2125 | if templ_7745c5c3_Err != nil { | 2090 | if templ_7745c5c3_Err != nil { | ||
| 2126 | return templ_7745c5c3_Err | 2091 | return templ_7745c5c3_Err | ||
| 2127 | } | 2092 | } | ||
| 2128 | - | var templ_7745c5c3_Var101 string | 2093 | + | var templ_7745c5c3_Var100 string |
| 2129 | - | templ_7745c5c3_Var101, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var100).String()) | 2094 | + | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.ResolveAttributeValue(templ.CSSClasses(templ_7745c5c3_Var99).String()) |
| 2130 | if templ_7745c5c3_Err != nil { | 2095 | if templ_7745c5c3_Err != nil { | ||
| 2131 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | 2096 | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 1, Col: 0} | ||
| 2132 | } | 2097 | } | ||
| 2133 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var101) | 2098 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var100) |
| 2134 | if templ_7745c5c3_Err != nil { | 2099 | if templ_7745c5c3_Err != nil { | ||
| 2135 | return templ_7745c5c3_Err | 2100 | return templ_7745c5c3_Err | ||
| 2136 | } | 2101 | } | ||
| 2137 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 186, "\">") | 2102 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 185, "\">") |
| 2138 | if templ_7745c5c3_Err != nil { | 2103 | if templ_7745c5c3_Err != nil { | ||
| 2139 | return templ_7745c5c3_Err | 2104 | return templ_7745c5c3_Err | ||
| 2140 | } | 2105 | } | ||
| @@ -2142,7 +2107,7 @@ func splitSide(ln *DiffLine, old bool) templ.Component { | |||||
| 2142 | if templ_7745c5c3_Err != nil { | 2107 | if templ_7745c5c3_Err != nil { | ||
| 2143 | return templ_7745c5c3_Err | 2108 | return templ_7745c5c3_Err | ||
| 2144 | } | 2109 | } | ||
| 2145 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 187, "</td>") | 2110 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 186, "</td>") |
| 2146 | if templ_7745c5c3_Err != nil { | 2111 | if templ_7745c5c3_Err != nil { | ||
| 2147 | return templ_7745c5c3_Err | 2112 | return templ_7745c5c3_Err | ||
| 2148 | } | 2113 | } | ||
| @@ -2169,49 +2134,49 @@ func gutter(n, href string) templ.Component { | |||||
| 2169 | }() | 2134 | }() | ||
| 2170 | } | 2135 | } | ||
| 2171 | ctx = templ.InitializeContext(ctx) | 2136 | ctx = templ.InitializeContext(ctx) | ||
| 2172 | - | templ_7745c5c3_Var102 := templ.GetChildren(ctx) | 2137 | + | templ_7745c5c3_Var101 := templ.GetChildren(ctx) |
| 2173 | - | if templ_7745c5c3_Var102 == nil { | 2138 | + | if templ_7745c5c3_Var101 == nil { |
| 2174 | - | templ_7745c5c3_Var102 = templ.NopComponent | 2139 | + | templ_7745c5c3_Var101 = templ.NopComponent |
| 2175 | } | 2140 | } | ||
| 2176 | ctx = templ.ClearChildren(ctx) | 2141 | ctx = templ.ClearChildren(ctx) | ||
| 2177 | if href != "" { | 2142 | if href != "" { | ||
| 2178 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 188, "<a href=\"") | 2143 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 187, "<a href=\"") |
| 2179 | if templ_7745c5c3_Err != nil { | 2144 | if templ_7745c5c3_Err != nil { | ||
| 2180 | return templ_7745c5c3_Err | 2145 | return templ_7745c5c3_Err | ||
| 2181 | } | 2146 | } | ||
| 2182 | - | var templ_7745c5c3_Var103 templ.SafeURL | 2147 | + | var templ_7745c5c3_Var102 templ.SafeURL |
| 2183 | - | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | 2148 | + | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) |
| 2184 | if templ_7745c5c3_Err != nil { | 2149 | if templ_7745c5c3_Err != nil { | ||
| 2185 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 415, Col: 31} | 2150 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 406, Col: 31} |
| 2186 | } | 2151 | } | ||
| 2187 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | 2152 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) |
| 2188 | if templ_7745c5c3_Err != nil { | 2153 | if templ_7745c5c3_Err != nil { | ||
| 2189 | return templ_7745c5c3_Err | 2154 | return templ_7745c5c3_Err | ||
| 2190 | } | 2155 | } | ||
| 2191 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 189, "\" title=\"comment on this line\">") | 2156 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 188, "\" title=\"comment on this line\">") |
| 2192 | if templ_7745c5c3_Err != nil { | 2157 | if templ_7745c5c3_Err != nil { | ||
| 2193 | return templ_7745c5c3_Err | 2158 | return templ_7745c5c3_Err | ||
| 2194 | } | 2159 | } | ||
| 2195 | - | var templ_7745c5c3_Var104 string | 2160 | + | var templ_7745c5c3_Var103 string |
| 2196 | - | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinStringErrs(n) | 2161 | + | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinStringErrs(n) |
| 2197 | if templ_7745c5c3_Err != nil { | 2162 | if templ_7745c5c3_Err != nil { | ||
| 2198 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 415, Col: 66} | 2163 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 406, Col: 66} |
| 2199 | } | 2164 | } | ||
| 2200 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | 2165 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) |
| 2201 | if templ_7745c5c3_Err != nil { | 2166 | if templ_7745c5c3_Err != nil { | ||
| 2202 | return templ_7745c5c3_Err | 2167 | return templ_7745c5c3_Err | ||
| 2203 | } | 2168 | } | ||
| 2204 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 190, "</a>") | 2169 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 189, "</a>") |
| 2205 | if templ_7745c5c3_Err != nil { | 2170 | if templ_7745c5c3_Err != nil { | ||
| 2206 | return templ_7745c5c3_Err | 2171 | return templ_7745c5c3_Err | ||
| 2207 | } | 2172 | } | ||
| 2208 | } else { | 2173 | } else { | ||
| 2209 | - | var templ_7745c5c3_Var105 string | 2174 | + | var templ_7745c5c3_Var104 string |
| 2210 | - | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinStringErrs(n) | 2175 | + | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinStringErrs(n) |
| 2211 | if templ_7745c5c3_Err != nil { | 2176 | if templ_7745c5c3_Err != nil { | ||
| 2212 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 417, Col: 5} | 2177 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/diff.templ`, Line: 408, Col: 5} |
| 2213 | } | 2178 | } | ||
| 2214 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) | 2179 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) |
| 2215 | if templ_7745c5c3_Err != nil { | 2180 | if templ_7745c5c3_Err != nil { | ||
| 2216 | return templ_7745c5c3_Err | 2181 | return templ_7745c5c3_Err | ||
| 2217 | } | 2182 | } | ||
M internal/adapters/web/mr.templ +0 -2
| @@ -434,7 +434,6 @@ templ mrBar(p MRPage) { | |||
| 434 | 434 | <div class="diff-tools mr-bar" role="group" aria-label="Diff view and merge"> | |
| 435 | 435 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | |
| 436 | 436 | @diffViewMenu(p.DiffView) | |
| 437 | - | @wideButton() | |
| 438 | 437 | <span class="grow"></span> | |
| 439 | 438 | @MRChecksSum(p.ChecksSum) | |
| 440 | 439 | if p.Box != nil { | |
| @@ -564,7 +563,6 @@ templ Compare(l Layout, p ComparePage) { | |||
| 564 | 563 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | |
| 565 | 564 | <span class="grow"></span> | |
| 566 | 565 | @diffViewMenu(p.DiffView) | |
| 567 | - | @wideButton() | |
| 568 | 566 | </div> | |
| 569 | 567 | if p.Invisible { | |
| 570 | 568 | <p class="notice"> | |
| @@ -434,7 +434,6 @@ templ mrBar(p MRPage) { | |||||
| 434 | <div class="diff-tools mr-bar" role="group" aria-label="Diff view and merge"> | 434 | <div class="diff-tools mr-bar" role="group" aria-label="Diff view and merge"> | ||
| 435 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | 435 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | ||
| 436 | @diffViewMenu(p.DiffView) | 436 | @diffViewMenu(p.DiffView) | ||
| 437 | - | @wideButton() | |||
| 438 | <span class="grow"></span> | 437 | <span class="grow"></span> | ||
| 439 | @MRChecksSum(p.ChecksSum) | 438 | @MRChecksSum(p.ChecksSum) | ||
| 440 | if p.Box != nil { | 439 | if p.Box != nil { | ||
| @@ -564,7 +563,6 @@ templ Compare(l Layout, p ComparePage) { | |||||
| 564 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | 563 | <span class="dim">{ plural(p.NFiles, "file", "files") } · <span class="plus">+{ itoa(p.Adds) }</span> <span class="minus">-{ itoa(p.Dels) }</span></span> | ||
| 565 | <span class="grow"></span> | 564 | <span class="grow"></span> | ||
| 566 | @diffViewMenu(p.DiffView) | 565 | @diffViewMenu(p.DiffView) | ||
| 567 | - | @wideButton() | |||
| 568 | </div> | 566 | </div> | ||
| 569 | if p.Invisible { | 567 | if p.Invisible { | ||
| 570 | <p class="notice"> | 568 | <p class="notice"> | ||
M internal/adapters/web/mr_templ.go +42 -50 generated file: collapsed
M internal/adapters/web/static/js/ermite.js +2 -3
| @@ -557,14 +557,13 @@ | |||
| 557 | 557 | // The wide mode (w, on every page): the work area takes the whole width of | |
| 558 | 558 | // the screen, the rail at the right edge and the content in the rest. | |
| 559 | 559 | // The choice is kept by ermiteStore ("wide": '1' when wide) and shown | |
| 560 | - | // as html.wide, which the styles follow, and as aria-pressed on the | |
| 561 | - | // buttons [data-wide-toggle]. Another tab's change applies here at once. | |
| 560 | + | // as html.wide, which the styles follow. Another tab's change applies here | |
| 561 | + | // at once. | |
| 562 | 562 | window.ermiteWide = (() => { | |
| 563 | 563 | const pref = window.ermiteStore.pref('wide', { values: ['1', ''], fallback: '' }); | |
| 564 | 564 | function apply() { | |
| 565 | 565 | const wide = pref.get() === '1'; | |
| 566 | 566 | document.documentElement.classList.toggle?.('wide', wide); | |
| 567 | - | for (const b of document.querySelectorAll('[data-wide-toggle]')) b.setAttribute('aria-pressed', String(wide)); | |
| 568 | 567 | } | |
| 569 | 568 | function toggle() { | |
| 570 | 569 | pref.set(pref.get() === '1' ? '' : '1'); | |
| @@ -557,14 +557,13 @@ | |||||
| 557 | // The wide mode (w, on every page): the work area takes the whole width of | 557 | // The wide mode (w, on every page): the work area takes the whole width of | ||
| 558 | // the screen, the rail at the right edge and the content in the rest. | 558 | // the screen, the rail at the right edge and the content in the rest. | ||
| 559 | // The choice is kept by ermiteStore ("wide": '1' when wide) and shown | 559 | // The choice is kept by ermiteStore ("wide": '1' when wide) and shown | ||
| 560 | - | // as html.wide, which the styles follow, and as aria-pressed on the | 560 | + | // as html.wide, which the styles follow. Another tab's change applies here |
| 561 | - | // buttons [data-wide-toggle]. Another tab's change applies here at once. | 561 | + | // at once. |
| 562 | window.ermiteWide = (() => { | 562 | window.ermiteWide = (() => { | ||
| 563 | const pref = window.ermiteStore.pref('wide', { values: ['1', ''], fallback: '' }); | 563 | const pref = window.ermiteStore.pref('wide', { values: ['1', ''], fallback: '' }); | ||
| 564 | function apply() { | 564 | function apply() { | ||
| 565 | const wide = pref.get() === '1'; | 565 | const wide = pref.get() === '1'; | ||
| 566 | document.documentElement.classList.toggle?.('wide', wide); | 566 | document.documentElement.classList.toggle?.('wide', wide); | ||
| 567 | - | for (const b of document.querySelectorAll('[data-wide-toggle]')) b.setAttribute('aria-pressed', String(wide)); | |||
| 568 | } | 567 | } | ||
| 569 | function toggle() { | 568 | function toggle() { | ||
| 570 | pref.set(pref.get() === '1' ? '' : '1'); | 569 | pref.set(pref.get() === '1' ? '' : '1'); | ||