fix(web): keep the merge box inside its popover and the MR URL after a refused merge
- commit
- 72d05565440393e987aa46ca58611e6b1928e6c0
- author
- brice · · 2026-10-19 14:30 UTC
- committer
- brice · · 2026-10-19 14:37 UTC
- parent
- 1790409
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
6 files · +783 -759
M internal/adapters/web/mr.go +7 -0
| @@ -267,6 +267,10 @@ type MRPage struct { | |||
| 267 | 267 | // MergeError is why a merge was refused when the page has no merge box | |
| 268 | 268 | // to show it in (the request is not open any more). | |
| 269 | 269 | MergeError string | |
| 270 | + | // Canonical is the address of the request, set when the page answers a | |
| 271 | + | // refused action from the address of that action: the script puts it in | |
| 272 | + | // the address bar, so that a reload does not post again. | |
| 273 | + | Canonical string | |
| 270 | 274 | ||
| 271 | 275 | Since *SinceNav | |
| 272 | 276 | SinceNote string | |
| @@ -716,6 +720,9 @@ func (s *Server) mrPage(ctx context.Context, r *http.Request, since bool) (templ | |||
| 716 | 720 | p.Box.ReadyAction = mrHref(d.name(), n, "ready") | |
| 717 | 721 | } | |
| 718 | 722 | } | |
| 723 | + | if mergeErrorOf(ctx) != "" { | |
| 724 | + | p.Canonical = self | |
| 725 | + | } | |
| 719 | 726 | if p.Box == nil { | |
| 720 | 727 | p.MergeError = mergeErrorOf(ctx) // the request is not open any more | |
| 721 | 728 | } | |
| @@ -267,6 +267,10 @@ type MRPage struct { | |||||
| 267 | // MergeError is why a merge was refused when the page has no merge box | 267 | // MergeError is why a merge was refused when the page has no merge box | ||
| 268 | // to show it in (the request is not open any more). | 268 | // to show it in (the request is not open any more). | ||
| 269 | MergeError string | 269 | MergeError string | ||
| 270 | + | // Canonical is the address of the request, set when the page answers a | |||
| 271 | + | // refused action from the address of that action: the script puts it in | |||
| 272 | + | // the address bar, so that a reload does not post again. | |||
| 273 | + | Canonical string | |||
| 270 | 274 | ||||
| 271 | Since *SinceNav | 275 | Since *SinceNav | ||
| 272 | SinceNote string | 276 | SinceNote string | ||
| @@ -716,6 +720,9 @@ func (s *Server) mrPage(ctx context.Context, r *http.Request, since bool) (templ | |||||
| 716 | p.Box.ReadyAction = mrHref(d.name(), n, "ready") | 720 | p.Box.ReadyAction = mrHref(d.name(), n, "ready") | ||
| 717 | } | 721 | } | ||
| 718 | } | 722 | } | ||
| 723 | + | if mergeErrorOf(ctx) != "" { | |||
| 724 | + | p.Canonical = self | |||
| 725 | + | } | |||
| 719 | if p.Box == nil { | 726 | if p.Box == nil { | ||
| 720 | p.MergeError = mergeErrorOf(ctx) // the request is not open any more | 727 | p.MergeError = mergeErrorOf(ctx) // the request is not open any more | ||
| 721 | } | 728 | } | ||
M internal/adapters/web/mr.templ +6 -3
| @@ -185,6 +185,9 @@ templ MergeRequest(l Layout, p MRPage) { | |||
| 185 | 185 | <div | |
| 186 | 186 | id="diffs" | |
| 187 | 187 | data-mr | |
| 188 | + | if p.Canonical != "" { | |
| 189 | + | data-canonical={ p.Canonical } | |
| 190 | + | } | |
| 188 | 191 | if p.Both { | |
| 189 | 192 | data-diff={ p.View } | |
| 190 | 193 | } else { | |
| @@ -518,11 +521,11 @@ templ mergeMenu(p MRPage) { | |||
| 518 | 521 | </fieldset> | |
| 519 | 522 | if p.Box.Signed { | |
| 520 | 523 | <p class="d-note" id="mr-signing"> | |
| 521 | - | squash and merge commits are signed with ermite's own key, generated automatically on first start. | |
| 524 | + | squash and merge commits are signed with ermite's own key (generated on first start). | |
| 522 | 525 | if p.Box.Fingerprint != "" { | |
| 523 | - | { " " }key <code>{ p.Box.Fingerprint }</code>. | |
| 526 | + | fingerprint <code>{ p.Box.Fingerprint }</code> | |
| 524 | 527 | } | |
| 525 | - | { " " }<code>ermite signing-key show</code> prints the public key to verify them. | |
| 528 | + | <code>ermite signing-key show</code> prints it. | |
| 526 | 529 | </p> | |
| 527 | 530 | } | |
| 528 | 531 | if p.Box.CanDeleteBranch { | |
| @@ -185,6 +185,9 @@ templ MergeRequest(l Layout, p MRPage) { | |||||
| 185 | <div | 185 | <div | ||
| 186 | id="diffs" | 186 | id="diffs" | ||
| 187 | data-mr | 187 | data-mr | ||
| 188 | + | if p.Canonical != "" { | |||
| 189 | + | data-canonical={ p.Canonical } | |||
| 190 | + | } | |||
| 188 | if p.Both { | 191 | if p.Both { | ||
| 189 | data-diff={ p.View } | 192 | data-diff={ p.View } | ||
| 190 | } else { | 193 | } else { | ||
| @@ -518,11 +521,11 @@ templ mergeMenu(p MRPage) { | |||||
| 518 | </fieldset> | 521 | </fieldset> | ||
| 519 | if p.Box.Signed { | 522 | if p.Box.Signed { | ||
| 520 | <p class="d-note" id="mr-signing"> | 523 | <p class="d-note" id="mr-signing"> | ||
| 521 | - | squash and merge commits are signed with ermite's own key, generated automatically on first start. | 524 | + | squash and merge commits are signed with ermite's own key (generated on first start). |
| 522 | if p.Box.Fingerprint != "" { | 525 | if p.Box.Fingerprint != "" { | ||
| 523 | - | { " " }key <code>{ p.Box.Fingerprint }</code>. | 526 | + | fingerprint <code>{ p.Box.Fingerprint }</code> |
| 524 | } | 527 | } | ||
| 525 | - | { " " }<code>ermite signing-key show</code> prints the public key to verify them. | 528 | + | <code>ermite signing-key show</code> prints it. |
| 526 | </p> | 529 | </p> | ||
| 527 | } | 530 | } | ||
| 528 | if p.Box.CanDeleteBranch { | 531 | if p.Box.CanDeleteBranch { | ||
M internal/adapters/web/mr_templ.go +756 -755
| @@ -1025,15 +1025,15 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 1025 | 1025 | if templ_7745c5c3_Err != nil { | |
| 1026 | 1026 | return templ_7745c5c3_Err | |
| 1027 | 1027 | } | |
| 1028 | - | if p.Both { | |
| 1029 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, " data-diff=\"") | |
| 1028 | + | if p.Canonical != "" { | |
| 1029 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, " data-canonical=\"") | |
| 1030 | 1030 | if templ_7745c5c3_Err != nil { | |
| 1031 | 1031 | return templ_7745c5c3_Err | |
| 1032 | 1032 | } | |
| 1033 | 1033 | var templ_7745c5c3_Var51 string | |
| 1034 | - | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 1034 | + | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Canonical) | |
| 1035 | 1035 | if templ_7745c5c3_Err != nil { | |
| 1036 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 189, Col: 22} | |
| 1036 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 189, Col: 32} | |
| 1037 | 1037 | } | |
| 1038 | 1038 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var51) | |
| 1039 | 1039 | if templ_7745c5c3_Err != nil { | |
| @@ -1043,15 +1043,16 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 1043 | 1043 | if templ_7745c5c3_Err != nil { | |
| 1044 | 1044 | return templ_7745c5c3_Err | |
| 1045 | 1045 | } | |
| 1046 | - | } else { | |
| 1047 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 101, " data-view=\"") | |
| 1046 | + | } | |
| 1047 | + | if p.Both { | |
| 1048 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 101, " data-diff=\"") | |
| 1048 | 1049 | if templ_7745c5c3_Err != nil { | |
| 1049 | 1050 | return templ_7745c5c3_Err | |
| 1050 | 1051 | } | |
| 1051 | 1052 | var templ_7745c5c3_Var52 string | |
| 1052 | 1053 | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 1053 | 1054 | if templ_7745c5c3_Err != nil { | |
| 1054 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 191, Col: 22} | |
| 1055 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 192, Col: 22} | |
| 1055 | 1056 | } | |
| 1056 | 1057 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var52) | |
| 1057 | 1058 | if templ_7745c5c3_Err != nil { | |
| @@ -1061,14 +1062,32 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 1061 | 1062 | if templ_7745c5c3_Err != nil { | |
| 1062 | 1063 | return templ_7745c5c3_Err | |
| 1063 | 1064 | } | |
| 1065 | + | } else { | |
| 1066 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 103, " data-view=\"") | |
| 1067 | + | if templ_7745c5c3_Err != nil { | |
| 1068 | + | return templ_7745c5c3_Err | |
| 1069 | + | } | |
| 1070 | + | var templ_7745c5c3_Var53 string | |
| 1071 | + | templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 1072 | + | if templ_7745c5c3_Err != nil { | |
| 1073 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 194, Col: 22} | |
| 1074 | + | } | |
| 1075 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var53) | |
| 1076 | + | if templ_7745c5c3_Err != nil { | |
| 1077 | + | return templ_7745c5c3_Err | |
| 1078 | + | } | |
| 1079 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 104, "\"") | |
| 1080 | + | if templ_7745c5c3_Err != nil { | |
| 1081 | + | return templ_7745c5c3_Err | |
| 1082 | + | } | |
| 1064 | 1083 | } | |
| 1065 | 1084 | if p.Both && !p.Pinned { | |
| 1066 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 103, " hx-live=\"this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff\"") | |
| 1085 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 105, " hx-live=\"this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff\"") | |
| 1067 | 1086 | if templ_7745c5c3_Err != nil { | |
| 1068 | 1087 | return templ_7745c5c3_Err | |
| 1069 | 1088 | } | |
| 1070 | 1089 | } | |
| 1071 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 104, ">") | |
| 1090 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 106, ">") | |
| 1072 | 1091 | if templ_7745c5c3_Err != nil { | |
| 1073 | 1092 | return templ_7745c5c3_Err | |
| 1074 | 1093 | } | |
| @@ -1079,38 +1098,38 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 1079 | 1098 | } | |
| 1080 | 1099 | } | |
| 1081 | 1100 | if len(p.Files) == 0 { | |
| 1082 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 105, "<p class=\"note\">no changed files.</p>") | |
| 1101 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 107, "<p class=\"note\">no changed files.</p>") | |
| 1083 | 1102 | if templ_7745c5c3_Err != nil { | |
| 1084 | 1103 | return templ_7745c5c3_Err | |
| 1085 | 1104 | } | |
| 1086 | 1105 | } | |
| 1087 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 106, "</div><h2 class=\"rule-h\" id=\"comments\"><span>Comments</span><span class=\"count\">") | |
| 1106 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 108, "</div><h2 class=\"rule-h\" id=\"comments\"><span>Comments</span><span class=\"count\">") | |
| 1088 | 1107 | if templ_7745c5c3_Err != nil { | |
| 1089 | 1108 | return templ_7745c5c3_Err | |
| 1090 | 1109 | } | |
| 1091 | - | var templ_7745c5c3_Var53 string | |
| 1092 | - | templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NUnresolved)) | |
| 1110 | + | var templ_7745c5c3_Var54 string | |
| 1111 | + | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NUnresolved)) | |
| 1093 | 1112 | if templ_7745c5c3_Err != nil { | |
| 1094 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 204, Col: 97} | |
| 1113 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 207, Col: 97} | |
| 1095 | 1114 | } | |
| 1096 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var53)) | |
| 1115 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | |
| 1097 | 1116 | if templ_7745c5c3_Err != nil { | |
| 1098 | 1117 | return templ_7745c5c3_Err | |
| 1099 | 1118 | } | |
| 1100 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 107, " open / ") | |
| 1119 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 109, " open / ") | |
| 1101 | 1120 | if templ_7745c5c3_Err != nil { | |
| 1102 | 1121 | return templ_7745c5c3_Err | |
| 1103 | 1122 | } | |
| 1104 | - | var templ_7745c5c3_Var54 string | |
| 1105 | - | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NComments)) | |
| 1123 | + | var templ_7745c5c3_Var55 string | |
| 1124 | + | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NComments)) | |
| 1106 | 1125 | if templ_7745c5c3_Err != nil { | |
| 1107 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 204, Col: 126} | |
| 1126 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 207, Col: 126} | |
| 1108 | 1127 | } | |
| 1109 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | |
| 1128 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) | |
| 1110 | 1129 | if templ_7745c5c3_Err != nil { | |
| 1111 | 1130 | return templ_7745c5c3_Err | |
| 1112 | 1131 | } | |
| 1113 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 108, "</span></h2>") | |
| 1132 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 110, "</span></h2>") | |
| 1114 | 1133 | if templ_7745c5c3_Err != nil { | |
| 1115 | 1134 | return templ_7745c5c3_Err | |
| 1116 | 1135 | } | |
| @@ -1126,17 +1145,17 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 1126 | 1145 | return templ_7745c5c3_Err | |
| 1127 | 1146 | } | |
| 1128 | 1147 | } | |
| 1129 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 109, " ") | |
| 1148 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 111, " ") | |
| 1130 | 1149 | if templ_7745c5c3_Err != nil { | |
| 1131 | 1150 | return templ_7745c5c3_Err | |
| 1132 | 1151 | } | |
| 1133 | 1152 | if p.NComments == 0 { | |
| 1134 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 110, "<p class=\"dim\">no comments yet.</p>") | |
| 1153 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "<p class=\"dim\">no comments yet.</p>") | |
| 1135 | 1154 | if templ_7745c5c3_Err != nil { | |
| 1136 | 1155 | return templ_7745c5c3_Err | |
| 1137 | 1156 | } | |
| 1138 | 1157 | } | |
| 1139 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 111, " ") | |
| 1158 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 113, " ") | |
| 1140 | 1159 | if templ_7745c5c3_Err != nil { | |
| 1141 | 1160 | return templ_7745c5c3_Err | |
| 1142 | 1161 | } | |
| @@ -1172,49 +1191,49 @@ func branchLink(name, href string) templ.Component { | |||
| 1172 | 1191 | }() | |
| 1173 | 1192 | } | |
| 1174 | 1193 | ctx = templ.InitializeContext(ctx) | |
| 1175 | - | templ_7745c5c3_Var55 := templ.GetChildren(ctx) | |
| 1176 | - | if templ_7745c5c3_Var55 == nil { | |
| 1177 | - | templ_7745c5c3_Var55 = templ.NopComponent | |
| 1194 | + | templ_7745c5c3_Var56 := templ.GetChildren(ctx) | |
| 1195 | + | if templ_7745c5c3_Var56 == nil { | |
| 1196 | + | templ_7745c5c3_Var56 = templ.NopComponent | |
| 1178 | 1197 | } | |
| 1179 | 1198 | ctx = templ.ClearChildren(ctx) | |
| 1180 | 1199 | if href != "" { | |
| 1181 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "<a href=\"") | |
| 1200 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 114, "<a href=\"") | |
| 1182 | 1201 | if templ_7745c5c3_Err != nil { | |
| 1183 | 1202 | return templ_7745c5c3_Err | |
| 1184 | 1203 | } | |
| 1185 | - | var templ_7745c5c3_Var56 templ.SafeURL | |
| 1186 | - | templ_7745c5c3_Var56, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | |
| 1204 | + | var templ_7745c5c3_Var57 templ.SafeURL | |
| 1205 | + | templ_7745c5c3_Var57, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | |
| 1187 | 1206 | if templ_7745c5c3_Err != nil { | |
| 1188 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 222, Col: 31} | |
| 1207 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 225, Col: 31} | |
| 1189 | 1208 | } | |
| 1190 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var56)) | |
| 1209 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var57)) | |
| 1191 | 1210 | if templ_7745c5c3_Err != nil { | |
| 1192 | 1211 | return templ_7745c5c3_Err | |
| 1193 | 1212 | } | |
| 1194 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 113, "\">") | |
| 1213 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 115, "\">") | |
| 1195 | 1214 | if templ_7745c5c3_Err != nil { | |
| 1196 | 1215 | return templ_7745c5c3_Err | |
| 1197 | 1216 | } | |
| 1198 | - | var templ_7745c5c3_Var57 string | |
| 1199 | - | templ_7745c5c3_Var57, templ_7745c5c3_Err = templ.JoinStringErrs(name) | |
| 1217 | + | var templ_7745c5c3_Var58 string | |
| 1218 | + | templ_7745c5c3_Var58, templ_7745c5c3_Err = templ.JoinStringErrs(name) | |
| 1200 | 1219 | if templ_7745c5c3_Err != nil { | |
| 1201 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 222, Col: 40} | |
| 1220 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 225, Col: 40} | |
| 1202 | 1221 | } | |
| 1203 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var57)) | |
| 1222 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var58)) | |
| 1204 | 1223 | if templ_7745c5c3_Err != nil { | |
| 1205 | 1224 | return templ_7745c5c3_Err | |
| 1206 | 1225 | } | |
| 1207 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 114, "</a>") | |
| 1226 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 116, "</a>") | |
| 1208 | 1227 | if templ_7745c5c3_Err != nil { | |
| 1209 | 1228 | return templ_7745c5c3_Err | |
| 1210 | 1229 | } | |
| 1211 | 1230 | } else { | |
| 1212 | - | var templ_7745c5c3_Var58 string | |
| 1213 | - | templ_7745c5c3_Var58, templ_7745c5c3_Err = templ.JoinStringErrs(name) | |
| 1231 | + | var templ_7745c5c3_Var59 string | |
| 1232 | + | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.JoinStringErrs(name) | |
| 1214 | 1233 | if templ_7745c5c3_Err != nil { | |
| 1215 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 224, Col: 8} | |
| 1234 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 227, Col: 8} | |
| 1216 | 1235 | } | |
| 1217 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var58)) | |
| 1236 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var59)) | |
| 1218 | 1237 | if templ_7745c5c3_Err != nil { | |
| 1219 | 1238 | return templ_7745c5c3_Err | |
| 1220 | 1239 | } | |
| @@ -1242,9 +1261,9 @@ func lineNotes(notes []CommentView, form *CommentForm, suffix string) templ.Comp | |||
| 1242 | 1261 | }() | |
| 1243 | 1262 | } | |
| 1244 | 1263 | ctx = templ.InitializeContext(ctx) | |
| 1245 | - | templ_7745c5c3_Var59 := templ.GetChildren(ctx) | |
| 1246 | - | if templ_7745c5c3_Var59 == nil { | |
| 1247 | - | templ_7745c5c3_Var59 = templ.NopComponent | |
| 1264 | + | templ_7745c5c3_Var60 := templ.GetChildren(ctx) | |
| 1265 | + | if templ_7745c5c3_Var60 == nil { | |
| 1266 | + | templ_7745c5c3_Var60 = templ.NopComponent | |
| 1248 | 1267 | } | |
| 1249 | 1268 | ctx = templ.ClearChildren(ctx) | |
| 1250 | 1269 | for _, c := range notes { | |
| @@ -1281,134 +1300,119 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1281 | 1300 | }() | |
| 1282 | 1301 | } | |
| 1283 | 1302 | ctx = templ.InitializeContext(ctx) | |
| 1284 | - | templ_7745c5c3_Var60 := templ.GetChildren(ctx) | |
| 1285 | - | if templ_7745c5c3_Var60 == nil { | |
| 1286 | - | templ_7745c5c3_Var60 = templ.NopComponent | |
| 1303 | + | templ_7745c5c3_Var61 := templ.GetChildren(ctx) | |
| 1304 | + | if templ_7745c5c3_Var61 == nil { | |
| 1305 | + | templ_7745c5c3_Var61 = templ.NopComponent | |
| 1287 | 1306 | } | |
| 1288 | 1307 | ctx = templ.ClearChildren(ctx) | |
| 1289 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 115, "<div class=\"cmt\" id=\"") | |
| 1308 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, "<div class=\"cmt\" id=\"") | |
| 1290 | 1309 | if templ_7745c5c3_Err != nil { | |
| 1291 | 1310 | return templ_7745c5c3_Err | |
| 1292 | 1311 | } | |
| 1293 | - | var templ_7745c5c3_Var61 string | |
| 1294 | - | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.ResolveAttributeValue("c" + c.ID + suffix) | |
| 1312 | + | var templ_7745c5c3_Var62 string | |
| 1313 | + | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.ResolveAttributeValue("c" + c.ID + suffix) | |
| 1295 | 1314 | if templ_7745c5c3_Err != nil { | |
| 1296 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 243, Col: 42} | |
| 1315 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 246, Col: 42} | |
| 1297 | 1316 | } | |
| 1298 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var61) | |
| 1317 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var62) | |
| 1299 | 1318 | if templ_7745c5c3_Err != nil { | |
| 1300 | 1319 | return templ_7745c5c3_Err | |
| 1301 | 1320 | } | |
| 1302 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 116, "\" data-resolved=\"") | |
| 1321 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 118, "\" data-resolved=\"") | |
| 1303 | 1322 | if templ_7745c5c3_Err != nil { | |
| 1304 | 1323 | return templ_7745c5c3_Err | |
| 1305 | 1324 | } | |
| 1306 | - | var templ_7745c5c3_Var62 string | |
| 1307 | - | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolved)) | |
| 1325 | + | var templ_7745c5c3_Var63 string | |
| 1326 | + | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolved)) | |
| 1308 | 1327 | if templ_7745c5c3_Err != nil { | |
| 1309 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 243, Col: 81} | |
| 1328 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 246, Col: 81} | |
| 1310 | 1329 | } | |
| 1311 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var62) | |
| 1330 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var63) | |
| 1312 | 1331 | if templ_7745c5c3_Err != nil { | |
| 1313 | 1332 | return templ_7745c5c3_Err | |
| 1314 | 1333 | } | |
| 1315 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, "\"") | |
| 1334 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 119, "\"") | |
| 1316 | 1335 | if templ_7745c5c3_Err != nil { | |
| 1317 | 1336 | return templ_7745c5c3_Err | |
| 1318 | 1337 | } | |
| 1319 | 1338 | if c.Reply != nil { | |
| 1320 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 118, " data-thread") | |
| 1339 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 120, " data-thread") | |
| 1321 | 1340 | if templ_7745c5c3_Err != nil { | |
| 1322 | 1341 | return templ_7745c5c3_Err | |
| 1323 | 1342 | } | |
| 1324 | 1343 | } | |
| 1325 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 119, "><p class=\"c-head\"><span class=\"c-who\">") | |
| 1344 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 121, "><p class=\"c-head\"><span class=\"c-who\">") | |
| 1326 | 1345 | if templ_7745c5c3_Err != nil { | |
| 1327 | 1346 | return templ_7745c5c3_Err | |
| 1328 | 1347 | } | |
| 1329 | - | var templ_7745c5c3_Var63 string | |
| 1330 | - | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 1348 | + | var templ_7745c5c3_Var64 string | |
| 1349 | + | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 1331 | 1350 | if templ_7745c5c3_Err != nil { | |
| 1332 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 245, Col: 33} | |
| 1351 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 248, Col: 33} | |
| 1333 | 1352 | } | |
| 1334 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var63)) | |
| 1353 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var64)) | |
| 1335 | 1354 | if templ_7745c5c3_Err != nil { | |
| 1336 | 1355 | return templ_7745c5c3_Err | |
| 1337 | 1356 | } | |
| 1338 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 120, "</span> ") | |
| 1357 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 122, "</span> ") | |
| 1339 | 1358 | if templ_7745c5c3_Err != nil { | |
| 1340 | 1359 | return templ_7745c5c3_Err | |
| 1341 | 1360 | } | |
| 1342 | 1361 | if c.WhenAt != "" { | |
| 1343 | - | var templ_7745c5c3_Var64 string | |
| 1344 | - | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1345 | - | if templ_7745c5c3_Err != nil { | |
| 1346 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 9} | |
| 1347 | - | } | |
| 1348 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var64)) | |
| 1349 | - | if templ_7745c5c3_Err != nil { | |
| 1350 | - | return templ_7745c5c3_Err | |
| 1351 | - | } | |
| 1352 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 121, "<time class=\"mute\" datetime=\"") | |
| 1353 | - | if templ_7745c5c3_Err != nil { | |
| 1354 | - | return templ_7745c5c3_Err | |
| 1355 | - | } | |
| 1356 | 1362 | var templ_7745c5c3_Var65 string | |
| 1357 | - | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 1363 | + | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1358 | 1364 | if templ_7745c5c3_Err != nil { | |
| 1359 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 49} | |
| 1365 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 9} | |
| 1360 | 1366 | } | |
| 1361 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var65) | |
| 1367 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var65)) | |
| 1362 | 1368 | if templ_7745c5c3_Err != nil { | |
| 1363 | 1369 | return templ_7745c5c3_Err | |
| 1364 | 1370 | } | |
| 1365 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 122, "\" title=\"") | |
| 1371 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 123, "<time class=\"mute\" datetime=\"") | |
| 1366 | 1372 | if templ_7745c5c3_Err != nil { | |
| 1367 | 1373 | return templ_7745c5c3_Err | |
| 1368 | 1374 | } | |
| 1369 | 1375 | var templ_7745c5c3_Var66 string | |
| 1370 | - | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Abs) | |
| 1376 | + | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 1371 | 1377 | if templ_7745c5c3_Err != nil { | |
| 1372 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 65} | |
| 1378 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 49} | |
| 1373 | 1379 | } | |
| 1374 | 1380 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var66) | |
| 1375 | 1381 | if templ_7745c5c3_Err != nil { | |
| 1376 | 1382 | return templ_7745c5c3_Err | |
| 1377 | 1383 | } | |
| 1378 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 123, "\">") | |
| 1384 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 124, "\" title=\"") | |
| 1379 | 1385 | if templ_7745c5c3_Err != nil { | |
| 1380 | 1386 | return templ_7745c5c3_Err | |
| 1381 | 1387 | } | |
| 1382 | 1388 | var templ_7745c5c3_Var67 string | |
| 1383 | - | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 1389 | + | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Abs) | |
| 1384 | 1390 | if templ_7745c5c3_Err != nil { | |
| 1385 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 76} | |
| 1391 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 65} | |
| 1386 | 1392 | } | |
| 1387 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) | |
| 1393 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var67) | |
| 1388 | 1394 | if templ_7745c5c3_Err != nil { | |
| 1389 | 1395 | return templ_7745c5c3_Err | |
| 1390 | 1396 | } | |
| 1391 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 124, "</time> ") | |
| 1397 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 125, "\">") | |
| 1392 | 1398 | if templ_7745c5c3_Err != nil { | |
| 1393 | 1399 | return templ_7745c5c3_Err | |
| 1394 | 1400 | } | |
| 1395 | - | } | |
| 1396 | - | if c.Resolved { | |
| 1397 | 1401 | var templ_7745c5c3_Var68 string | |
| 1398 | - | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1402 | + | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 1399 | 1403 | if templ_7745c5c3_Err != nil { | |
| 1400 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 9} | |
| 1404 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 76} | |
| 1401 | 1405 | } | |
| 1402 | 1406 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | |
| 1403 | 1407 | if templ_7745c5c3_Err != nil { | |
| 1404 | 1408 | return templ_7745c5c3_Err | |
| 1405 | 1409 | } | |
| 1406 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 125, "<span class=\"c-state\">resolved</span> ") | |
| 1410 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 126, "</time> ") | |
| 1407 | 1411 | if templ_7745c5c3_Err != nil { | |
| 1408 | 1412 | return templ_7745c5c3_Err | |
| 1409 | 1413 | } | |
| 1410 | 1414 | } | |
| 1411 | - | if c.Outdated { | |
| 1415 | + | if c.Resolved { | |
| 1412 | 1416 | var templ_7745c5c3_Var69 string | |
| 1413 | 1417 | templ_7745c5c3_Var69, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1414 | 1418 | if templ_7745c5c3_Err != nil { | |
| @@ -1418,12 +1422,12 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1418 | 1422 | if templ_7745c5c3_Err != nil { | |
| 1419 | 1423 | return templ_7745c5c3_Err | |
| 1420 | 1424 | } | |
| 1421 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 126, "<span class=\"c-state\" title=\"written on an earlier head; the line may have moved\">outdated</span> ") | |
| 1425 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 127, "<span class=\"c-state\">resolved</span> ") | |
| 1422 | 1426 | if templ_7745c5c3_Err != nil { | |
| 1423 | 1427 | return templ_7745c5c3_Err | |
| 1424 | 1428 | } | |
| 1425 | 1429 | } | |
| 1426 | - | if c.Where != "" { | |
| 1430 | + | if c.Outdated { | |
| 1427 | 1431 | var templ_7745c5c3_Var70 string | |
| 1428 | 1432 | templ_7745c5c3_Var70, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1429 | 1433 | if templ_7745c5c3_Err != nil { | |
| @@ -1433,30 +1437,45 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1433 | 1437 | if templ_7745c5c3_Err != nil { | |
| 1434 | 1438 | return templ_7745c5c3_Err | |
| 1435 | 1439 | } | |
| 1436 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 127, "<span class=\"c-where mute\">") | |
| 1440 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 128, "<span class=\"c-state\" title=\"written on an earlier head; the line may have moved\">outdated</span> ") | |
| 1437 | 1441 | if templ_7745c5c3_Err != nil { | |
| 1438 | 1442 | return templ_7745c5c3_Err | |
| 1439 | 1443 | } | |
| 1444 | + | } | |
| 1445 | + | if c.Where != "" { | |
| 1440 | 1446 | var templ_7745c5c3_Var71 string | |
| 1441 | - | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.JoinStringErrs(c.Where) | |
| 1447 | + | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1442 | 1448 | if templ_7745c5c3_Err != nil { | |
| 1443 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 256, Col: 47} | |
| 1449 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 259, Col: 9} | |
| 1444 | 1450 | } | |
| 1445 | 1451 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var71)) | |
| 1446 | 1452 | if templ_7745c5c3_Err != nil { | |
| 1447 | 1453 | return templ_7745c5c3_Err | |
| 1448 | 1454 | } | |
| 1449 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 128, "</span>") | |
| 1455 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 129, "<span class=\"c-where mute\">") | |
| 1456 | + | if templ_7745c5c3_Err != nil { | |
| 1457 | + | return templ_7745c5c3_Err | |
| 1458 | + | } | |
| 1459 | + | var templ_7745c5c3_Var72 string | |
| 1460 | + | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.JoinStringErrs(c.Where) | |
| 1461 | + | if templ_7745c5c3_Err != nil { | |
| 1462 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 259, Col: 47} | |
| 1463 | + | } | |
| 1464 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var72)) | |
| 1465 | + | if templ_7745c5c3_Err != nil { | |
| 1466 | + | return templ_7745c5c3_Err | |
| 1467 | + | } | |
| 1468 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 130, "</span>") | |
| 1450 | 1469 | if templ_7745c5c3_Err != nil { | |
| 1451 | 1470 | return templ_7745c5c3_Err | |
| 1452 | 1471 | } | |
| 1453 | 1472 | } | |
| 1454 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 129, "</p>") | |
| 1473 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 131, "</p>") | |
| 1455 | 1474 | if templ_7745c5c3_Err != nil { | |
| 1456 | 1475 | return templ_7745c5c3_Err | |
| 1457 | 1476 | } | |
| 1458 | 1477 | if len(c.Parts) > 0 { | |
| 1459 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 130, "<p class=\"c-text\">") | |
| 1478 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 132, "<p class=\"c-text\">") | |
| 1460 | 1479 | if templ_7745c5c3_Err != nil { | |
| 1461 | 1480 | return templ_7745c5c3_Err | |
| 1462 | 1481 | } | |
| @@ -1464,24 +1483,24 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1464 | 1483 | if templ_7745c5c3_Err != nil { | |
| 1465 | 1484 | return templ_7745c5c3_Err | |
| 1466 | 1485 | } | |
| 1467 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 131, "</p>") | |
| 1486 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 133, "</p>") | |
| 1468 | 1487 | if templ_7745c5c3_Err != nil { | |
| 1469 | 1488 | return templ_7745c5c3_Err | |
| 1470 | 1489 | } | |
| 1471 | 1490 | } else if c.Deleted { | |
| 1472 | 1491 | if c.Verdict != "" { | |
| 1473 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 132, "<p class=\"mute\">text deleted</p>") | |
| 1492 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 134, "<p class=\"mute\">text deleted</p>") | |
| 1474 | 1493 | if templ_7745c5c3_Err != nil { | |
| 1475 | 1494 | return templ_7745c5c3_Err | |
| 1476 | 1495 | } | |
| 1477 | 1496 | } else { | |
| 1478 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 133, "<p class=\"mute\">deleted note</p>") | |
| 1497 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 135, "<p class=\"mute\">deleted note</p>") | |
| 1479 | 1498 | if templ_7745c5c3_Err != nil { | |
| 1480 | 1499 | return templ_7745c5c3_Err | |
| 1481 | 1500 | } | |
| 1482 | 1501 | } | |
| 1483 | 1502 | } else { | |
| 1484 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 134, "<div class=\"c-body prose\">") | |
| 1503 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 136, "<div class=\"c-body prose\">") | |
| 1485 | 1504 | if templ_7745c5c3_Err != nil { | |
| 1486 | 1505 | return templ_7745c5c3_Err | |
| 1487 | 1506 | } | |
| @@ -1496,147 +1515,147 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1496 | 1515 | return templ_7745c5c3_Err | |
| 1497 | 1516 | } | |
| 1498 | 1517 | } | |
| 1499 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 135, "</div>") | |
| 1518 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 137, "</div>") | |
| 1500 | 1519 | if templ_7745c5c3_Err != nil { | |
| 1501 | 1520 | return templ_7745c5c3_Err | |
| 1502 | 1521 | } | |
| 1503 | 1522 | } | |
| 1504 | 1523 | if c.Edited { | |
| 1505 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 136, "<span class=\"mute\">edited</span> ") | |
| 1524 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 138, "<span class=\"mute\">edited</span> ") | |
| 1506 | 1525 | if templ_7745c5c3_Err != nil { | |
| 1507 | 1526 | return templ_7745c5c3_Err | |
| 1508 | 1527 | } | |
| 1509 | 1528 | } | |
| 1510 | 1529 | if c.Verdict != "" { | |
| 1511 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 137, "<span class=\"c-state\">") | |
| 1530 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 139, "<span class=\"c-state\">") | |
| 1512 | 1531 | if templ_7745c5c3_Err != nil { | |
| 1513 | 1532 | return templ_7745c5c3_Err | |
| 1514 | 1533 | } | |
| 1515 | - | var templ_7745c5c3_Var72 string | |
| 1516 | - | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.JoinStringErrs(c.Verdict) | |
| 1534 | + | var templ_7745c5c3_Var73 string | |
| 1535 | + | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinStringErrs(c.Verdict) | |
| 1517 | 1536 | if templ_7745c5c3_Err != nil { | |
| 1518 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 280, Col: 36} | |
| 1537 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 283, Col: 36} | |
| 1519 | 1538 | } | |
| 1520 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var72)) | |
| 1539 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) | |
| 1521 | 1540 | if templ_7745c5c3_Err != nil { | |
| 1522 | 1541 | return templ_7745c5c3_Err | |
| 1523 | 1542 | } | |
| 1524 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 138, "</span> ") | |
| 1543 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 140, "</span> ") | |
| 1525 | 1544 | if templ_7745c5c3_Err != nil { | |
| 1526 | 1545 | return templ_7745c5c3_Err | |
| 1527 | 1546 | } | |
| 1528 | 1547 | } | |
| 1529 | 1548 | if c.Range != "" { | |
| 1530 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 139, "<span class=\"mute\">") | |
| 1549 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 141, "<span class=\"mute\">") | |
| 1531 | 1550 | if templ_7745c5c3_Err != nil { | |
| 1532 | 1551 | return templ_7745c5c3_Err | |
| 1533 | 1552 | } | |
| 1534 | - | var templ_7745c5c3_Var73 string | |
| 1535 | - | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinStringErrs(c.Range) | |
| 1553 | + | var templ_7745c5c3_Var74 string | |
| 1554 | + | templ_7745c5c3_Var74, templ_7745c5c3_Err = templ.JoinStringErrs(c.Range) | |
| 1536 | 1555 | if templ_7745c5c3_Err != nil { | |
| 1537 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 283, Col: 31} | |
| 1556 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 286, Col: 31} | |
| 1538 | 1557 | } | |
| 1539 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) | |
| 1558 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var74)) | |
| 1540 | 1559 | if templ_7745c5c3_Err != nil { | |
| 1541 | 1560 | return templ_7745c5c3_Err | |
| 1542 | 1561 | } | |
| 1543 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 140, "</span> ") | |
| 1562 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 142, "</span> ") | |
| 1544 | 1563 | if templ_7745c5c3_Err != nil { | |
| 1545 | 1564 | return templ_7745c5c3_Err | |
| 1546 | 1565 | } | |
| 1547 | 1566 | } | |
| 1548 | 1567 | if c.Quote != "" { | |
| 1549 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 141, "<button type=\"button\" class=\"btn\" data-js data-quote=\"") | |
| 1568 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 143, "<button type=\"button\" class=\"btn\" data-js data-quote=\"") | |
| 1550 | 1569 | if templ_7745c5c3_Err != nil { | |
| 1551 | 1570 | return templ_7745c5c3_Err | |
| 1552 | 1571 | } | |
| 1553 | - | var templ_7745c5c3_Var74 string | |
| 1554 | - | templ_7745c5c3_Var74, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Quote) | |
| 1572 | + | var templ_7745c5c3_Var75 string | |
| 1573 | + | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Quote) | |
| 1555 | 1574 | if templ_7745c5c3_Err != nil { | |
| 1556 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 286, Col: 65} | |
| 1575 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 65} | |
| 1557 | 1576 | } | |
| 1558 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var74) | |
| 1577 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var75) | |
| 1559 | 1578 | if templ_7745c5c3_Err != nil { | |
| 1560 | 1579 | return templ_7745c5c3_Err | |
| 1561 | 1580 | } | |
| 1562 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 142, "\">Quote</button> ") | |
| 1581 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 144, "\">Quote</button> ") | |
| 1563 | 1582 | if templ_7745c5c3_Err != nil { | |
| 1564 | 1583 | return templ_7745c5c3_Err | |
| 1565 | 1584 | } | |
| 1566 | 1585 | } | |
| 1567 | 1586 | if c.Edit != nil { | |
| 1568 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 143, "<details><summary>Edit</summary><form method=\"post\" action=\"") | |
| 1587 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 145, "<details><summary>Edit</summary><form method=\"post\" action=\"") | |
| 1569 | 1588 | if templ_7745c5c3_Err != nil { | |
| 1570 | 1589 | return templ_7745c5c3_Err | |
| 1571 | 1590 | } | |
| 1572 | - | var templ_7745c5c3_Var75 templ.SafeURL | |
| 1573 | - | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Edit.Action)) | |
| 1591 | + | var templ_7745c5c3_Var76 templ.SafeURL | |
| 1592 | + | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Edit.Action)) | |
| 1574 | 1593 | if templ_7745c5c3_Err != nil { | |
| 1575 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 92} | |
| 1594 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 92} | |
| 1576 | 1595 | } | |
| 1577 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var75)) | |
| 1596 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var76)) | |
| 1578 | 1597 | if templ_7745c5c3_Err != nil { | |
| 1579 | 1598 | return templ_7745c5c3_Err | |
| 1580 | 1599 | } | |
| 1581 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 144, "\"><input type=\"hidden\" name=\"from\" value=\"") | |
| 1600 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 146, "\"><input type=\"hidden\" name=\"from\" value=\"") | |
| 1582 | 1601 | if templ_7745c5c3_Err != nil { | |
| 1583 | 1602 | return templ_7745c5c3_Err | |
| 1584 | 1603 | } | |
| 1585 | - | var templ_7745c5c3_Var76 string | |
| 1586 | - | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Edit.From)) | |
| 1604 | + | var templ_7745c5c3_Var77 string | |
| 1605 | + | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Edit.From)) | |
| 1587 | 1606 | if templ_7745c5c3_Err != nil { | |
| 1588 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 153} | |
| 1607 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 153} | |
| 1589 | 1608 | } | |
| 1590 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var76) | |
| 1609 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var77) | |
| 1591 | 1610 | if templ_7745c5c3_Err != nil { | |
| 1592 | 1611 | return templ_7745c5c3_Err | |
| 1593 | 1612 | } | |
| 1594 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 145, "\"><textarea name=\"text\" maxlength=\"8000\">") | |
| 1613 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 147, "\"><textarea name=\"text\" maxlength=\"8000\">") | |
| 1595 | 1614 | if templ_7745c5c3_Err != nil { | |
| 1596 | 1615 | return templ_7745c5c3_Err | |
| 1597 | 1616 | } | |
| 1598 | - | var templ_7745c5c3_Var77 string | |
| 1599 | - | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.JoinStringErrs(c.Edit.Text) | |
| 1617 | + | var templ_7745c5c3_Var78 string | |
| 1618 | + | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.JoinStringErrs(c.Edit.Text) | |
| 1600 | 1619 | if templ_7745c5c3_Err != nil { | |
| 1601 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 209} | |
| 1620 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 209} | |
| 1602 | 1621 | } | |
| 1603 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var77)) | |
| 1622 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var78)) | |
| 1604 | 1623 | if templ_7745c5c3_Err != nil { | |
| 1605 | 1624 | return templ_7745c5c3_Err | |
| 1606 | 1625 | } | |
| 1607 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 146, "</textarea><button class=\"btn\" type=\"submit\">Save</button></form></details> ") | |
| 1626 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 148, "</textarea><button class=\"btn\" type=\"submit\">Save</button></form></details> ") | |
| 1608 | 1627 | if templ_7745c5c3_Err != nil { | |
| 1609 | 1628 | return templ_7745c5c3_Err | |
| 1610 | 1629 | } | |
| 1611 | 1630 | } | |
| 1612 | 1631 | if c.Delete != nil { | |
| 1613 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 147, "<details><summary>Delete</summary><form method=\"post\" action=\"") | |
| 1632 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 149, "<details><summary>Delete</summary><form method=\"post\" action=\"") | |
| 1614 | 1633 | if templ_7745c5c3_Err != nil { | |
| 1615 | 1634 | return templ_7745c5c3_Err | |
| 1616 | 1635 | } | |
| 1617 | - | var templ_7745c5c3_Var78 templ.SafeURL | |
| 1618 | - | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Delete.Action)) | |
| 1636 | + | var templ_7745c5c3_Var79 templ.SafeURL | |
| 1637 | + | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Delete.Action)) | |
| 1619 | 1638 | if templ_7745c5c3_Err != nil { | |
| 1620 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 96} | |
| 1639 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 295, Col: 96} | |
| 1621 | 1640 | } | |
| 1622 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var78)) | |
| 1641 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var79)) | |
| 1623 | 1642 | if templ_7745c5c3_Err != nil { | |
| 1624 | 1643 | return templ_7745c5c3_Err | |
| 1625 | 1644 | } | |
| 1626 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 148, "\"><input type=\"hidden\" name=\"from\" value=\"") | |
| 1645 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 150, "\"><input type=\"hidden\" name=\"from\" value=\"") | |
| 1627 | 1646 | if templ_7745c5c3_Err != nil { | |
| 1628 | 1647 | return templ_7745c5c3_Err | |
| 1629 | 1648 | } | |
| 1630 | - | var templ_7745c5c3_Var79 string | |
| 1631 | - | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Delete.From)) | |
| 1649 | + | var templ_7745c5c3_Var80 string | |
| 1650 | + | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Delete.From)) | |
| 1632 | 1651 | if templ_7745c5c3_Err != nil { | |
| 1633 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 159} | |
| 1652 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 295, Col: 159} | |
| 1634 | 1653 | } | |
| 1635 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var79) | |
| 1654 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var80) | |
| 1636 | 1655 | if templ_7745c5c3_Err != nil { | |
| 1637 | 1656 | return templ_7745c5c3_Err | |
| 1638 | 1657 | } | |
| 1639 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 149, "\"><p>Delete this note?</p><button class=\"btn\" type=\"submit\">Confirm delete</button></form></details> ") | |
| 1658 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 151, "\"><p>Delete this note?</p><button class=\"btn\" type=\"submit\">Confirm delete</button></form></details> ") | |
| 1640 | 1659 | if templ_7745c5c3_Err != nil { | |
| 1641 | 1660 | return templ_7745c5c3_Err | |
| 1642 | 1661 | } | |
| @@ -1648,7 +1667,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1648 | 1667 | } | |
| 1649 | 1668 | } | |
| 1650 | 1669 | if c.Reply != nil { | |
| 1651 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 150, "<details data-reply><summary>Reply</summary>") | |
| 1670 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 152, "<details data-reply><summary>Reply</summary>") | |
| 1652 | 1671 | if templ_7745c5c3_Err != nil { | |
| 1653 | 1672 | return templ_7745c5c3_Err | |
| 1654 | 1673 | } | |
| @@ -1656,80 +1675,80 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1656 | 1675 | if templ_7745c5c3_Err != nil { | |
| 1657 | 1676 | return templ_7745c5c3_Err | |
| 1658 | 1677 | } | |
| 1659 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 151, "</details> ") | |
| 1678 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 153, "</details> ") | |
| 1660 | 1679 | if templ_7745c5c3_Err != nil { | |
| 1661 | 1680 | return templ_7745c5c3_Err | |
| 1662 | 1681 | } | |
| 1663 | 1682 | } | |
| 1664 | 1683 | if c.Resolve != nil { | |
| 1665 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 152, "<form class=\"c-act\" method=\"post\" action=\"") | |
| 1684 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 154, "<form class=\"c-act\" method=\"post\" action=\"") | |
| 1666 | 1685 | if templ_7745c5c3_Err != nil { | |
| 1667 | 1686 | return templ_7745c5c3_Err | |
| 1668 | 1687 | } | |
| 1669 | - | var templ_7745c5c3_Var80 templ.SafeURL | |
| 1670 | - | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Resolve.Action)) | |
| 1688 | + | var templ_7745c5c3_Var81 templ.SafeURL | |
| 1689 | + | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Resolve.Action)) | |
| 1671 | 1690 | if templ_7745c5c3_Err != nil { | |
| 1672 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 303, Col: 77} | |
| 1691 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 306, Col: 77} | |
| 1673 | 1692 | } | |
| 1674 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var80)) | |
| 1693 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var81)) | |
| 1675 | 1694 | if templ_7745c5c3_Err != nil { | |
| 1676 | 1695 | return templ_7745c5c3_Err | |
| 1677 | 1696 | } | |
| 1678 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 153, "\"><input type=\"hidden\" name=\"resolved\" value=\"") | |
| 1697 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 155, "\"><input type=\"hidden\" name=\"resolved\" value=\"") | |
| 1679 | 1698 | if templ_7745c5c3_Err != nil { | |
| 1680 | 1699 | return templ_7745c5c3_Err | |
| 1681 | 1700 | } | |
| 1682 | - | var templ_7745c5c3_Var81 string | |
| 1683 | - | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolve.Value)) | |
| 1701 | + | var templ_7745c5c3_Var82 string | |
| 1702 | + | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolve.Value)) | |
| 1684 | 1703 | if templ_7745c5c3_Err != nil { | |
| 1685 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 304, Col: 74} | |
| 1704 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 307, Col: 74} | |
| 1686 | 1705 | } | |
| 1687 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var81) | |
| 1706 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var82) | |
| 1688 | 1707 | if templ_7745c5c3_Err != nil { | |
| 1689 | 1708 | return templ_7745c5c3_Err | |
| 1690 | 1709 | } | |
| 1691 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 154, "\"> ") | |
| 1710 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 156, "\"> ") | |
| 1692 | 1711 | if templ_7745c5c3_Err != nil { | |
| 1693 | 1712 | return templ_7745c5c3_Err | |
| 1694 | 1713 | } | |
| 1695 | 1714 | if c.Resolve.From > 0 { | |
| 1696 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 155, "<input type=\"hidden\" name=\"from\" value=\"") | |
| 1715 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 157, "<input type=\"hidden\" name=\"from\" value=\"") | |
| 1697 | 1716 | if templ_7745c5c3_Err != nil { | |
| 1698 | 1717 | return templ_7745c5c3_Err | |
| 1699 | 1718 | } | |
| 1700 | - | var templ_7745c5c3_Var82 string | |
| 1701 | - | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Resolve.From)) | |
| 1719 | + | var templ_7745c5c3_Var83 string | |
| 1720 | + | templ_7745c5c3_Var83, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Resolve.From)) | |
| 1702 | 1721 | if templ_7745c5c3_Err != nil { | |
| 1703 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 306, Col: 66} | |
| 1722 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 309, Col: 66} | |
| 1704 | 1723 | } | |
| 1705 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var82) | |
| 1724 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var83) | |
| 1706 | 1725 | if templ_7745c5c3_Err != nil { | |
| 1707 | 1726 | return templ_7745c5c3_Err | |
| 1708 | 1727 | } | |
| 1709 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 156, "\"> ") | |
| 1728 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 158, "\"> ") | |
| 1710 | 1729 | if templ_7745c5c3_Err != nil { | |
| 1711 | 1730 | return templ_7745c5c3_Err | |
| 1712 | 1731 | } | |
| 1713 | 1732 | } | |
| 1714 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 157, "<button type=\"submit\" class=\"btn\">") | |
| 1733 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 159, "<button type=\"submit\" class=\"btn\">") | |
| 1715 | 1734 | if templ_7745c5c3_Err != nil { | |
| 1716 | 1735 | return templ_7745c5c3_Err | |
| 1717 | 1736 | } | |
| 1718 | - | var templ_7745c5c3_Var83 string | |
| 1719 | - | templ_7745c5c3_Var83, templ_7745c5c3_Err = templ.JoinStringErrs(c.Resolve.Label) | |
| 1737 | + | var templ_7745c5c3_Var84 string | |
| 1738 | + | templ_7745c5c3_Var84, templ_7745c5c3_Err = templ.JoinStringErrs(c.Resolve.Label) | |
| 1720 | 1739 | if templ_7745c5c3_Err != nil { | |
| 1721 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 308, Col: 55} | |
| 1740 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 311, Col: 55} | |
| 1722 | 1741 | } | |
| 1723 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var83)) | |
| 1742 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var84)) | |
| 1724 | 1743 | if templ_7745c5c3_Err != nil { | |
| 1725 | 1744 | return templ_7745c5c3_Err | |
| 1726 | 1745 | } | |
| 1727 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 158, "</button></form>") | |
| 1746 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 160, "</button></form>") | |
| 1728 | 1747 | if templ_7745c5c3_Err != nil { | |
| 1729 | 1748 | return templ_7745c5c3_Err | |
| 1730 | 1749 | } | |
| 1731 | 1750 | } | |
| 1732 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 159, "</div>") | |
| 1751 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 161, "</div>") | |
| 1733 | 1752 | if templ_7745c5c3_Err != nil { | |
| 1734 | 1753 | return templ_7745c5c3_Err | |
| 1735 | 1754 | } | |
| @@ -1761,214 +1780,214 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1761 | 1780 | }() | |
| 1762 | 1781 | } | |
| 1763 | 1782 | ctx = templ.InitializeContext(ctx) | |
| 1764 | - | templ_7745c5c3_Var84 := templ.GetChildren(ctx) | |
| 1765 | - | if templ_7745c5c3_Var84 == nil { | |
| 1766 | - | templ_7745c5c3_Var84 = templ.NopComponent | |
| 1783 | + | templ_7745c5c3_Var85 := templ.GetChildren(ctx) | |
| 1784 | + | if templ_7745c5c3_Var85 == nil { | |
| 1785 | + | templ_7745c5c3_Var85 = templ.NopComponent | |
| 1767 | 1786 | } | |
| 1768 | 1787 | ctx = templ.ClearChildren(ctx) | |
| 1769 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 160, "<form class=\"cform\" method=\"post\" action=\"") | |
| 1788 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 162, "<form class=\"cform\" method=\"post\" action=\"") | |
| 1770 | 1789 | if templ_7745c5c3_Err != nil { | |
| 1771 | 1790 | return templ_7745c5c3_Err | |
| 1772 | 1791 | } | |
| 1773 | - | var templ_7745c5c3_Var85 templ.SafeURL | |
| 1774 | - | templ_7745c5c3_Var85, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Action)) | |
| 1792 | + | var templ_7745c5c3_Var86 templ.SafeURL | |
| 1793 | + | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Action)) | |
| 1775 | 1794 | if templ_7745c5c3_Err != nil { | |
| 1776 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 67} | |
| 1795 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 326, Col: 67} | |
| 1777 | 1796 | } | |
| 1778 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var85)) | |
| 1797 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var86)) | |
| 1779 | 1798 | if templ_7745c5c3_Err != nil { | |
| 1780 | 1799 | return templ_7745c5c3_Err | |
| 1781 | 1800 | } | |
| 1782 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 161, "\"><label for=\"") | |
| 1801 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 163, "\"><label for=\"") | |
| 1783 | 1802 | if templ_7745c5c3_Err != nil { | |
| 1784 | 1803 | return templ_7745c5c3_Err | |
| 1785 | 1804 | } | |
| 1786 | - | var templ_7745c5c3_Var86 string | |
| 1787 | - | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | |
| 1805 | + | var templ_7745c5c3_Var87 string | |
| 1806 | + | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | |
| 1788 | 1807 | if templ_7745c5c3_Err != nil { | |
| 1789 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 324, Col: 28} | |
| 1808 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 327, Col: 28} | |
| 1790 | 1809 | } | |
| 1791 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var86) | |
| 1810 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var87) | |
| 1792 | 1811 | if templ_7745c5c3_Err != nil { | |
| 1793 | 1812 | return templ_7745c5c3_Err | |
| 1794 | 1813 | } | |
| 1795 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 162, "\">") | |
| 1814 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 164, "\">") | |
| 1796 | 1815 | if templ_7745c5c3_Err != nil { | |
| 1797 | 1816 | return templ_7745c5c3_Err | |
| 1798 | 1817 | } | |
| 1799 | - | var templ_7745c5c3_Var87 string | |
| 1800 | - | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.JoinStringErrs(f.Title) | |
| 1818 | + | var templ_7745c5c3_Var88 string | |
| 1819 | + | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.JoinStringErrs(f.Title) | |
| 1801 | 1820 | if templ_7745c5c3_Err != nil { | |
| 1802 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 324, Col: 40} | |
| 1821 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 327, Col: 40} | |
| 1803 | 1822 | } | |
| 1804 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var87)) | |
| 1823 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var88)) | |
| 1805 | 1824 | if templ_7745c5c3_Err != nil { | |
| 1806 | 1825 | return templ_7745c5c3_Err | |
| 1807 | 1826 | } | |
| 1808 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 163, "</label> <textarea id=\"") | |
| 1827 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 165, "</label> <textarea id=\"") | |
| 1809 | 1828 | if templ_7745c5c3_Err != nil { | |
| 1810 | 1829 | return templ_7745c5c3_Err | |
| 1811 | 1830 | } | |
| 1812 | - | var templ_7745c5c3_Var88 string | |
| 1813 | - | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | |
| 1831 | + | var templ_7745c5c3_Var89 string | |
| 1832 | + | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | |
| 1814 | 1833 | if templ_7745c5c3_Err != nil { | |
| 1815 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 326, Col: 21} | |
| 1834 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 329, Col: 21} | |
| 1816 | 1835 | } | |
| 1817 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var88) | |
| 1836 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var89) | |
| 1818 | 1837 | if templ_7745c5c3_Err != nil { | |
| 1819 | 1838 | return templ_7745c5c3_Err | |
| 1820 | 1839 | } | |
| 1821 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 164, "\" name=\"text\" rows=\"3\" maxlength=\"8000\"") | |
| 1840 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 166, "\" name=\"text\" rows=\"3\" maxlength=\"8000\"") | |
| 1822 | 1841 | if templ_7745c5c3_Err != nil { | |
| 1823 | 1842 | return templ_7745c5c3_Err | |
| 1824 | 1843 | } | |
| 1825 | 1844 | if f.Plain { | |
| 1826 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 165, " required placeholder=\"plain text, 8000 characters at most\"") | |
| 1845 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 167, " required placeholder=\"plain text, 8000 characters at most\"") | |
| 1827 | 1846 | if templ_7745c5c3_Err != nil { | |
| 1828 | 1847 | return templ_7745c5c3_Err | |
| 1829 | 1848 | } | |
| 1830 | 1849 | } else { | |
| 1831 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 166, " placeholder=\"Markdown, 8000 characters at most\"") | |
| 1850 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 168, " placeholder=\"Markdown, 8000 characters at most\"") | |
| 1832 | 1851 | if templ_7745c5c3_Err != nil { | |
| 1833 | 1852 | return templ_7745c5c3_Err | |
| 1834 | 1853 | } | |
| 1835 | 1854 | } | |
| 1836 | 1855 | if f.Focus { | |
| 1837 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 167, " autofocus") | |
| 1856 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 169, " autofocus") | |
| 1838 | 1857 | if templ_7745c5c3_Err != nil { | |
| 1839 | 1858 | return templ_7745c5c3_Err | |
| 1840 | 1859 | } | |
| 1841 | 1860 | } | |
| 1842 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 168, "></textarea> ") | |
| 1861 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 170, "></textarea> ") | |
| 1843 | 1862 | if templ_7745c5c3_Err != nil { | |
| 1844 | 1863 | return templ_7745c5c3_Err | |
| 1845 | 1864 | } | |
| 1846 | 1865 | if f.Path != "" { | |
| 1847 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 169, "<input type=\"hidden\" name=\"path\" value=\"") | |
| 1866 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 171, "<input type=\"hidden\" name=\"path\" value=\"") | |
| 1848 | 1867 | if templ_7745c5c3_Err != nil { | |
| 1849 | 1868 | return templ_7745c5c3_Err | |
| 1850 | 1869 | } | |
| 1851 | - | var templ_7745c5c3_Var89 string | |
| 1852 | - | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | |
| 1870 | + | var templ_7745c5c3_Var90 string | |
| 1871 | + | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | |
| 1853 | 1872 | if templ_7745c5c3_Err != nil { | |
| 1854 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 341, Col: 50} | |
| 1873 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 344, Col: 50} | |
| 1855 | 1874 | } | |
| 1856 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var89) | |
| 1875 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var90) | |
| 1857 | 1876 | if templ_7745c5c3_Err != nil { | |
| 1858 | 1877 | return templ_7745c5c3_Err | |
| 1859 | 1878 | } | |
| 1860 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 170, "\"> <input type=\"hidden\" name=\"line\" value=\"") | |
| 1879 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 172, "\"> <input type=\"hidden\" name=\"line\" value=\"") | |
| 1861 | 1880 | if templ_7745c5c3_Err != nil { | |
| 1862 | 1881 | return templ_7745c5c3_Err | |
| 1863 | 1882 | } | |
| 1864 | - | var templ_7745c5c3_Var90 string | |
| 1865 | - | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Line) | |
| 1883 | + | var templ_7745c5c3_Var91 string | |
| 1884 | + | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Line) | |
| 1866 | 1885 | if templ_7745c5c3_Err != nil { | |
| 1867 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 342, Col: 50} | |
| 1886 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 345, Col: 50} | |
| 1868 | 1887 | } | |
| 1869 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var90) | |
| 1888 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var91) | |
| 1870 | 1889 | if templ_7745c5c3_Err != nil { | |
| 1871 | 1890 | return templ_7745c5c3_Err | |
| 1872 | 1891 | } | |
| 1873 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 171, "\"> <input type=\"hidden\" name=\"side\" value=\"") | |
| 1892 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 173, "\"> <input type=\"hidden\" name=\"side\" value=\"") | |
| 1874 | 1893 | if templ_7745c5c3_Err != nil { | |
| 1875 | 1894 | return templ_7745c5c3_Err | |
| 1876 | 1895 | } | |
| 1877 | - | var templ_7745c5c3_Var91 string | |
| 1878 | - | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Side) | |
| 1896 | + | var templ_7745c5c3_Var92 string | |
| 1897 | + | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Side) | |
| 1879 | 1898 | if templ_7745c5c3_Err != nil { | |
| 1880 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 343, Col: 50} | |
| 1899 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 346, Col: 50} | |
| 1881 | 1900 | } | |
| 1882 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var91) | |
| 1901 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var92) | |
| 1883 | 1902 | if templ_7745c5c3_Err != nil { | |
| 1884 | 1903 | return templ_7745c5c3_Err | |
| 1885 | 1904 | } | |
| 1886 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 172, "\"> <label>from line <input type=\"number\" name=\"start_line\" min=\"1\" value=\"") | |
| 1905 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 174, "\"> <label>from line <input type=\"number\" name=\"start_line\" min=\"1\" value=\"") | |
| 1887 | 1906 | if templ_7745c5c3_Err != nil { | |
| 1888 | 1907 | return templ_7745c5c3_Err | |
| 1889 | 1908 | } | |
| 1890 | - | var templ_7745c5c3_Var92 string | |
| 1891 | - | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.StartLine) | |
| 1909 | + | var templ_7745c5c3_Var93 string | |
| 1910 | + | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.StartLine) | |
| 1892 | 1911 | if templ_7745c5c3_Err != nil { | |
| 1893 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 344, Col: 86} | |
| 1912 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 347, Col: 86} | |
| 1894 | 1913 | } | |
| 1895 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var92) | |
| 1914 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var93) | |
| 1896 | 1915 | if templ_7745c5c3_Err != nil { | |
| 1897 | 1916 | return templ_7745c5c3_Err | |
| 1898 | 1917 | } | |
| 1899 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 173, "\"></label> ") | |
| 1918 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 175, "\"></label> ") | |
| 1900 | 1919 | if templ_7745c5c3_Err != nil { | |
| 1901 | 1920 | return templ_7745c5c3_Err | |
| 1902 | 1921 | } | |
| 1903 | 1922 | } | |
| 1904 | 1923 | if f.ReplyTo != "" { | |
| 1905 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 174, "<input type=\"hidden\" name=\"reply_to\" value=\"") | |
| 1924 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 176, "<input type=\"hidden\" name=\"reply_to\" value=\"") | |
| 1906 | 1925 | if templ_7745c5c3_Err != nil { | |
| 1907 | 1926 | return templ_7745c5c3_Err | |
| 1908 | 1927 | } | |
| 1909 | - | var templ_7745c5c3_Var93 string | |
| 1910 | - | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ReplyTo) | |
| 1928 | + | var templ_7745c5c3_Var94 string | |
| 1929 | + | templ_7745c5c3_Var94, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ReplyTo) | |
| 1911 | 1930 | if templ_7745c5c3_Err != nil { | |
| 1912 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 347, Col: 57} | |
| 1931 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 350, Col: 57} | |
| 1913 | 1932 | } | |
| 1914 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var93) | |
| 1933 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var94) | |
| 1915 | 1934 | if templ_7745c5c3_Err != nil { | |
| 1916 | 1935 | return templ_7745c5c3_Err | |
| 1917 | 1936 | } | |
| 1918 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 175, "\"> ") | |
| 1937 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 177, "\"> ") | |
| 1919 | 1938 | if templ_7745c5c3_Err != nil { | |
| 1920 | 1939 | return templ_7745c5c3_Err | |
| 1921 | 1940 | } | |
| 1922 | 1941 | } | |
| 1923 | 1942 | if f.Path == "" && f.ReplyTo == "" && !f.Plain { | |
| 1924 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 176, "<fieldset><legend>Verdict</legend><label><input type=\"radio\" name=\"verdict\" value=\"\" checked>Note</label><label><input type=\"radio\" name=\"verdict\" value=\"approve\">Approve</label><label><input type=\"radio\" name=\"verdict\" value=\"changes_requested\">Request changes</label></fieldset>") | |
| 1943 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 178, "<fieldset><legend>Verdict</legend><label><input type=\"radio\" name=\"verdict\" value=\"\" checked>Note</label><label><input type=\"radio\" name=\"verdict\" value=\"approve\">Approve</label><label><input type=\"radio\" name=\"verdict\" value=\"changes_requested\">Request changes</label></fieldset>") | |
| 1925 | 1944 | if templ_7745c5c3_Err != nil { | |
| 1926 | 1945 | return templ_7745c5c3_Err | |
| 1927 | 1946 | } | |
| 1928 | 1947 | } | |
| 1929 | 1948 | if f.From > 0 { | |
| 1930 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 177, "<input type=\"hidden\" name=\"from\" value=\"") | |
| 1949 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 179, "<input type=\"hidden\" name=\"from\" value=\"") | |
| 1931 | 1950 | if templ_7745c5c3_Err != nil { | |
| 1932 | 1951 | return templ_7745c5c3_Err | |
| 1933 | 1952 | } | |
| 1934 | - | var templ_7745c5c3_Var94 string | |
| 1935 | - | templ_7745c5c3_Var94, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(f.From)) | |
| 1953 | + | var templ_7745c5c3_Var95 string | |
| 1954 | + | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(f.From)) | |
| 1936 | 1955 | if templ_7745c5c3_Err != nil { | |
| 1937 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 353, Col: 56} | |
| 1956 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 356, Col: 56} | |
| 1938 | 1957 | } | |
| 1939 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var94) | |
| 1958 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var95) | |
| 1940 | 1959 | if templ_7745c5c3_Err != nil { | |
| 1941 | 1960 | return templ_7745c5c3_Err | |
| 1942 | 1961 | } | |
| 1943 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 178, "\">") | |
| 1962 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 180, "\">") | |
| 1944 | 1963 | if templ_7745c5c3_Err != nil { | |
| 1945 | 1964 | return templ_7745c5c3_Err | |
| 1946 | 1965 | } | |
| 1947 | 1966 | } | |
| 1948 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 179, "<div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Comment</button> ") | |
| 1967 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 181, "<div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Comment</button> ") | |
| 1949 | 1968 | if templ_7745c5c3_Err != nil { | |
| 1950 | 1969 | return templ_7745c5c3_Err | |
| 1951 | 1970 | } | |
| 1952 | 1971 | if f.Cancel != "" { | |
| 1953 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 180, "<a class=\"btn\" href=\"") | |
| 1972 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 182, "<a class=\"btn\" href=\"") | |
| 1954 | 1973 | if templ_7745c5c3_Err != nil { | |
| 1955 | 1974 | return templ_7745c5c3_Err | |
| 1956 | 1975 | } | |
| 1957 | - | var templ_7745c5c3_Var95 templ.SafeURL | |
| 1958 | - | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Cancel)) | |
| 1976 | + | var templ_7745c5c3_Var96 templ.SafeURL | |
| 1977 | + | templ_7745c5c3_Var96, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Cancel)) | |
| 1959 | 1978 | if templ_7745c5c3_Err != nil { | |
| 1960 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 358, Col: 49} | |
| 1979 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 361, Col: 49} | |
| 1961 | 1980 | } | |
| 1962 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var95)) | |
| 1981 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var96)) | |
| 1963 | 1982 | if templ_7745c5c3_Err != nil { | |
| 1964 | 1983 | return templ_7745c5c3_Err | |
| 1965 | 1984 | } | |
| 1966 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 181, "\">Cancel</a>") | |
| 1985 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 183, "\">Cancel</a>") | |
| 1967 | 1986 | if templ_7745c5c3_Err != nil { | |
| 1968 | 1987 | return templ_7745c5c3_Err | |
| 1969 | 1988 | } | |
| 1970 | 1989 | } | |
| 1971 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 182, "</div></form>") | |
| 1990 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 184, "</div></form>") | |
| 1972 | 1991 | if templ_7745c5c3_Err != nil { | |
| 1973 | 1992 | return templ_7745c5c3_Err | |
| 1974 | 1993 | } | |
| @@ -1992,25 +2011,25 @@ func mrRail(p MRPage) templ.Component { | |||
| 1992 | 2011 | }() | |
| 1993 | 2012 | } | |
| 1994 | 2013 | ctx = templ.InitializeContext(ctx) | |
| 1995 | - | templ_7745c5c3_Var96 := templ.GetChildren(ctx) | |
| 1996 | - | if templ_7745c5c3_Var96 == nil { | |
| 1997 | - | templ_7745c5c3_Var96 = templ.NopComponent | |
| 2014 | + | templ_7745c5c3_Var97 := templ.GetChildren(ctx) | |
| 2015 | + | if templ_7745c5c3_Var97 == nil { | |
| 2016 | + | templ_7745c5c3_Var97 = templ.NopComponent | |
| 1998 | 2017 | } | |
| 1999 | 2018 | ctx = templ.ClearChildren(ctx) | |
| 2000 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 183, "<section aria-labelledby=\"r-files\" class=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | |
| 2019 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 185, "<section aria-labelledby=\"r-files\" class=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | |
| 2001 | 2020 | if templ_7745c5c3_Err != nil { | |
| 2002 | 2021 | return templ_7745c5c3_Err | |
| 2003 | 2022 | } | |
| 2004 | - | var templ_7745c5c3_Var97 string | |
| 2005 | - | templ_7745c5c3_Var97, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | |
| 2023 | + | var templ_7745c5c3_Var98 string | |
| 2024 | + | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | |
| 2006 | 2025 | if templ_7745c5c3_Err != nil { | |
| 2007 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 367, Col: 49} | |
| 2026 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 370, Col: 49} | |
| 2008 | 2027 | } | |
| 2009 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var97)) | |
| 2028 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) | |
| 2010 | 2029 | if templ_7745c5c3_Err != nil { | |
| 2011 | 2030 | return templ_7745c5c3_Err | |
| 2012 | 2031 | } | |
| 2013 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 184, "</span><kbd aria-hidden=\"true\">g f</kbd> <button type=\"button\" class=\"btn icon fold\" data-js aria-expanded=\"true\" title=\"fold the list of files\" hx-on:click=\"ermiteMR.foldFiles()\"><span class=\"ico i-chevron\" aria-hidden=\"true\"></span><span class=\"sr\">fold the list of files</span></button></h2>") | |
| 2032 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 186, "</span><kbd aria-hidden=\"true\">g f</kbd> <button type=\"button\" class=\"btn icon fold\" data-js aria-expanded=\"true\" title=\"fold the list of files\" hx-on:click=\"ermiteMR.foldFiles()\"><span class=\"ico i-chevron\" aria-hidden=\"true\"></span><span class=\"sr\">fold the list of files</span></button></h2>") | |
| 2014 | 2033 | if templ_7745c5c3_Err != nil { | |
| 2015 | 2034 | return templ_7745c5c3_Err | |
| 2016 | 2035 | } | |
| @@ -2018,71 +2037,71 @@ func mrRail(p MRPage) templ.Component { | |||
| 2018 | 2037 | if templ_7745c5c3_Err != nil { | |
| 2019 | 2038 | return templ_7745c5c3_Err | |
| 2020 | 2039 | } | |
| 2021 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 185, "</section>") | |
| 2040 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 187, "</section>") | |
| 2022 | 2041 | if templ_7745c5c3_Err != nil { | |
| 2023 | 2042 | return templ_7745c5c3_Err | |
| 2024 | 2043 | } | |
| 2025 | 2044 | if len(p.Verdicts) > 0 { | |
| 2026 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 186, "<section><h2>Verdicts</h2><ul>") | |
| 2045 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 188, "<section><h2>Verdicts</h2><ul>") | |
| 2027 | 2046 | if templ_7745c5c3_Err != nil { | |
| 2028 | 2047 | return templ_7745c5c3_Err | |
| 2029 | 2048 | } | |
| 2030 | 2049 | for _, v := range p.Verdicts { | |
| 2031 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 187, "<li><a href=\"") | |
| 2050 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 189, "<li><a href=\"") | |
| 2032 | 2051 | if templ_7745c5c3_Err != nil { | |
| 2033 | 2052 | return templ_7745c5c3_Err | |
| 2034 | 2053 | } | |
| 2035 | - | var templ_7745c5c3_Var98 templ.SafeURL | |
| 2036 | - | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(v.Href)) | |
| 2054 | + | var templ_7745c5c3_Var99 templ.SafeURL | |
| 2055 | + | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(v.Href)) | |
| 2037 | 2056 | if templ_7745c5c3_Err != nil { | |
| 2038 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 380, Col: 37} | |
| 2057 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 383, Col: 37} | |
| 2039 | 2058 | } | |
| 2040 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) | |
| 2059 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) | |
| 2041 | 2060 | if templ_7745c5c3_Err != nil { | |
| 2042 | 2061 | return templ_7745c5c3_Err | |
| 2043 | 2062 | } | |
| 2044 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 188, "\">") | |
| 2063 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 190, "\">") | |
| 2045 | 2064 | if templ_7745c5c3_Err != nil { | |
| 2046 | 2065 | return templ_7745c5c3_Err | |
| 2047 | 2066 | } | |
| 2048 | - | var templ_7745c5c3_Var99 string | |
| 2049 | - | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinStringErrs(v.Author) | |
| 2067 | + | var templ_7745c5c3_Var100 string | |
| 2068 | + | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.JoinStringErrs(v.Author) | |
| 2050 | 2069 | if templ_7745c5c3_Err != nil { | |
| 2051 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 380, Col: 50} | |
| 2070 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 383, Col: 50} | |
| 2052 | 2071 | } | |
| 2053 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) | |
| 2072 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var100)) | |
| 2054 | 2073 | if templ_7745c5c3_Err != nil { | |
| 2055 | 2074 | return templ_7745c5c3_Err | |
| 2056 | 2075 | } | |
| 2057 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 189, ": ") | |
| 2076 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 191, ": ") | |
| 2058 | 2077 | if templ_7745c5c3_Err != nil { | |
| 2059 | 2078 | return templ_7745c5c3_Err | |
| 2060 | 2079 | } | |
| 2061 | - | var templ_7745c5c3_Var100 string | |
| 2062 | - | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.JoinStringErrs(v.Label) | |
| 2080 | + | var templ_7745c5c3_Var101 string | |
| 2081 | + | templ_7745c5c3_Var101, templ_7745c5c3_Err = templ.JoinStringErrs(v.Label) | |
| 2063 | 2082 | if templ_7745c5c3_Err != nil { | |
| 2064 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 380, Col: 63} | |
| 2083 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 383, Col: 63} | |
| 2065 | 2084 | } | |
| 2066 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var100)) | |
| 2085 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var101)) | |
| 2067 | 2086 | if templ_7745c5c3_Err != nil { | |
| 2068 | 2087 | return templ_7745c5c3_Err | |
| 2069 | 2088 | } | |
| 2070 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 190, "</a> ") | |
| 2089 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 192, "</a> ") | |
| 2071 | 2090 | if templ_7745c5c3_Err != nil { | |
| 2072 | 2091 | return templ_7745c5c3_Err | |
| 2073 | 2092 | } | |
| 2074 | 2093 | if v.Stale { | |
| 2075 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 191, "<span class=\"mute\">(stale)</span>") | |
| 2094 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 193, "<span class=\"mute\">(stale)</span>") | |
| 2076 | 2095 | if templ_7745c5c3_Err != nil { | |
| 2077 | 2096 | return templ_7745c5c3_Err | |
| 2078 | 2097 | } | |
| 2079 | 2098 | } | |
| 2080 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 192, "</li>") | |
| 2099 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 194, "</li>") | |
| 2081 | 2100 | if templ_7745c5c3_Err != nil { | |
| 2082 | 2101 | return templ_7745c5c3_Err | |
| 2083 | 2102 | } | |
| 2084 | 2103 | } | |
| 2085 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 193, "</ul></section>") | |
| 2104 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 195, "</ul></section>") | |
| 2086 | 2105 | if templ_7745c5c3_Err != nil { | |
| 2087 | 2106 | return templ_7745c5c3_Err | |
| 2088 | 2107 | } | |
| @@ -2091,74 +2110,74 @@ func mrRail(p MRPage) templ.Component { | |||
| 2091 | 2110 | if templ_7745c5c3_Err != nil { | |
| 2092 | 2111 | return templ_7745c5c3_Err | |
| 2093 | 2112 | } | |
| 2094 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 194, "<section aria-labelledby=\"r-commits\"><h2 id=\"r-commits\">Commits <span class=\"count\">") | |
| 2113 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 196, "<section aria-labelledby=\"r-commits\"><h2 id=\"r-commits\">Commits <span class=\"count\">") | |
| 2095 | 2114 | if templ_7745c5c3_Err != nil { | |
| 2096 | 2115 | return templ_7745c5c3_Err | |
| 2097 | 2116 | } | |
| 2098 | - | var templ_7745c5c3_Var101 string | |
| 2099 | - | templ_7745c5c3_Var101, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Commits))) | |
| 2117 | + | var templ_7745c5c3_Var102 string | |
| 2118 | + | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Commits))) | |
| 2100 | 2119 | if templ_7745c5c3_Err != nil { | |
| 2101 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 391, Col: 71} | |
| 2120 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 394, Col: 71} | |
| 2102 | 2121 | } | |
| 2103 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var101)) | |
| 2122 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) | |
| 2104 | 2123 | if templ_7745c5c3_Err != nil { | |
| 2105 | 2124 | return templ_7745c5c3_Err | |
| 2106 | 2125 | } | |
| 2107 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 195, "</span></h2><ul class=\"pcommits\">") | |
| 2126 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 197, "</span></h2><ul class=\"pcommits\">") | |
| 2108 | 2127 | if templ_7745c5c3_Err != nil { | |
| 2109 | 2128 | return templ_7745c5c3_Err | |
| 2110 | 2129 | } | |
| 2111 | 2130 | for _, c := range p.Commits { | |
| 2112 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 196, "<li") | |
| 2131 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 198, "<li") | |
| 2113 | 2132 | if templ_7745c5c3_Err != nil { | |
| 2114 | 2133 | return templ_7745c5c3_Err | |
| 2115 | 2134 | } | |
| 2116 | 2135 | if c.New { | |
| 2117 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 197, " data-new") | |
| 2136 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 199, " data-new") | |
| 2118 | 2137 | if templ_7745c5c3_Err != nil { | |
| 2119 | 2138 | return templ_7745c5c3_Err | |
| 2120 | 2139 | } | |
| 2121 | 2140 | } | |
| 2122 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 198, "><a href=\"") | |
| 2141 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 200, "><a href=\"") | |
| 2123 | 2142 | if templ_7745c5c3_Err != nil { | |
| 2124 | 2143 | return templ_7745c5c3_Err | |
| 2125 | 2144 | } | |
| 2126 | - | var templ_7745c5c3_Var102 templ.SafeURL | |
| 2127 | - | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Href)) | |
| 2145 | + | var templ_7745c5c3_Var103 templ.SafeURL | |
| 2146 | + | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Href)) | |
| 2128 | 2147 | if templ_7745c5c3_Err != nil { | |
| 2129 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 395, Col: 36} | |
| 2148 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 398, Col: 36} | |
| 2130 | 2149 | } | |
| 2131 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) | |
| 2150 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | |
| 2132 | 2151 | if templ_7745c5c3_Err != nil { | |
| 2133 | 2152 | return templ_7745c5c3_Err | |
| 2134 | 2153 | } | |
| 2135 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 199, "\">") | |
| 2154 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 201, "\">") | |
| 2136 | 2155 | if templ_7745c5c3_Err != nil { | |
| 2137 | 2156 | return templ_7745c5c3_Err | |
| 2138 | 2157 | } | |
| 2139 | - | var templ_7745c5c3_Var103 string | |
| 2140 | - | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | |
| 2158 | + | var templ_7745c5c3_Var104 string | |
| 2159 | + | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | |
| 2141 | 2160 | if templ_7745c5c3_Err != nil { | |
| 2142 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 395, Col: 48} | |
| 2161 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 398, Col: 48} | |
| 2143 | 2162 | } | |
| 2144 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | |
| 2163 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | |
| 2145 | 2164 | if templ_7745c5c3_Err != nil { | |
| 2146 | 2165 | return templ_7745c5c3_Err | |
| 2147 | 2166 | } | |
| 2148 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 200, "</a> <span class=\"s\">") | |
| 2167 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 202, "</a> <span class=\"s\">") | |
| 2149 | 2168 | if templ_7745c5c3_Err != nil { | |
| 2150 | 2169 | return templ_7745c5c3_Err | |
| 2151 | 2170 | } | |
| 2152 | - | var templ_7745c5c3_Var104 string | |
| 2153 | - | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | |
| 2171 | + | var templ_7745c5c3_Var105 string | |
| 2172 | + | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | |
| 2154 | 2173 | if templ_7745c5c3_Err != nil { | |
| 2155 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 396, Col: 32} | |
| 2174 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 399, Col: 32} | |
| 2156 | 2175 | } | |
| 2157 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | |
| 2176 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) | |
| 2158 | 2177 | if templ_7745c5c3_Err != nil { | |
| 2159 | 2178 | return templ_7745c5c3_Err | |
| 2160 | 2179 | } | |
| 2161 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 201, "</span> ") | |
| 2180 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 203, "</span> ") | |
| 2162 | 2181 | if templ_7745c5c3_Err != nil { | |
| 2163 | 2182 | return templ_7745c5c3_Err | |
| 2164 | 2183 | } | |
| @@ -2168,138 +2187,138 @@ func mrRail(p MRPage) templ.Component { | |||
| 2168 | 2187 | return templ_7745c5c3_Err | |
| 2169 | 2188 | } | |
| 2170 | 2189 | } | |
| 2171 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 202, "<span class=\"mute\">") | |
| 2190 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 204, "<span class=\"mute\">") | |
| 2172 | 2191 | if templ_7745c5c3_Err != nil { | |
| 2173 | 2192 | return templ_7745c5c3_Err | |
| 2174 | 2193 | } | |
| 2175 | - | var templ_7745c5c3_Var105 string | |
| 2176 | - | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 2194 | + | var templ_7745c5c3_Var106 string | |
| 2195 | + | templ_7745c5c3_Var106, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 2177 | 2196 | if templ_7745c5c3_Err != nil { | |
| 2178 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 401, Col: 16} | |
| 2197 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 404, Col: 16} | |
| 2179 | 2198 | } | |
| 2180 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) | |
| 2199 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var106)) | |
| 2181 | 2200 | if templ_7745c5c3_Err != nil { | |
| 2182 | 2201 | return templ_7745c5c3_Err | |
| 2183 | 2202 | } | |
| 2184 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 203, " ") | |
| 2203 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 205, " ") | |
| 2185 | 2204 | if templ_7745c5c3_Err != nil { | |
| 2186 | 2205 | return templ_7745c5c3_Err | |
| 2187 | 2206 | } | |
| 2188 | 2207 | if c.WhenAt != "" { | |
| 2189 | - | var templ_7745c5c3_Var106 string | |
| 2190 | - | templ_7745c5c3_Var106, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | |
| 2208 | + | var templ_7745c5c3_Var107 string | |
| 2209 | + | templ_7745c5c3_Var107, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | |
| 2191 | 2210 | if templ_7745c5c3_Err != nil { | |
| 2192 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 403, Col: 15} | |
| 2211 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 406, Col: 15} | |
| 2193 | 2212 | } | |
| 2194 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var106)) | |
| 2213 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var107)) | |
| 2195 | 2214 | if templ_7745c5c3_Err != nil { | |
| 2196 | 2215 | return templ_7745c5c3_Err | |
| 2197 | 2216 | } | |
| 2198 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 204, "<time datetime=\"") | |
| 2217 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 206, "<time datetime=\"") | |
| 2199 | 2218 | if templ_7745c5c3_Err != nil { | |
| 2200 | 2219 | return templ_7745c5c3_Err | |
| 2201 | 2220 | } | |
| 2202 | - | var templ_7745c5c3_Var107 string | |
| 2203 | - | templ_7745c5c3_Var107, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 2221 | + | var templ_7745c5c3_Var108 string | |
| 2222 | + | templ_7745c5c3_Var108, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 2204 | 2223 | if templ_7745c5c3_Err != nil { | |
| 2205 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 403, Col: 42} | |
| 2224 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 406, Col: 42} | |
| 2206 | 2225 | } | |
| 2207 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var107) | |
| 2226 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var108) | |
| 2208 | 2227 | if templ_7745c5c3_Err != nil { | |
| 2209 | 2228 | return templ_7745c5c3_Err | |
| 2210 | 2229 | } | |
| 2211 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 205, "\">") | |
| 2230 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 207, "\">") | |
| 2212 | 2231 | if templ_7745c5c3_Err != nil { | |
| 2213 | 2232 | return templ_7745c5c3_Err | |
| 2214 | 2233 | } | |
| 2215 | - | var templ_7745c5c3_Var108 string | |
| 2216 | - | templ_7745c5c3_Var108, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 2234 | + | var templ_7745c5c3_Var109 string | |
| 2235 | + | templ_7745c5c3_Var109, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 2217 | 2236 | if templ_7745c5c3_Err != nil { | |
| 2218 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 403, Col: 53} | |
| 2237 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 406, Col: 53} | |
| 2219 | 2238 | } | |
| 2220 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var108)) | |
| 2239 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var109)) | |
| 2221 | 2240 | if templ_7745c5c3_Err != nil { | |
| 2222 | 2241 | return templ_7745c5c3_Err | |
| 2223 | 2242 | } | |
| 2224 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 206, "</time> ") | |
| 2243 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 208, "</time> ") | |
| 2225 | 2244 | if templ_7745c5c3_Err != nil { | |
| 2226 | 2245 | return templ_7745c5c3_Err | |
| 2227 | 2246 | } | |
| 2228 | 2247 | } | |
| 2229 | 2248 | if c.New { | |
| 2230 | - | var templ_7745c5c3_Var109 string | |
| 2231 | - | templ_7745c5c3_Var109, templ_7745c5c3_Err = templ.JoinStringErrs(" · new") | |
| 2249 | + | var templ_7745c5c3_Var110 string | |
| 2250 | + | templ_7745c5c3_Var110, templ_7745c5c3_Err = templ.JoinStringErrs(" · new") | |
| 2232 | 2251 | if templ_7745c5c3_Err != nil { | |
| 2233 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 406, Col: 18} | |
| 2252 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 409, Col: 18} | |
| 2234 | 2253 | } | |
| 2235 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var109)) | |
| 2254 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var110)) | |
| 2236 | 2255 | if templ_7745c5c3_Err != nil { | |
| 2237 | 2256 | return templ_7745c5c3_Err | |
| 2238 | 2257 | } | |
| 2239 | 2258 | } | |
| 2240 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 207, "</span></li>") | |
| 2259 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 209, "</span></li>") | |
| 2241 | 2260 | if templ_7745c5c3_Err != nil { | |
| 2242 | 2261 | return templ_7745c5c3_Err | |
| 2243 | 2262 | } | |
| 2244 | 2263 | } | |
| 2245 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 208, "</ul>") | |
| 2264 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 210, "</ul>") | |
| 2246 | 2265 | if templ_7745c5c3_Err != nil { | |
| 2247 | 2266 | return templ_7745c5c3_Err | |
| 2248 | 2267 | } | |
| 2249 | 2268 | if len(p.Commits) == 0 { | |
| 2250 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 209, "<p class=\"dim\">no commit to merge.</p>") | |
| 2269 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 211, "<p class=\"dim\">no commit to merge.</p>") | |
| 2251 | 2270 | if templ_7745c5c3_Err != nil { | |
| 2252 | 2271 | return templ_7745c5c3_Err | |
| 2253 | 2272 | } | |
| 2254 | 2273 | } | |
| 2255 | 2274 | if p.CommitsNote != "" { | |
| 2256 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 210, "<p class=\"note\">") | |
| 2275 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 212, "<p class=\"note\">") | |
| 2257 | 2276 | if templ_7745c5c3_Err != nil { | |
| 2258 | 2277 | return templ_7745c5c3_Err | |
| 2259 | 2278 | } | |
| 2260 | - | var templ_7745c5c3_Var110 string | |
| 2261 | - | templ_7745c5c3_Var110, templ_7745c5c3_Err = templ.JoinStringErrs(p.CommitsNote) | |
| 2279 | + | var templ_7745c5c3_Var111 string | |
| 2280 | + | templ_7745c5c3_Var111, templ_7745c5c3_Err = templ.JoinStringErrs(p.CommitsNote) | |
| 2262 | 2281 | if templ_7745c5c3_Err != nil { | |
| 2263 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 416, Col: 34} | |
| 2282 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 419, Col: 34} | |
| 2264 | 2283 | } | |
| 2265 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var110)) | |
| 2284 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var111)) | |
| 2266 | 2285 | if templ_7745c5c3_Err != nil { | |
| 2267 | 2286 | return templ_7745c5c3_Err | |
| 2268 | 2287 | } | |
| 2269 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 211, "</p>") | |
| 2288 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 213, "</p>") | |
| 2270 | 2289 | if templ_7745c5c3_Err != nil { | |
| 2271 | 2290 | return templ_7745c5c3_Err | |
| 2272 | 2291 | } | |
| 2273 | 2292 | } | |
| 2274 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 212, "</section><section aria-labelledby=\"r-settings\"><h2 id=\"r-settings\">Settings</h2><dl class=\"kv\"><dt>modes</dt><dd>") | |
| 2293 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 214, "</section><section aria-labelledby=\"r-settings\"><h2 id=\"r-settings\">Settings</h2><dl class=\"kv\"><dt>modes</dt><dd>") | |
| 2275 | 2294 | if templ_7745c5c3_Err != nil { | |
| 2276 | 2295 | return templ_7745c5c3_Err | |
| 2277 | 2296 | } | |
| 2278 | - | var templ_7745c5c3_Var111 string | |
| 2279 | - | templ_7745c5c3_Var111, templ_7745c5c3_Err = templ.JoinStringErrs(strings.Join(p.Modes, ", ")) | |
| 2297 | + | var templ_7745c5c3_Var112 string | |
| 2298 | + | templ_7745c5c3_Var112, templ_7745c5c3_Err = templ.JoinStringErrs(strings.Join(p.Modes, ", ")) | |
| 2280 | 2299 | if templ_7745c5c3_Err != nil { | |
| 2281 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 423, Col: 36} | |
| 2300 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 426, Col: 36} | |
| 2282 | 2301 | } | |
| 2283 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var111)) | |
| 2302 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var112)) | |
| 2284 | 2303 | if templ_7745c5c3_Err != nil { | |
| 2285 | 2304 | return templ_7745c5c3_Err | |
| 2286 | 2305 | } | |
| 2287 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 213, "</dd><dt>checks</dt><dd>") | |
| 2306 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 215, "</dd><dt>checks</dt><dd>") | |
| 2288 | 2307 | if templ_7745c5c3_Err != nil { | |
| 2289 | 2308 | return templ_7745c5c3_Err | |
| 2290 | 2309 | } | |
| 2291 | 2310 | if p.ChecksBlock { | |
| 2292 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 214, "failing ones block the merge") | |
| 2311 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 216, "failing ones block the merge") | |
| 2293 | 2312 | if templ_7745c5c3_Err != nil { | |
| 2294 | 2313 | return templ_7745c5c3_Err | |
| 2295 | 2314 | } | |
| 2296 | 2315 | } else { | |
| 2297 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 215, "do not block the merge") | |
| 2316 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 217, "do not block the merge") | |
| 2298 | 2317 | if templ_7745c5c3_Err != nil { | |
| 2299 | 2318 | return templ_7745c5c3_Err | |
| 2300 | 2319 | } | |
| 2301 | 2320 | } | |
| 2302 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 216, "</dd></dl></section>") | |
| 2321 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 218, "</dd></dl></section>") | |
| 2303 | 2322 | if templ_7745c5c3_Err != nil { | |
| 2304 | 2323 | return templ_7745c5c3_Err | |
| 2305 | 2324 | } | |
| @@ -2327,51 +2346,51 @@ func mrBar(p MRPage) templ.Component { | |||
| 2327 | 2346 | }() | |
| 2328 | 2347 | } | |
| 2329 | 2348 | ctx = templ.InitializeContext(ctx) | |
| 2330 | - | templ_7745c5c3_Var112 := templ.GetChildren(ctx) | |
| 2331 | - | if templ_7745c5c3_Var112 == nil { | |
| 2332 | - | templ_7745c5c3_Var112 = templ.NopComponent | |
| 2349 | + | templ_7745c5c3_Var113 := templ.GetChildren(ctx) | |
| 2350 | + | if templ_7745c5c3_Var113 == nil { | |
| 2351 | + | templ_7745c5c3_Var113 = templ.NopComponent | |
| 2333 | 2352 | } | |
| 2334 | 2353 | ctx = templ.ClearChildren(ctx) | |
| 2335 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 217, "<div class=\"diff-tools mr-bar\" role=\"group\" aria-label=\"Diff view and merge\"><span class=\"dim\">") | |
| 2354 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 219, "<div class=\"diff-tools mr-bar\" role=\"group\" aria-label=\"Diff view and merge\"><span class=\"dim\">") | |
| 2336 | 2355 | if templ_7745c5c3_Err != nil { | |
| 2337 | 2356 | return templ_7745c5c3_Err | |
| 2338 | 2357 | } | |
| 2339 | - | var templ_7745c5c3_Var113 string | |
| 2340 | - | templ_7745c5c3_Var113, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | |
| 2358 | + | var templ_7745c5c3_Var114 string | |
| 2359 | + | templ_7745c5c3_Var114, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | |
| 2341 | 2360 | if templ_7745c5c3_Err != nil { | |
| 2342 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 442, Col: 55} | |
| 2361 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 445, Col: 55} | |
| 2343 | 2362 | } | |
| 2344 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var113)) | |
| 2363 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var114)) | |
| 2345 | 2364 | if templ_7745c5c3_Err != nil { | |
| 2346 | 2365 | return templ_7745c5c3_Err | |
| 2347 | 2366 | } | |
| 2348 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 218, " · <span class=\"plus\">+") | |
| 2367 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 220, " · <span class=\"plus\">+") | |
| 2349 | 2368 | if templ_7745c5c3_Err != nil { | |
| 2350 | 2369 | return templ_7745c5c3_Err | |
| 2351 | 2370 | } | |
| 2352 | - | var templ_7745c5c3_Var114 string | |
| 2353 | - | templ_7745c5c3_Var114, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | |
| 2371 | + | var templ_7745c5c3_Var115 string | |
| 2372 | + | templ_7745c5c3_Var115, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | |
| 2354 | 2373 | if templ_7745c5c3_Err != nil { | |
| 2355 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 442, Col: 95} | |
| 2374 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 445, Col: 95} | |
| 2356 | 2375 | } | |
| 2357 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var114)) | |
| 2376 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var115)) | |
| 2358 | 2377 | if templ_7745c5c3_Err != nil { | |
| 2359 | 2378 | return templ_7745c5c3_Err | |
| 2360 | 2379 | } | |
| 2361 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 219, "</span> <span class=\"minus\">-") | |
| 2380 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 221, "</span> <span class=\"minus\">-") | |
| 2362 | 2381 | if templ_7745c5c3_Err != nil { | |
| 2363 | 2382 | return templ_7745c5c3_Err | |
| 2364 | 2383 | } | |
| 2365 | - | var templ_7745c5c3_Var115 string | |
| 2366 | - | templ_7745c5c3_Var115, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | |
| 2384 | + | var templ_7745c5c3_Var116 string | |
| 2385 | + | templ_7745c5c3_Var116, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | |
| 2367 | 2386 | if templ_7745c5c3_Err != nil { | |
| 2368 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 442, Col: 140} | |
| 2387 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 445, Col: 140} | |
| 2369 | 2388 | } | |
| 2370 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var115)) | |
| 2389 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var116)) | |
| 2371 | 2390 | if templ_7745c5c3_Err != nil { | |
| 2372 | 2391 | return templ_7745c5c3_Err | |
| 2373 | 2392 | } | |
| 2374 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 220, "</span></span>") | |
| 2393 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 222, "</span></span>") | |
| 2375 | 2394 | if templ_7745c5c3_Err != nil { | |
| 2376 | 2395 | return templ_7745c5c3_Err | |
| 2377 | 2396 | } | |
| @@ -2387,7 +2406,7 @@ func mrBar(p MRPage) templ.Component { | |||
| 2387 | 2406 | if templ_7745c5c3_Err != nil { | |
| 2388 | 2407 | return templ_7745c5c3_Err | |
| 2389 | 2408 | } | |
| 2390 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 221, "<span class=\"grow\"></span>") | |
| 2409 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 223, "<span class=\"grow\"></span>") | |
| 2391 | 2410 | if templ_7745c5c3_Err != nil { | |
| 2392 | 2411 | return templ_7745c5c3_Err | |
| 2393 | 2412 | } | |
| @@ -2400,7 +2419,7 @@ func mrBar(p MRPage) templ.Component { | |||
| 2400 | 2419 | if templ_7745c5c3_Err != nil { | |
| 2401 | 2420 | return templ_7745c5c3_Err | |
| 2402 | 2421 | } | |
| 2403 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 222, " ") | |
| 2422 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 224, " ") | |
| 2404 | 2423 | if templ_7745c5c3_Err != nil { | |
| 2405 | 2424 | return templ_7745c5c3_Err | |
| 2406 | 2425 | } | |
| @@ -2409,7 +2428,7 @@ func mrBar(p MRPage) templ.Component { | |||
| 2409 | 2428 | return templ_7745c5c3_Err | |
| 2410 | 2429 | } | |
| 2411 | 2430 | } | |
| 2412 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 223, "</div>") | |
| 2431 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 225, "</div>") | |
| 2413 | 2432 | if templ_7745c5c3_Err != nil { | |
| 2414 | 2433 | return templ_7745c5c3_Err | |
| 2415 | 2434 | } | |
| @@ -2441,107 +2460,107 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2441 | 2460 | }() | |
| 2442 | 2461 | } | |
| 2443 | 2462 | ctx = templ.InitializeContext(ctx) | |
| 2444 | - | templ_7745c5c3_Var116 := templ.GetChildren(ctx) | |
| 2445 | - | if templ_7745c5c3_Var116 == nil { | |
| 2446 | - | templ_7745c5c3_Var116 = templ.NopComponent | |
| 2463 | + | templ_7745c5c3_Var117 := templ.GetChildren(ctx) | |
| 2464 | + | if templ_7745c5c3_Var117 == nil { | |
| 2465 | + | templ_7745c5c3_Var117 = templ.NopComponent | |
| 2447 | 2466 | } | |
| 2448 | 2467 | ctx = templ.ClearChildren(ctx) | |
| 2449 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 224, "<details class=\"menu mmenu\" id=\"merge-menu\" data-state=\"open\"") | |
| 2468 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 226, "<details class=\"menu mmenu\" id=\"merge-menu\" data-state=\"open\"") | |
| 2450 | 2469 | if templ_7745c5c3_Err != nil { | |
| 2451 | 2470 | return templ_7745c5c3_Err | |
| 2452 | 2471 | } | |
| 2453 | 2472 | if p.Box.Error != "" { | |
| 2454 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 225, " open") | |
| 2473 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 227, " open") | |
| 2455 | 2474 | if templ_7745c5c3_Err != nil { | |
| 2456 | 2475 | return templ_7745c5c3_Err | |
| 2457 | 2476 | } | |
| 2458 | 2477 | } | |
| 2459 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 226, "><summary class=\"btn primary\" aria-keyshortcuts=\"Shift+M\">") | |
| 2478 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 228, "><summary class=\"btn primary\" aria-keyshortcuts=\"Shift+M\">") | |
| 2460 | 2479 | if templ_7745c5c3_Err != nil { | |
| 2461 | 2480 | return templ_7745c5c3_Err | |
| 2462 | 2481 | } | |
| 2463 | 2482 | if p.Box.ReadyAction != "" { | |
| 2464 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 227, "Draft ") | |
| 2483 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 229, "Draft ") | |
| 2465 | 2484 | if templ_7745c5c3_Err != nil { | |
| 2466 | 2485 | return templ_7745c5c3_Err | |
| 2467 | 2486 | } | |
| 2468 | 2487 | } else { | |
| 2469 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 228, "Merge ") | |
| 2488 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 230, "Merge ") | |
| 2470 | 2489 | if templ_7745c5c3_Err != nil { | |
| 2471 | 2490 | return templ_7745c5c3_Err | |
| 2472 | 2491 | } | |
| 2473 | 2492 | } | |
| 2474 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 229, "<kbd aria-hidden=\"true\">M</kbd></summary><div class=\"menu-pop\" role=\"group\" aria-label=\"Merge\"><dl class=\"kv\"><dt>head</dt><dd>") | |
| 2493 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 231, "<kbd aria-hidden=\"true\">M</kbd></summary><div class=\"menu-pop\" role=\"group\" aria-label=\"Merge\"><dl class=\"kv\"><dt>head</dt><dd>") | |
| 2475 | 2494 | if templ_7745c5c3_Err != nil { | |
| 2476 | 2495 | return templ_7745c5c3_Err | |
| 2477 | 2496 | } | |
| 2478 | 2497 | if p.Box.HeadGone { | |
| 2479 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 230, "gone: the source branch was deleted") | |
| 2498 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 232, "gone: the source branch was deleted") | |
| 2480 | 2499 | if templ_7745c5c3_Err != nil { | |
| 2481 | 2500 | return templ_7745c5c3_Err | |
| 2482 | 2501 | } | |
| 2483 | 2502 | } else { | |
| 2484 | - | var templ_7745c5c3_Var117 string | |
| 2485 | - | templ_7745c5c3_Var117, templ_7745c5c3_Err = templ.JoinStringErrs(p.HeadShort) | |
| 2503 | + | var templ_7745c5c3_Var118 string | |
| 2504 | + | templ_7745c5c3_Var118, templ_7745c5c3_Err = templ.JoinStringErrs(p.HeadShort) | |
| 2486 | 2505 | if templ_7745c5c3_Err != nil { | |
| 2487 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 480, Col: 19} | |
| 2506 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 483, Col: 19} | |
| 2488 | 2507 | } | |
| 2489 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var117)) | |
| 2508 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var118)) | |
| 2490 | 2509 | if templ_7745c5c3_Err != nil { | |
| 2491 | 2510 | return templ_7745c5c3_Err | |
| 2492 | 2511 | } | |
| 2493 | 2512 | } | |
| 2494 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 231, "</dd><dt>into</dt><dd>") | |
| 2513 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 233, "</dd><dt>into</dt><dd>") | |
| 2495 | 2514 | if templ_7745c5c3_Err != nil { | |
| 2496 | 2515 | return templ_7745c5c3_Err | |
| 2497 | 2516 | } | |
| 2498 | - | var templ_7745c5c3_Var118 string | |
| 2499 | - | templ_7745c5c3_Var118, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2517 | + | var templ_7745c5c3_Var119 string | |
| 2518 | + | templ_7745c5c3_Var119, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2500 | 2519 | if templ_7745c5c3_Err != nil { | |
| 2501 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 484, Col: 18} | |
| 2520 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 487, Col: 18} | |
| 2502 | 2521 | } | |
| 2503 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var118)) | |
| 2522 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var119)) | |
| 2504 | 2523 | if templ_7745c5c3_Err != nil { | |
| 2505 | 2524 | return templ_7745c5c3_Err | |
| 2506 | 2525 | } | |
| 2507 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 232, "</dd></dl>") | |
| 2526 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 234, "</dd></dl>") | |
| 2508 | 2527 | if templ_7745c5c3_Err != nil { | |
| 2509 | 2528 | return templ_7745c5c3_Err | |
| 2510 | 2529 | } | |
| 2511 | 2530 | if p.Box.Error != "" { | |
| 2512 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 233, "<p class=\"d-err\" role=\"alert\">") | |
| 2531 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 235, "<p class=\"d-err\" role=\"alert\">") | |
| 2513 | 2532 | if templ_7745c5c3_Err != nil { | |
| 2514 | 2533 | return templ_7745c5c3_Err | |
| 2515 | 2534 | } | |
| 2516 | - | var templ_7745c5c3_Var119 string | |
| 2517 | - | templ_7745c5c3_Var119, templ_7745c5c3_Err = templ.JoinStringErrs(p.Box.Error) | |
| 2535 | + | var templ_7745c5c3_Var120 string | |
| 2536 | + | templ_7745c5c3_Var120, templ_7745c5c3_Err = templ.JoinStringErrs(p.Box.Error) | |
| 2518 | 2537 | if templ_7745c5c3_Err != nil { | |
| 2519 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 487, Col: 47} | |
| 2538 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 490, Col: 47} | |
| 2520 | 2539 | } | |
| 2521 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var119)) | |
| 2540 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var120)) | |
| 2522 | 2541 | if templ_7745c5c3_Err != nil { | |
| 2523 | 2542 | return templ_7745c5c3_Err | |
| 2524 | 2543 | } | |
| 2525 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 234, "</p>") | |
| 2544 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 236, "</p>") | |
| 2526 | 2545 | if templ_7745c5c3_Err != nil { | |
| 2527 | 2546 | return templ_7745c5c3_Err | |
| 2528 | 2547 | } | |
| 2529 | 2548 | } | |
| 2530 | 2549 | if p.Box.ReadyAction != "" { | |
| 2531 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 235, "<p class=\"d-draft\">this is a draft: it cannot be merged until it is ready for review.</p><form class=\"d-btns\" method=\"post\" action=\"") | |
| 2550 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 237, "<p class=\"d-draft\">this is a draft: it cannot be merged until it is ready for review.</p><form class=\"d-btns\" method=\"post\" action=\"") | |
| 2532 | 2551 | if templ_7745c5c3_Err != nil { | |
| 2533 | 2552 | return templ_7745c5c3_Err | |
| 2534 | 2553 | } | |
| 2535 | - | var templ_7745c5c3_Var120 templ.SafeURL | |
| 2536 | - | templ_7745c5c3_Var120, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadyAction)) | |
| 2554 | + | var templ_7745c5c3_Var121 templ.SafeURL | |
| 2555 | + | templ_7745c5c3_Var121, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadyAction)) | |
| 2537 | 2556 | if templ_7745c5c3_Err != nil { | |
| 2538 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 491, Col: 80} | |
| 2557 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 494, Col: 80} | |
| 2539 | 2558 | } | |
| 2540 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var120)) | |
| 2559 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var121)) | |
| 2541 | 2560 | if templ_7745c5c3_Err != nil { | |
| 2542 | 2561 | return templ_7745c5c3_Err | |
| 2543 | 2562 | } | |
| 2544 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 236, "\"><button type=\"submit\" class=\"btn primary\" data-default title=\"remove the draft prefix from the title\">Ready for review</button></form>") | |
| 2563 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 238, "\"><button type=\"submit\" class=\"btn primary\" data-default title=\"remove the draft prefix from the title\">Ready for review</button></form>") | |
| 2545 | 2564 | if templ_7745c5c3_Err != nil { | |
| 2546 | 2565 | return templ_7745c5c3_Err | |
| 2547 | 2566 | } | |
| @@ -2550,232 +2569,214 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2550 | 2569 | if templ_7745c5c3_Err != nil { | |
| 2551 | 2570 | return templ_7745c5c3_Err | |
| 2552 | 2571 | } | |
| 2553 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 237, " <form class=\"d-acts\" method=\"post\" action=\"") | |
| 2572 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 239, " <form class=\"d-acts\" method=\"post\" action=\"") | |
| 2554 | 2573 | if templ_7745c5c3_Err != nil { | |
| 2555 | 2574 | return templ_7745c5c3_Err | |
| 2556 | 2575 | } | |
| 2557 | - | var templ_7745c5c3_Var121 templ.SafeURL | |
| 2558 | - | templ_7745c5c3_Var121, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.MergeAction)) | |
| 2576 | + | var templ_7745c5c3_Var122 templ.SafeURL | |
| 2577 | + | templ_7745c5c3_Var122, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.MergeAction)) | |
| 2559 | 2578 | if templ_7745c5c3_Err != nil { | |
| 2560 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 496, Col: 80} | |
| 2579 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 499, Col: 80} | |
| 2561 | 2580 | } | |
| 2562 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var121)) | |
| 2581 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var122)) | |
| 2563 | 2582 | if templ_7745c5c3_Err != nil { | |
| 2564 | 2583 | return templ_7745c5c3_Err | |
| 2565 | 2584 | } | |
| 2566 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 238, "\"><input type=\"hidden\" name=\"head_id\" value=\"") | |
| 2585 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 240, "\"><input type=\"hidden\" name=\"head_id\" value=\"") | |
| 2567 | 2586 | if templ_7745c5c3_Err != nil { | |
| 2568 | 2587 | return templ_7745c5c3_Err | |
| 2569 | 2588 | } | |
| 2570 | - | var templ_7745c5c3_Var122 string | |
| 2571 | - | templ_7745c5c3_Var122, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | |
| 2589 | + | var templ_7745c5c3_Var123 string | |
| 2590 | + | templ_7745c5c3_Var123, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | |
| 2572 | 2591 | if templ_7745c5c3_Err != nil { | |
| 2573 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 497, Col: 59} | |
| 2592 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 500, Col: 59} | |
| 2574 | 2593 | } | |
| 2575 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var122) | |
| 2594 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var123) | |
| 2576 | 2595 | if templ_7745c5c3_Err != nil { | |
| 2577 | 2596 | return templ_7745c5c3_Err | |
| 2578 | 2597 | } | |
| 2579 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 239, "\"><fieldset class=\"d-modes\"><legend class=\"sr\">merge mode</legend> ") | |
| 2598 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 241, "\"><fieldset class=\"d-modes\"><legend class=\"sr\">merge mode</legend> ") | |
| 2580 | 2599 | if templ_7745c5c3_Err != nil { | |
| 2581 | 2600 | return templ_7745c5c3_Err | |
| 2582 | 2601 | } | |
| 2583 | 2602 | for i, m := range p.Box.Modes { | |
| 2584 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 240, "<label><input type=\"radio\" name=\"mode\" value=\"") | |
| 2603 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 242, "<label><input type=\"radio\" name=\"mode\" value=\"") | |
| 2585 | 2604 | if templ_7745c5c3_Err != nil { | |
| 2586 | 2605 | return templ_7745c5c3_Err | |
| 2587 | 2606 | } | |
| 2588 | - | var templ_7745c5c3_Var123 string | |
| 2589 | - | templ_7745c5c3_Var123, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Value) | |
| 2607 | + | var templ_7745c5c3_Var124 string | |
| 2608 | + | templ_7745c5c3_Var124, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Value) | |
| 2590 | 2609 | if templ_7745c5c3_Err != nil { | |
| 2591 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 505, Col: 24} | |
| 2610 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 508, Col: 24} | |
| 2592 | 2611 | } | |
| 2593 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var123) | |
| 2612 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var124) | |
| 2594 | 2613 | if templ_7745c5c3_Err != nil { | |
| 2595 | 2614 | return templ_7745c5c3_Err | |
| 2596 | 2615 | } | |
| 2597 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 241, "\"") | |
| 2616 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 243, "\"") | |
| 2598 | 2617 | if templ_7745c5c3_Err != nil { | |
| 2599 | 2618 | return templ_7745c5c3_Err | |
| 2600 | 2619 | } | |
| 2601 | 2620 | if i == p.Box.Checked() { | |
| 2602 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 242, " checked") | |
| 2621 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 244, " checked") | |
| 2603 | 2622 | if templ_7745c5c3_Err != nil { | |
| 2604 | 2623 | return templ_7745c5c3_Err | |
| 2605 | 2624 | } | |
| 2606 | 2625 | } | |
| 2607 | 2626 | if m.Disabled { | |
| 2608 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 243, " disabled") | |
| 2627 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 245, " disabled") | |
| 2609 | 2628 | if templ_7745c5c3_Err != nil { | |
| 2610 | 2629 | return templ_7745c5c3_Err | |
| 2611 | 2630 | } | |
| 2612 | 2631 | } | |
| 2613 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 244, " title=\"") | |
| 2632 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 246, " title=\"") | |
| 2614 | 2633 | if templ_7745c5c3_Err != nil { | |
| 2615 | 2634 | return templ_7745c5c3_Err | |
| 2616 | 2635 | } | |
| 2617 | - | var templ_7745c5c3_Var124 string | |
| 2618 | - | templ_7745c5c3_Var124, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Reason) | |
| 2636 | + | var templ_7745c5c3_Var125 string | |
| 2637 | + | templ_7745c5c3_Var125, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Reason) | |
| 2619 | 2638 | if templ_7745c5c3_Err != nil { | |
| 2620 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 508, Col: 25} | |
| 2639 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 511, Col: 25} | |
| 2621 | 2640 | } | |
| 2622 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var124) | |
| 2641 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var125) | |
| 2623 | 2642 | if templ_7745c5c3_Err != nil { | |
| 2624 | 2643 | return templ_7745c5c3_Err | |
| 2625 | 2644 | } | |
| 2626 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 245, "\" :disabled=\"this.value === 'fast-forward' ? q('[data-mergeability]').data.ffOk !== true : q('[data-mergeability]').data.mergeOk !== true\" :title=\"this.value === 'fast-forward' ? q('[data-mergeability]').data.ffReason : q('[data-mergeability]').data.mergeReason\"> ") | |
| 2645 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 247, "\" :disabled=\"this.value === 'fast-forward' ? q('[data-mergeability]').data.ffOk !== true : q('[data-mergeability]').data.mergeOk !== true\" :title=\"this.value === 'fast-forward' ? q('[data-mergeability]').data.ffReason : q('[data-mergeability]').data.mergeReason\"> ") | |
| 2627 | 2646 | if templ_7745c5c3_Err != nil { | |
| 2628 | 2647 | return templ_7745c5c3_Err | |
| 2629 | 2648 | } | |
| 2630 | - | var templ_7745c5c3_Var125 string | |
| 2631 | - | templ_7745c5c3_Var125, templ_7745c5c3_Err = templ.JoinStringErrs(m.Label) | |
| 2649 | + | var templ_7745c5c3_Var126 string | |
| 2650 | + | templ_7745c5c3_Var126, templ_7745c5c3_Err = templ.JoinStringErrs(m.Label) | |
| 2632 | 2651 | if templ_7745c5c3_Err != nil { | |
| 2633 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 512, Col: 17} | |
| 2652 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 515, Col: 17} | |
| 2634 | 2653 | } | |
| 2635 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var125)) | |
| 2654 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var126)) | |
| 2636 | 2655 | if templ_7745c5c3_Err != nil { | |
| 2637 | 2656 | return templ_7745c5c3_Err | |
| 2638 | 2657 | } | |
| 2639 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 246, " ") | |
| 2658 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 248, " ") | |
| 2640 | 2659 | if templ_7745c5c3_Err != nil { | |
| 2641 | 2660 | return templ_7745c5c3_Err | |
| 2642 | 2661 | } | |
| 2643 | 2662 | if i < 9 { | |
| 2644 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 247, "<kbd aria-hidden=\"true\">") | |
| 2663 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 249, "<kbd aria-hidden=\"true\">") | |
| 2645 | 2664 | if templ_7745c5c3_Err != nil { | |
| 2646 | 2665 | return templ_7745c5c3_Err | |
| 2647 | 2666 | } | |
| 2648 | - | var templ_7745c5c3_Var126 string | |
| 2649 | - | templ_7745c5c3_Var126, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(i + 1)) | |
| 2667 | + | var templ_7745c5c3_Var127 string | |
| 2668 | + | templ_7745c5c3_Var127, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(i + 1)) | |
| 2650 | 2669 | if templ_7745c5c3_Err != nil { | |
| 2651 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 514, Col: 46} | |
| 2670 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 517, Col: 46} | |
| 2652 | 2671 | } | |
| 2653 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var126)) | |
| 2672 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var127)) | |
| 2654 | 2673 | if templ_7745c5c3_Err != nil { | |
| 2655 | 2674 | return templ_7745c5c3_Err | |
| 2656 | 2675 | } | |
| 2657 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 248, "</kbd>") | |
| 2676 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 250, "</kbd>") | |
| 2658 | 2677 | if templ_7745c5c3_Err != nil { | |
| 2659 | 2678 | return templ_7745c5c3_Err | |
| 2660 | 2679 | } | |
| 2661 | 2680 | } | |
| 2662 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 249, "</label>") | |
| 2681 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 251, "</label>") | |
| 2663 | 2682 | if templ_7745c5c3_Err != nil { | |
| 2664 | 2683 | return templ_7745c5c3_Err | |
| 2665 | 2684 | } | |
| 2666 | 2685 | } | |
| 2667 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 250, "</fieldset>") | |
| 2686 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 252, "</fieldset>") | |
| 2668 | 2687 | if templ_7745c5c3_Err != nil { | |
| 2669 | 2688 | return templ_7745c5c3_Err | |
| 2670 | 2689 | } | |
| 2671 | 2690 | if p.Box.Signed { | |
| 2672 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 251, "<p class=\"d-note\" id=\"mr-signing\">squash and merge commits are signed with ermite's own key, generated automatically on first start. ") | |
| 2691 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 253, "<p class=\"d-note\" id=\"mr-signing\">squash and merge commits are signed with ermite's own key (generated on first start). ") | |
| 2673 | 2692 | if templ_7745c5c3_Err != nil { | |
| 2674 | 2693 | return templ_7745c5c3_Err | |
| 2675 | 2694 | } | |
| 2676 | 2695 | if p.Box.Fingerprint != "" { | |
| 2677 | - | var templ_7745c5c3_Var127 string | |
| 2678 | - | templ_7745c5c3_Var127, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 2679 | - | if templ_7745c5c3_Err != nil { | |
| 2680 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 523, Col: 13} | |
| 2681 | - | } | |
| 2682 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var127)) | |
| 2683 | - | if templ_7745c5c3_Err != nil { | |
| 2684 | - | return templ_7745c5c3_Err | |
| 2685 | - | } | |
| 2686 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 252, "key <code>") | |
| 2696 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 254, "fingerprint <code>") | |
| 2687 | 2697 | if templ_7745c5c3_Err != nil { | |
| 2688 | 2698 | return templ_7745c5c3_Err | |
| 2689 | 2699 | } | |
| 2690 | 2700 | var templ_7745c5c3_Var128 string | |
| 2691 | 2701 | templ_7745c5c3_Var128, templ_7745c5c3_Err = templ.JoinStringErrs(p.Box.Fingerprint) | |
| 2692 | 2702 | if templ_7745c5c3_Err != nil { | |
| 2693 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 523, Col: 44} | |
| 2703 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 526, Col: 45} | |
| 2694 | 2704 | } | |
| 2695 | 2705 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var128)) | |
| 2696 | 2706 | if templ_7745c5c3_Err != nil { | |
| 2697 | 2707 | return templ_7745c5c3_Err | |
| 2698 | 2708 | } | |
| 2699 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 253, "</code>. ") | |
| 2709 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 255, "</code> ") | |
| 2700 | 2710 | if templ_7745c5c3_Err != nil { | |
| 2701 | 2711 | return templ_7745c5c3_Err | |
| 2702 | 2712 | } | |
| 2703 | 2713 | } | |
| 2704 | - | var templ_7745c5c3_Var129 string | |
| 2705 | - | templ_7745c5c3_Var129, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 2706 | - | if templ_7745c5c3_Err != nil { | |
| 2707 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 525, Col: 12} | |
| 2708 | - | } | |
| 2709 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var129)) | |
| 2710 | - | if templ_7745c5c3_Err != nil { | |
| 2711 | - | return templ_7745c5c3_Err | |
| 2712 | - | } | |
| 2713 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 254, "<code>ermite signing-key show</code> prints the public key to verify them.</p>") | |
| 2714 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 256, "<code>ermite signing-key show</code> prints it.</p>") | |
| 2714 | 2715 | if templ_7745c5c3_Err != nil { | |
| 2715 | 2716 | return templ_7745c5c3_Err | |
| 2716 | 2717 | } | |
| 2717 | 2718 | } | |
| 2718 | 2719 | if p.Box.CanDeleteBranch { | |
| 2719 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 255, "<label class=\"d-check\"><input type=\"checkbox\" name=\"delete_branch\" value=\"1\"> delete ") | |
| 2720 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 257, "<label class=\"d-check\"><input type=\"checkbox\" name=\"delete_branch\" value=\"1\"> delete ") | |
| 2720 | 2721 | if templ_7745c5c3_Err != nil { | |
| 2721 | 2722 | return templ_7745c5c3_Err | |
| 2722 | 2723 | } | |
| 2723 | - | var templ_7745c5c3_Var130 string | |
| 2724 | - | templ_7745c5c3_Var130, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 2724 | + | var templ_7745c5c3_Var129 string | |
| 2725 | + | templ_7745c5c3_Var129, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 2725 | 2726 | if templ_7745c5c3_Err != nil { | |
| 2726 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 529, Col: 102} | |
| 2727 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 532, Col: 102} | |
| 2727 | 2728 | } | |
| 2728 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var130)) | |
| 2729 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var129)) | |
| 2729 | 2730 | if templ_7745c5c3_Err != nil { | |
| 2730 | 2731 | return templ_7745c5c3_Err | |
| 2731 | 2732 | } | |
| 2732 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 256, " after the merge <kbd aria-hidden=\"true\">D</kbd></label>") | |
| 2733 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 258, " after the merge <kbd aria-hidden=\"true\">D</kbd></label>") | |
| 2733 | 2734 | if templ_7745c5c3_Err != nil { | |
| 2734 | 2735 | return templ_7745c5c3_Err | |
| 2735 | 2736 | } | |
| 2736 | 2737 | } | |
| 2737 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 257, "<div class=\"d-btns\"><button type=\"submit\" class=\"btn primary\" data-default") | |
| 2738 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 259, "<div class=\"d-btns\"><button type=\"submit\" class=\"btn primary\" data-default") | |
| 2738 | 2739 | if templ_7745c5c3_Err != nil { | |
| 2739 | 2740 | return templ_7745c5c3_Err | |
| 2740 | 2741 | } | |
| 2741 | 2742 | if !p.Box.CanMerge() { | |
| 2742 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 258, " disabled") | |
| 2743 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 260, " disabled") | |
| 2743 | 2744 | if templ_7745c5c3_Err != nil { | |
| 2744 | 2745 | return templ_7745c5c3_Err | |
| 2745 | 2746 | } | |
| 2746 | 2747 | } | |
| 2747 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 259, " title=\"") | |
| 2748 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 261, " title=\"") | |
| 2748 | 2749 | if templ_7745c5c3_Err != nil { | |
| 2749 | 2750 | return templ_7745c5c3_Err | |
| 2750 | 2751 | } | |
| 2751 | - | var templ_7745c5c3_Var131 string | |
| 2752 | - | templ_7745c5c3_Var131, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.MergeTitle()) | |
| 2752 | + | var templ_7745c5c3_Var130 string | |
| 2753 | + | templ_7745c5c3_Var130, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.MergeTitle()) | |
| 2753 | 2754 | if templ_7745c5c3_Err != nil { | |
| 2754 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 537, Col: 33} | |
| 2755 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 540, Col: 33} | |
| 2755 | 2756 | } | |
| 2756 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var131) | |
| 2757 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var130) | |
| 2757 | 2758 | if templ_7745c5c3_Err != nil { | |
| 2758 | 2759 | return templ_7745c5c3_Err | |
| 2759 | 2760 | } | |
| 2760 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 260, "\" :disabled=\"!this.form.querySelector('input[name=mode]:checked:not(:disabled)')\" :title=\"(this.form.querySelector('input[name=mode]:checked') || {}).title || ''\">Merge into ") | |
| 2761 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 262, "\" :disabled=\"!this.form.querySelector('input[name=mode]:checked:not(:disabled)')\" :title=\"(this.form.querySelector('input[name=mode]:checked') || {}).title || ''\">Merge into ") | |
| 2761 | 2762 | if templ_7745c5c3_Err != nil { | |
| 2762 | 2763 | return templ_7745c5c3_Err | |
| 2763 | 2764 | } | |
| 2764 | - | var templ_7745c5c3_Var132 string | |
| 2765 | - | templ_7745c5c3_Var132, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2765 | + | var templ_7745c5c3_Var131 string | |
| 2766 | + | templ_7745c5c3_Var131, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2766 | 2767 | if templ_7745c5c3_Err != nil { | |
| 2767 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 540, Col: 28} | |
| 2768 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 543, Col: 28} | |
| 2768 | 2769 | } | |
| 2769 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var132)) | |
| 2770 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var131)) | |
| 2770 | 2771 | if templ_7745c5c3_Err != nil { | |
| 2771 | 2772 | return templ_7745c5c3_Err | |
| 2772 | 2773 | } | |
| 2773 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 261, "</button></div></form>") | |
| 2774 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 263, "</button></div></form>") | |
| 2774 | 2775 | if templ_7745c5c3_Err != nil { | |
| 2775 | 2776 | return templ_7745c5c3_Err | |
| 2776 | 2777 | } | |
| 2777 | 2778 | } | |
| 2778 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 262, "</div></details>") | |
| 2779 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 264, "</div></details>") | |
| 2779 | 2780 | if templ_7745c5c3_Err != nil { | |
| 2780 | 2781 | return templ_7745c5c3_Err | |
| 2781 | 2782 | } | |
| @@ -2801,182 +2802,182 @@ func MRMergeability(v MergeabilityView) templ.Component { | |||
| 2801 | 2802 | }() | |
| 2802 | 2803 | } | |
| 2803 | 2804 | ctx = templ.InitializeContext(ctx) | |
| 2804 | - | templ_7745c5c3_Var133 := templ.GetChildren(ctx) | |
| 2805 | - | if templ_7745c5c3_Var133 == nil { | |
| 2806 | - | templ_7745c5c3_Var133 = templ.NopComponent | |
| 2805 | + | templ_7745c5c3_Var132 := templ.GetChildren(ctx) | |
| 2806 | + | if templ_7745c5c3_Var132 == nil { | |
| 2807 | + | templ_7745c5c3_Var132 = templ.NopComponent | |
| 2807 | 2808 | } | |
| 2808 | 2809 | ctx = templ.ClearChildren(ctx) | |
| 2809 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 263, "<span data-mergeability data-state=\"") | |
| 2810 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 265, "<span data-mergeability data-state=\"") | |
| 2811 | + | if templ_7745c5c3_Err != nil { | |
| 2812 | + | return templ_7745c5c3_Err | |
| 2813 | + | } | |
| 2814 | + | var templ_7745c5c3_Var133 string | |
| 2815 | + | templ_7745c5c3_Var133, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.State) | |
| 2816 | + | if templ_7745c5c3_Err != nil { | |
| 2817 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 556, Col: 22} | |
| 2818 | + | } | |
| 2819 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var133) | |
| 2820 | + | if templ_7745c5c3_Err != nil { | |
| 2821 | + | return templ_7745c5c3_Err | |
| 2822 | + | } | |
| 2823 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 266, "\" data-ff-ok=\"") | |
| 2810 | 2824 | if templ_7745c5c3_Err != nil { | |
| 2811 | 2825 | return templ_7745c5c3_Err | |
| 2812 | 2826 | } | |
| 2813 | 2827 | var templ_7745c5c3_Var134 string | |
| 2814 | - | templ_7745c5c3_Var134, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.State) | |
| 2828 | + | templ_7745c5c3_Var134, templ_7745c5c3_Err = templ.ResolveAttributeValue(strconv.FormatBool(v.FFOk)) | |
| 2815 | 2829 | if templ_7745c5c3_Err != nil { | |
| 2816 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 553, Col: 22} | |
| 2830 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 557, Col: 41} | |
| 2817 | 2831 | } | |
| 2818 | 2832 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var134) | |
| 2819 | 2833 | if templ_7745c5c3_Err != nil { | |
| 2820 | 2834 | return templ_7745c5c3_Err | |
| 2821 | 2835 | } | |
| 2822 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 264, "\" data-ff-ok=\"") | |
| 2836 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 267, "\" data-merge-ok=\"") | |
| 2823 | 2837 | if templ_7745c5c3_Err != nil { | |
| 2824 | 2838 | return templ_7745c5c3_Err | |
| 2825 | 2839 | } | |
| 2826 | 2840 | var templ_7745c5c3_Var135 string | |
| 2827 | - | templ_7745c5c3_Var135, templ_7745c5c3_Err = templ.ResolveAttributeValue(strconv.FormatBool(v.FFOk)) | |
| 2841 | + | templ_7745c5c3_Var135, templ_7745c5c3_Err = templ.ResolveAttributeValue(strconv.FormatBool(v.MergeOk)) | |
| 2828 | 2842 | if templ_7745c5c3_Err != nil { | |
| 2829 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 554, Col: 41} | |
| 2843 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 558, Col: 47} | |
| 2830 | 2844 | } | |
| 2831 | 2845 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var135) | |
| 2832 | 2846 | if templ_7745c5c3_Err != nil { | |
| 2833 | 2847 | return templ_7745c5c3_Err | |
| 2834 | 2848 | } | |
| 2835 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 265, "\" data-merge-ok=\"") | |
| 2849 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 268, "\" data-ff-reason=\"") | |
| 2836 | 2850 | if templ_7745c5c3_Err != nil { | |
| 2837 | 2851 | return templ_7745c5c3_Err | |
| 2838 | 2852 | } | |
| 2839 | 2853 | var templ_7745c5c3_Var136 string | |
| 2840 | - | templ_7745c5c3_Var136, templ_7745c5c3_Err = templ.ResolveAttributeValue(strconv.FormatBool(v.MergeOk)) | |
| 2854 | + | templ_7745c5c3_Var136, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.FFReason) | |
| 2841 | 2855 | if templ_7745c5c3_Err != nil { | |
| 2842 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 555, Col: 47} | |
| 2856 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 559, Col: 29} | |
| 2843 | 2857 | } | |
| 2844 | 2858 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var136) | |
| 2845 | 2859 | if templ_7745c5c3_Err != nil { | |
| 2846 | 2860 | return templ_7745c5c3_Err | |
| 2847 | 2861 | } | |
| 2848 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 266, "\" data-ff-reason=\"") | |
| 2862 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 269, "\" data-merge-reason=\"") | |
| 2849 | 2863 | if templ_7745c5c3_Err != nil { | |
| 2850 | 2864 | return templ_7745c5c3_Err | |
| 2851 | 2865 | } | |
| 2852 | 2866 | var templ_7745c5c3_Var137 string | |
| 2853 | - | templ_7745c5c3_Var137, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.FFReason) | |
| 2867 | + | templ_7745c5c3_Var137, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.MergeReason) | |
| 2854 | 2868 | if templ_7745c5c3_Err != nil { | |
| 2855 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 556, Col: 29} | |
| 2869 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 560, Col: 35} | |
| 2856 | 2870 | } | |
| 2857 | 2871 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var137) | |
| 2858 | 2872 | if templ_7745c5c3_Err != nil { | |
| 2859 | 2873 | return templ_7745c5c3_Err | |
| 2860 | 2874 | } | |
| 2861 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 267, "\" data-merge-reason=\"") | |
| 2875 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 270, "\"><span class=\"badge\" data-state=\"") | |
| 2862 | 2876 | if templ_7745c5c3_Err != nil { | |
| 2863 | 2877 | return templ_7745c5c3_Err | |
| 2864 | 2878 | } | |
| 2865 | 2879 | var templ_7745c5c3_Var138 string | |
| 2866 | - | templ_7745c5c3_Var138, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.MergeReason) | |
| 2880 | + | templ_7745c5c3_Var138, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.State) | |
| 2867 | 2881 | if templ_7745c5c3_Err != nil { | |
| 2868 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 557, Col: 35} | |
| 2882 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 562, Col: 42} | |
| 2869 | 2883 | } | |
| 2870 | 2884 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var138) | |
| 2871 | 2885 | if templ_7745c5c3_Err != nil { | |
| 2872 | 2886 | return templ_7745c5c3_Err | |
| 2873 | 2887 | } | |
| 2874 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 268, "\"><span class=\"badge\" data-state=\"") | |
| 2888 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 271, "\">") | |
| 2875 | 2889 | if templ_7745c5c3_Err != nil { | |
| 2876 | 2890 | return templ_7745c5c3_Err | |
| 2877 | 2891 | } | |
| 2878 | 2892 | var templ_7745c5c3_Var139 string | |
| 2879 | - | templ_7745c5c3_Var139, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.State) | |
| 2880 | - | if templ_7745c5c3_Err != nil { | |
| 2881 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 559, Col: 42} | |
| 2882 | - | } | |
| 2883 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var139) | |
| 2884 | - | if templ_7745c5c3_Err != nil { | |
| 2885 | - | return templ_7745c5c3_Err | |
| 2886 | - | } | |
| 2887 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 269, "\">") | |
| 2888 | - | if templ_7745c5c3_Err != nil { | |
| 2889 | - | return templ_7745c5c3_Err | |
| 2890 | - | } | |
| 2891 | - | var templ_7745c5c3_Var140 string | |
| 2892 | - | templ_7745c5c3_Var140, templ_7745c5c3_Err = templ.JoinStringErrs(v.Label) | |
| 2893 | + | templ_7745c5c3_Var139, templ_7745c5c3_Err = templ.JoinStringErrs(v.Label) | |
| 2893 | 2894 | if templ_7745c5c3_Err != nil { | |
| 2894 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 559, Col: 54} | |
| 2895 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 562, Col: 54} | |
| 2895 | 2896 | } | |
| 2896 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var140)) | |
| 2897 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var139)) | |
| 2897 | 2898 | if templ_7745c5c3_Err != nil { | |
| 2898 | 2899 | return templ_7745c5c3_Err | |
| 2899 | 2900 | } | |
| 2900 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 270, "</span> ") | |
| 2901 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 272, "</span> ") | |
| 2901 | 2902 | if templ_7745c5c3_Err != nil { | |
| 2902 | 2903 | return templ_7745c5c3_Err | |
| 2903 | 2904 | } | |
| 2904 | 2905 | if v.Detail != "" { | |
| 2905 | - | var templ_7745c5c3_Var141 string | |
| 2906 | - | templ_7745c5c3_Var141, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 2906 | + | var templ_7745c5c3_Var140 string | |
| 2907 | + | templ_7745c5c3_Var140, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 2907 | 2908 | if templ_7745c5c3_Err != nil { | |
| 2908 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 561, Col: 8} | |
| 2909 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 564, Col: 8} | |
| 2909 | 2910 | } | |
| 2910 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var141)) | |
| 2911 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var140)) | |
| 2911 | 2912 | if templ_7745c5c3_Err != nil { | |
| 2912 | 2913 | return templ_7745c5c3_Err | |
| 2913 | 2914 | } | |
| 2914 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 271, "<span class=\"dim\">") | |
| 2915 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 273, "<span class=\"dim\">") | |
| 2915 | 2916 | if templ_7745c5c3_Err != nil { | |
| 2916 | 2917 | return templ_7745c5c3_Err | |
| 2917 | 2918 | } | |
| 2918 | - | var templ_7745c5c3_Var142 string | |
| 2919 | - | templ_7745c5c3_Var142, templ_7745c5c3_Err = templ.JoinStringErrs(v.Detail) | |
| 2919 | + | var templ_7745c5c3_Var141 string | |
| 2920 | + | templ_7745c5c3_Var141, templ_7745c5c3_Err = templ.JoinStringErrs(v.Detail) | |
| 2920 | 2921 | if templ_7745c5c3_Err != nil { | |
| 2921 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 561, Col: 38} | |
| 2922 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 564, Col: 38} | |
| 2922 | 2923 | } | |
| 2923 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var142)) | |
| 2924 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var141)) | |
| 2924 | 2925 | if templ_7745c5c3_Err != nil { | |
| 2925 | 2926 | return templ_7745c5c3_Err | |
| 2926 | 2927 | } | |
| 2927 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 272, "</span>") | |
| 2928 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 274, "</span>") | |
| 2928 | 2929 | if templ_7745c5c3_Err != nil { | |
| 2929 | 2930 | return templ_7745c5c3_Err | |
| 2930 | 2931 | } | |
| 2931 | 2932 | } | |
| 2932 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 273, "</span> ") | |
| 2933 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 275, "</span> ") | |
| 2933 | 2934 | if templ_7745c5c3_Err != nil { | |
| 2934 | 2935 | return templ_7745c5c3_Err | |
| 2935 | 2936 | } | |
| 2936 | 2937 | if len(v.Paths) > 0 { | |
| 2937 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 274, "<ul class=\"mg-paths\" aria-label=\"conflicting files\">") | |
| 2938 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 276, "<ul class=\"mg-paths\" aria-label=\"conflicting files\">") | |
| 2938 | 2939 | if templ_7745c5c3_Err != nil { | |
| 2939 | 2940 | return templ_7745c5c3_Err | |
| 2940 | 2941 | } | |
| 2941 | 2942 | for _, path := range v.Paths { | |
| 2942 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 275, "<li><code>") | |
| 2943 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 277, "<li><code>") | |
| 2943 | 2944 | if templ_7745c5c3_Err != nil { | |
| 2944 | 2945 | return templ_7745c5c3_Err | |
| 2945 | 2946 | } | |
| 2946 | - | var templ_7745c5c3_Var143 string | |
| 2947 | - | templ_7745c5c3_Var143, templ_7745c5c3_Err = templ.JoinStringErrs(path) | |
| 2947 | + | var templ_7745c5c3_Var142 string | |
| 2948 | + | templ_7745c5c3_Var142, templ_7745c5c3_Err = templ.JoinStringErrs(path) | |
| 2948 | 2949 | if templ_7745c5c3_Err != nil { | |
| 2949 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 567, Col: 20} | |
| 2950 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 570, Col: 20} | |
| 2950 | 2951 | } | |
| 2951 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var143)) | |
| 2952 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var142)) | |
| 2952 | 2953 | if templ_7745c5c3_Err != nil { | |
| 2953 | 2954 | return templ_7745c5c3_Err | |
| 2954 | 2955 | } | |
| 2955 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 276, "</code></li>") | |
| 2956 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 278, "</code></li>") | |
| 2956 | 2957 | if templ_7745c5c3_Err != nil { | |
| 2957 | 2958 | return templ_7745c5c3_Err | |
| 2958 | 2959 | } | |
| 2959 | 2960 | } | |
| 2960 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 277, "</ul>") | |
| 2961 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 279, "</ul>") | |
| 2961 | 2962 | if templ_7745c5c3_Err != nil { | |
| 2962 | 2963 | return templ_7745c5c3_Err | |
| 2963 | 2964 | } | |
| 2964 | 2965 | } | |
| 2965 | 2966 | if v.PathsNote != "" { | |
| 2966 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 278, "<p class=\"dim\">") | |
| 2967 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 280, "<p class=\"dim\">") | |
| 2967 | 2968 | if templ_7745c5c3_Err != nil { | |
| 2968 | 2969 | return templ_7745c5c3_Err | |
| 2969 | 2970 | } | |
| 2970 | - | var templ_7745c5c3_Var144 string | |
| 2971 | - | templ_7745c5c3_Var144, templ_7745c5c3_Err = templ.JoinStringErrs(v.PathsNote) | |
| 2971 | + | var templ_7745c5c3_Var143 string | |
| 2972 | + | templ_7745c5c3_Var143, templ_7745c5c3_Err = templ.JoinStringErrs(v.PathsNote) | |
| 2972 | 2973 | if templ_7745c5c3_Err != nil { | |
| 2973 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 572, Col: 30} | |
| 2974 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 575, Col: 30} | |
| 2974 | 2975 | } | |
| 2975 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var144)) | |
| 2976 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var143)) | |
| 2976 | 2977 | if templ_7745c5c3_Err != nil { | |
| 2977 | 2978 | return templ_7745c5c3_Err | |
| 2978 | 2979 | } | |
| 2979 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 279, "</p>") | |
| 2980 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 281, "</p>") | |
| 2980 | 2981 | if templ_7745c5c3_Err != nil { | |
| 2981 | 2982 | return templ_7745c5c3_Err | |
| 2982 | 2983 | } | |
| @@ -3003,12 +3004,12 @@ func mrMergeabilitySlot(v MergeabilityView) templ.Component { | |||
| 3003 | 3004 | }() | |
| 3004 | 3005 | } | |
| 3005 | 3006 | ctx = templ.InitializeContext(ctx) | |
| 3006 | - | templ_7745c5c3_Var145 := templ.GetChildren(ctx) | |
| 3007 | - | if templ_7745c5c3_Var145 == nil { | |
| 3008 | - | templ_7745c5c3_Var145 = templ.NopComponent | |
| 3007 | + | templ_7745c5c3_Var144 := templ.GetChildren(ctx) | |
| 3008 | + | if templ_7745c5c3_Var144 == nil { | |
| 3009 | + | templ_7745c5c3_Var144 = templ.NopComponent | |
| 3009 | 3010 | } | |
| 3010 | 3011 | ctx = templ.ClearChildren(ctx) | |
| 3011 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 280, "<div id=\"mr-mergeability\" class=\"live-slot\" role=\"status\" data-slot>") | |
| 3012 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 282, "<div id=\"mr-mergeability\" class=\"live-slot\" role=\"status\" data-slot>") | |
| 3012 | 3013 | if templ_7745c5c3_Err != nil { | |
| 3013 | 3014 | return templ_7745c5c3_Err | |
| 3014 | 3015 | } | |
| @@ -3016,7 +3017,7 @@ func mrMergeabilitySlot(v MergeabilityView) templ.Component { | |||
| 3016 | 3017 | if templ_7745c5c3_Err != nil { | |
| 3017 | 3018 | return templ_7745c5c3_Err | |
| 3018 | 3019 | } | |
| 3019 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 281, "</div>") | |
| 3020 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 283, "</div>") | |
| 3020 | 3021 | if templ_7745c5c3_Err != nil { | |
| 3021 | 3022 | return templ_7745c5c3_Err | |
| 3022 | 3023 | } | |
| @@ -3041,9 +3042,9 @@ func MRMergeabilityFragment(v MergeabilityView) templ.Component { | |||
| 3041 | 3042 | }() | |
| 3042 | 3043 | } | |
| 3043 | 3044 | ctx = templ.InitializeContext(ctx) | |
| 3044 | - | templ_7745c5c3_Var146 := templ.GetChildren(ctx) | |
| 3045 | - | if templ_7745c5c3_Var146 == nil { | |
| 3046 | - | templ_7745c5c3_Var146 = templ.NopComponent | |
| 3045 | + | templ_7745c5c3_Var145 := templ.GetChildren(ctx) | |
| 3046 | + | if templ_7745c5c3_Var145 == nil { | |
| 3047 | + | templ_7745c5c3_Var145 = templ.NopComponent | |
| 3047 | 3048 | } | |
| 3048 | 3049 | ctx = templ.ClearChildren(ctx) | |
| 3049 | 3050 | templ_7745c5c3_Err = mrMergeabilitySlot(v).Render(ctx, templ_7745c5c3_Buffer) | |
| @@ -3072,66 +3073,66 @@ func moreMenu(p MRPage) templ.Component { | |||
| 3072 | 3073 | }() | |
| 3073 | 3074 | } | |
| 3074 | 3075 | ctx = templ.InitializeContext(ctx) | |
| 3075 | - | templ_7745c5c3_Var147 := templ.GetChildren(ctx) | |
| 3076 | - | if templ_7745c5c3_Var147 == nil { | |
| 3077 | - | templ_7745c5c3_Var147 = templ.NopComponent | |
| 3076 | + | templ_7745c5c3_Var146 := templ.GetChildren(ctx) | |
| 3077 | + | if templ_7745c5c3_Var146 == nil { | |
| 3078 | + | templ_7745c5c3_Var146 = templ.NopComponent | |
| 3078 | 3079 | } | |
| 3079 | 3080 | ctx = templ.ClearChildren(ctx) | |
| 3080 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 282, "<details class=\"menu omenu\"><summary class=\"btn icon\" aria-label=\"More actions\" title=\"more actions\">⋯</summary><div class=\"menu-pop\" role=\"group\" aria-label=\"More actions\">") | |
| 3081 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 284, "<details class=\"menu omenu\"><summary class=\"btn icon\" aria-label=\"More actions\" title=\"more actions\">⋯</summary><div class=\"menu-pop\" role=\"group\" aria-label=\"More actions\">") | |
| 3081 | 3082 | if templ_7745c5c3_Err != nil { | |
| 3082 | 3083 | return templ_7745c5c3_Err | |
| 3083 | 3084 | } | |
| 3084 | 3085 | if p.Box.CanMarkRead { | |
| 3085 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 283, "<form method=\"post\" action=\"") | |
| 3086 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 285, "<form method=\"post\" action=\"") | |
| 3086 | 3087 | if templ_7745c5c3_Err != nil { | |
| 3087 | 3088 | return templ_7745c5c3_Err | |
| 3088 | 3089 | } | |
| 3089 | - | var templ_7745c5c3_Var148 templ.SafeURL | |
| 3090 | - | templ_7745c5c3_Var148, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadAction)) | |
| 3090 | + | var templ_7745c5c3_Var147 templ.SafeURL | |
| 3091 | + | templ_7745c5c3_Var147, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadAction)) | |
| 3091 | 3092 | if templ_7745c5c3_Err != nil { | |
| 3092 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 596, Col: 64} | |
| 3093 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 599, Col: 64} | |
| 3093 | 3094 | } | |
| 3094 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var148)) | |
| 3095 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var147)) | |
| 3095 | 3096 | if templ_7745c5c3_Err != nil { | |
| 3096 | 3097 | return templ_7745c5c3_Err | |
| 3097 | 3098 | } | |
| 3098 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 284, "\"><input type=\"hidden\" name=\"head_id\" value=\"") | |
| 3099 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 286, "\"><input type=\"hidden\" name=\"head_id\" value=\"") | |
| 3099 | 3100 | if templ_7745c5c3_Err != nil { | |
| 3100 | 3101 | return templ_7745c5c3_Err | |
| 3101 | 3102 | } | |
| 3102 | - | var templ_7745c5c3_Var149 string | |
| 3103 | - | templ_7745c5c3_Var149, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | |
| 3103 | + | var templ_7745c5c3_Var148 string | |
| 3104 | + | templ_7745c5c3_Var148, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | |
| 3104 | 3105 | if templ_7745c5c3_Err != nil { | |
| 3105 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 597, Col: 59} | |
| 3106 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 600, Col: 59} | |
| 3106 | 3107 | } | |
| 3107 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var149) | |
| 3108 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var148) | |
| 3108 | 3109 | if templ_7745c5c3_Err != nil { | |
| 3109 | 3110 | return templ_7745c5c3_Err | |
| 3110 | 3111 | } | |
| 3111 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 285, "\"> <button type=\"submit\" title=\"the next visit can show only what changed after this head\" class=\"btn\" aria-keyshortcuts=\"Shift+R\" data-read>Mark read <kbd aria-hidden=\"true\">R</kbd></button></form>") | |
| 3112 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 287, "\"> <button type=\"submit\" title=\"the next visit can show only what changed after this head\" class=\"btn\" aria-keyshortcuts=\"Shift+R\" data-read>Mark read <kbd aria-hidden=\"true\">R</kbd></button></form>") | |
| 3112 | 3113 | if templ_7745c5c3_Err != nil { | |
| 3113 | 3114 | return templ_7745c5c3_Err | |
| 3114 | 3115 | } | |
| 3115 | 3116 | } | |
| 3116 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 286, "<form method=\"post\" action=\"") | |
| 3117 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 288, "<form method=\"post\" action=\"") | |
| 3117 | 3118 | if templ_7745c5c3_Err != nil { | |
| 3118 | 3119 | return templ_7745c5c3_Err | |
| 3119 | 3120 | } | |
| 3120 | - | var templ_7745c5c3_Var150 templ.SafeURL | |
| 3121 | - | templ_7745c5c3_Var150, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.CloseAction)) | |
| 3121 | + | var templ_7745c5c3_Var149 templ.SafeURL | |
| 3122 | + | templ_7745c5c3_Var149, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.CloseAction)) | |
| 3122 | 3123 | if templ_7745c5c3_Err != nil { | |
| 3123 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 601, Col: 64} | |
| 3124 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 604, Col: 64} | |
| 3124 | 3125 | } | |
| 3125 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var150)) | |
| 3126 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var149)) | |
| 3126 | 3127 | if templ_7745c5c3_Err != nil { | |
| 3127 | 3128 | return templ_7745c5c3_Err | |
| 3128 | 3129 | } | |
| 3129 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 287, "\"><button type=\"submit\" title=\"close without merging; the branch is kept\" class=\"btn danger\">Close</button></form>") | |
| 3130 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 289, "\"><button type=\"submit\" title=\"close without merging; the branch is kept\" class=\"btn danger\">Close</button></form>") | |
| 3130 | 3131 | if templ_7745c5c3_Err != nil { | |
| 3131 | 3132 | return templ_7745c5c3_Err | |
| 3132 | 3133 | } | |
| 3133 | 3134 | if !p.Box.HeadGone && p.Box.ReadyAction == "" { | |
| 3134 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 288, "<details class=\"d-or\"><summary class=\"mute\">or from a terminal</summary>") | |
| 3135 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 290, "<details class=\"d-or\"><summary class=\"mute\">or from a terminal</summary>") | |
| 3135 | 3136 | if templ_7745c5c3_Err != nil { | |
| 3136 | 3137 | return templ_7745c5c3_Err | |
| 3137 | 3138 | } | |
| @@ -3139,12 +3140,12 @@ func moreMenu(p MRPage) templ.Component { | |||
| 3139 | 3140 | if templ_7745c5c3_Err != nil { | |
| 3140 | 3141 | return templ_7745c5c3_Err | |
| 3141 | 3142 | } | |
| 3142 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 289, "</details>") | |
| 3143 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 291, "</details>") | |
| 3143 | 3144 | if templ_7745c5c3_Err != nil { | |
| 3144 | 3145 | return templ_7745c5c3_Err | |
| 3145 | 3146 | } | |
| 3146 | 3147 | } | |
| 3147 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 290, "</div></details>") | |
| 3148 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 292, "</div></details>") | |
| 3148 | 3149 | if templ_7745c5c3_Err != nil { | |
| 3149 | 3150 | return templ_7745c5c3_Err | |
| 3150 | 3151 | } | |
| @@ -3168,12 +3169,12 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 3168 | 3169 | }() | |
| 3169 | 3170 | } | |
| 3170 | 3171 | ctx = templ.InitializeContext(ctx) | |
| 3171 | - | templ_7745c5c3_Var151 := templ.GetChildren(ctx) | |
| 3172 | - | if templ_7745c5c3_Var151 == nil { | |
| 3173 | - | templ_7745c5c3_Var151 = templ.NopComponent | |
| 3172 | + | templ_7745c5c3_Var150 := templ.GetChildren(ctx) | |
| 3173 | + | if templ_7745c5c3_Var150 == nil { | |
| 3174 | + | templ_7745c5c3_Var150 = templ.NopComponent | |
| 3174 | 3175 | } | |
| 3175 | 3176 | ctx = templ.ClearChildren(ctx) | |
| 3176 | - | templ_7745c5c3_Var152 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | |
| 3177 | + | templ_7745c5c3_Var151 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | |
| 3177 | 3178 | templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | |
| 3178 | 3179 | templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | |
| 3179 | 3180 | if !templ_7745c5c3_IsBuffer { | |
| @@ -3185,263 +3186,263 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 3185 | 3186 | }() | |
| 3186 | 3187 | } | |
| 3187 | 3188 | ctx = templ.InitializeContext(ctx) | |
| 3188 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 291, "<header class=\"show mr-h\"><h1>") | |
| 3189 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 293, "<header class=\"show mr-h\"><h1>") | |
| 3189 | 3190 | if templ_7745c5c3_Err != nil { | |
| 3190 | 3191 | return templ_7745c5c3_Err | |
| 3191 | 3192 | } | |
| 3192 | - | var templ_7745c5c3_Var153 string | |
| 3193 | - | templ_7745c5c3_Var153, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 3193 | + | var templ_7745c5c3_Var152 string | |
| 3194 | + | templ_7745c5c3_Var152, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 3194 | 3195 | if templ_7745c5c3_Err != nil { | |
| 3195 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 617, Col: 17} | |
| 3196 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 620, Col: 17} | |
| 3196 | 3197 | } | |
| 3197 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var153)) | |
| 3198 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var152)) | |
| 3198 | 3199 | if templ_7745c5c3_Err != nil { | |
| 3199 | 3200 | return templ_7745c5c3_Err | |
| 3200 | 3201 | } | |
| 3201 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 292, " → ") | |
| 3202 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 294, " → ") | |
| 3202 | 3203 | if templ_7745c5c3_Err != nil { | |
| 3203 | 3204 | return templ_7745c5c3_Err | |
| 3204 | 3205 | } | |
| 3205 | - | var templ_7745c5c3_Var154 string | |
| 3206 | - | templ_7745c5c3_Var154, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 3206 | + | var templ_7745c5c3_Var153 string | |
| 3207 | + | templ_7745c5c3_Var153, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 3207 | 3208 | if templ_7745c5c3_Err != nil { | |
| 3208 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 617, Col: 34} | |
| 3209 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 620, Col: 34} | |
| 3209 | 3210 | } | |
| 3210 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var154)) | |
| 3211 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var153)) | |
| 3211 | 3212 | if templ_7745c5c3_Err != nil { | |
| 3212 | 3213 | return templ_7745c5c3_Err | |
| 3213 | 3214 | } | |
| 3214 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 293, "</h1><dl class=\"kv show-kv\"><dt>branch</dt><dd><a href=\"") | |
| 3215 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 295, "</h1><dl class=\"kv show-kv\"><dt>branch</dt><dd><a href=\"") | |
| 3215 | 3216 | if templ_7745c5c3_Err != nil { | |
| 3216 | 3217 | return templ_7745c5c3_Err | |
| 3217 | 3218 | } | |
| 3218 | - | var templ_7745c5c3_Var155 templ.SafeURL | |
| 3219 | - | templ_7745c5c3_Var155, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.SourceHref)) | |
| 3219 | + | var templ_7745c5c3_Var154 templ.SafeURL | |
| 3220 | + | templ_7745c5c3_Var154, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.SourceHref)) | |
| 3220 | 3221 | if templ_7745c5c3_Err != nil { | |
| 3221 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 620, Col: 45} | |
| 3222 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 623, Col: 45} | |
| 3222 | 3223 | } | |
| 3223 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var155)) | |
| 3224 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var154)) | |
| 3224 | 3225 | if templ_7745c5c3_Err != nil { | |
| 3225 | 3226 | return templ_7745c5c3_Err | |
| 3226 | 3227 | } | |
| 3227 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 294, "\">") | |
| 3228 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 296, "\">") | |
| 3228 | 3229 | if templ_7745c5c3_Err != nil { | |
| 3229 | 3230 | return templ_7745c5c3_Err | |
| 3230 | 3231 | } | |
| 3231 | - | var templ_7745c5c3_Var156 string | |
| 3232 | - | templ_7745c5c3_Var156, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 3232 | + | var templ_7745c5c3_Var155 string | |
| 3233 | + | templ_7745c5c3_Var155, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 3233 | 3234 | if templ_7745c5c3_Err != nil { | |
| 3234 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 620, Col: 58} | |
| 3235 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 623, Col: 58} | |
| 3235 | 3236 | } | |
| 3236 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var156)) | |
| 3237 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var155)) | |
| 3237 | 3238 | if templ_7745c5c3_Err != nil { | |
| 3238 | 3239 | return templ_7745c5c3_Err | |
| 3239 | 3240 | } | |
| 3240 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 295, "</a></dd><dt>target</dt><dd><a href=\"") | |
| 3241 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 297, "</a></dd><dt>target</dt><dd><a href=\"") | |
| 3241 | 3242 | if templ_7745c5c3_Err != nil { | |
| 3242 | 3243 | return templ_7745c5c3_Err | |
| 3243 | 3244 | } | |
| 3244 | - | var templ_7745c5c3_Var157 templ.SafeURL | |
| 3245 | - | templ_7745c5c3_Var157, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.TargetHref)) | |
| 3245 | + | var templ_7745c5c3_Var156 templ.SafeURL | |
| 3246 | + | templ_7745c5c3_Var156, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.TargetHref)) | |
| 3246 | 3247 | if templ_7745c5c3_Err != nil { | |
| 3247 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 622, Col: 45} | |
| 3248 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 625, Col: 45} | |
| 3248 | 3249 | } | |
| 3249 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var157)) | |
| 3250 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var156)) | |
| 3250 | 3251 | if templ_7745c5c3_Err != nil { | |
| 3251 | 3252 | return templ_7745c5c3_Err | |
| 3252 | 3253 | } | |
| 3253 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 296, "\">") | |
| 3254 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 298, "\">") | |
| 3254 | 3255 | if templ_7745c5c3_Err != nil { | |
| 3255 | 3256 | return templ_7745c5c3_Err | |
| 3256 | 3257 | } | |
| 3257 | - | var templ_7745c5c3_Var158 string | |
| 3258 | - | templ_7745c5c3_Var158, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 3258 | + | var templ_7745c5c3_Var157 string | |
| 3259 | + | templ_7745c5c3_Var157, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 3259 | 3260 | if templ_7745c5c3_Err != nil { | |
| 3260 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 622, Col: 58} | |
| 3261 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 625, Col: 58} | |
| 3261 | 3262 | } | |
| 3262 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var158)) | |
| 3263 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var157)) | |
| 3263 | 3264 | if templ_7745c5c3_Err != nil { | |
| 3264 | 3265 | return templ_7745c5c3_Err | |
| 3265 | 3266 | } | |
| 3266 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 297, "</a></dd><dt>ahead</dt><dd>") | |
| 3267 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 299, "</a></dd><dt>ahead</dt><dd>") | |
| 3267 | 3268 | if templ_7745c5c3_Err != nil { | |
| 3268 | 3269 | return templ_7745c5c3_Err | |
| 3269 | 3270 | } | |
| 3270 | - | var templ_7745c5c3_Var159 string | |
| 3271 | - | templ_7745c5c3_Var159, templ_7745c5c3_Err = templ.JoinStringErrs(p.AheadText) | |
| 3271 | + | var templ_7745c5c3_Var158 string | |
| 3272 | + | templ_7745c5c3_Var158, templ_7745c5c3_Err = templ.JoinStringErrs(p.AheadText) | |
| 3272 | 3273 | if templ_7745c5c3_Err != nil { | |
| 3273 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 624, Col: 21} | |
| 3274 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 627, Col: 21} | |
| 3274 | 3275 | } | |
| 3275 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var159)) | |
| 3276 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var158)) | |
| 3276 | 3277 | if templ_7745c5c3_Err != nil { | |
| 3277 | 3278 | return templ_7745c5c3_Err | |
| 3278 | 3279 | } | |
| 3279 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 298, "</dd></dl></header>") | |
| 3280 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 300, "</dd></dl></header>") | |
| 3280 | 3281 | if templ_7745c5c3_Err != nil { | |
| 3281 | 3282 | return templ_7745c5c3_Err | |
| 3282 | 3283 | } | |
| 3283 | 3284 | if p.Note != "" { | |
| 3284 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 299, "<p class=\"notice\">") | |
| 3285 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 301, "<p class=\"notice\">") | |
| 3285 | 3286 | if templ_7745c5c3_Err != nil { | |
| 3286 | 3287 | return templ_7745c5c3_Err | |
| 3287 | 3288 | } | |
| 3288 | - | var templ_7745c5c3_Var160 string | |
| 3289 | - | templ_7745c5c3_Var160, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | |
| 3289 | + | var templ_7745c5c3_Var159 string | |
| 3290 | + | templ_7745c5c3_Var159, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | |
| 3290 | 3291 | if templ_7745c5c3_Err != nil { | |
| 3291 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 628, Col: 29} | |
| 3292 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 631, Col: 29} | |
| 3292 | 3293 | } | |
| 3293 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var160)) | |
| 3294 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var159)) | |
| 3294 | 3295 | if templ_7745c5c3_Err != nil { | |
| 3295 | 3296 | return templ_7745c5c3_Err | |
| 3296 | 3297 | } | |
| 3297 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 300, "</p>") | |
| 3298 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 302, "</p>") | |
| 3298 | 3299 | if templ_7745c5c3_Err != nil { | |
| 3299 | 3300 | return templ_7745c5c3_Err | |
| 3300 | 3301 | } | |
| 3301 | 3302 | } | |
| 3302 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 301, " ") | |
| 3303 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 303, " ") | |
| 3303 | 3304 | if templ_7745c5c3_Err != nil { | |
| 3304 | 3305 | return templ_7745c5c3_Err | |
| 3305 | 3306 | } | |
| 3306 | 3307 | if p.Existing != nil { | |
| 3307 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 302, "<p class=\"notice\">an open merge request already covers these branches: <a href=\"") | |
| 3308 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 304, "<p class=\"notice\">an open merge request already covers these branches: <a href=\"") | |
| 3308 | 3309 | if templ_7745c5c3_Err != nil { | |
| 3309 | 3310 | return templ_7745c5c3_Err | |
| 3310 | 3311 | } | |
| 3311 | - | var templ_7745c5c3_Var161 templ.SafeURL | |
| 3312 | - | templ_7745c5c3_Var161, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Existing.Href)) | |
| 3312 | + | var templ_7745c5c3_Var160 templ.SafeURL | |
| 3313 | + | templ_7745c5c3_Var160, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Existing.Href)) | |
| 3313 | 3314 | if templ_7745c5c3_Err != nil { | |
| 3314 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 631, Col: 114} | |
| 3315 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 634, Col: 114} | |
| 3315 | 3316 | } | |
| 3316 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var161)) | |
| 3317 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var160)) | |
| 3317 | 3318 | if templ_7745c5c3_Err != nil { | |
| 3318 | 3319 | return templ_7745c5c3_Err | |
| 3319 | 3320 | } | |
| 3320 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 303, "\">") | |
| 3321 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 305, "\">") | |
| 3321 | 3322 | if templ_7745c5c3_Err != nil { | |
| 3322 | 3323 | return templ_7745c5c3_Err | |
| 3323 | 3324 | } | |
| 3324 | - | var templ_7745c5c3_Var162 string | |
| 3325 | - | templ_7745c5c3_Var162, templ_7745c5c3_Err = templ.JoinStringErrs(p.Existing.Label) | |
| 3325 | + | var templ_7745c5c3_Var161 string | |
| 3326 | + | templ_7745c5c3_Var161, templ_7745c5c3_Err = templ.JoinStringErrs(p.Existing.Label) | |
| 3326 | 3327 | if templ_7745c5c3_Err != nil { | |
| 3327 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 631, Col: 135} | |
| 3328 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 634, Col: 135} | |
| 3328 | 3329 | } | |
| 3329 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var162)) | |
| 3330 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var161)) | |
| 3330 | 3331 | if templ_7745c5c3_Err != nil { | |
| 3331 | 3332 | return templ_7745c5c3_Err | |
| 3332 | 3333 | } | |
| 3333 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 304, "</a></p>") | |
| 3334 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 306, "</a></p>") | |
| 3334 | 3335 | if templ_7745c5c3_Err != nil { | |
| 3335 | 3336 | return templ_7745c5c3_Err | |
| 3336 | 3337 | } | |
| 3337 | 3338 | } | |
| 3338 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 305, " ") | |
| 3339 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 307, " ") | |
| 3339 | 3340 | if templ_7745c5c3_Err != nil { | |
| 3340 | 3341 | return templ_7745c5c3_Err | |
| 3341 | 3342 | } | |
| 3342 | 3343 | if p.Create != nil { | |
| 3343 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 306, "<form class=\"cform create\" method=\"post\" action=\"") | |
| 3344 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 308, "<form class=\"cform create\" method=\"post\" action=\"") | |
| 3344 | 3345 | if templ_7745c5c3_Err != nil { | |
| 3345 | 3346 | return templ_7745c5c3_Err | |
| 3346 | 3347 | } | |
| 3347 | - | var templ_7745c5c3_Var163 templ.SafeURL | |
| 3348 | - | templ_7745c5c3_Var163, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Create.Action)) | |
| 3348 | + | var templ_7745c5c3_Var162 templ.SafeURL | |
| 3349 | + | templ_7745c5c3_Var162, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Create.Action)) | |
| 3349 | 3350 | if templ_7745c5c3_Err != nil { | |
| 3350 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 634, Col: 83} | |
| 3351 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 637, Col: 83} | |
| 3351 | 3352 | } | |
| 3352 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var163)) | |
| 3353 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var162)) | |
| 3353 | 3354 | if templ_7745c5c3_Err != nil { | |
| 3354 | 3355 | return templ_7745c5c3_Err | |
| 3355 | 3356 | } | |
| 3356 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 307, "\"><input type=\"hidden\" name=\"source\" value=\"") | |
| 3357 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 309, "\"><input type=\"hidden\" name=\"source\" value=\"") | |
| 3357 | 3358 | if templ_7745c5c3_Err != nil { | |
| 3358 | 3359 | return templ_7745c5c3_Err | |
| 3359 | 3360 | } | |
| 3360 | - | var templ_7745c5c3_Var164 string | |
| 3361 | - | templ_7745c5c3_Var164, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Source) | |
| 3361 | + | var templ_7745c5c3_Var163 string | |
| 3362 | + | templ_7745c5c3_Var163, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Source) | |
| 3362 | 3363 | if templ_7745c5c3_Err != nil { | |
| 3363 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 635, Col: 62} | |
| 3364 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 638, Col: 62} | |
| 3364 | 3365 | } | |
| 3365 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var164) | |
| 3366 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var163) | |
| 3366 | 3367 | if templ_7745c5c3_Err != nil { | |
| 3367 | 3368 | return templ_7745c5c3_Err | |
| 3368 | 3369 | } | |
| 3369 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 308, "\"> <input type=\"hidden\" name=\"target\" value=\"") | |
| 3370 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 310, "\"> <input type=\"hidden\" name=\"target\" value=\"") | |
| 3370 | 3371 | if templ_7745c5c3_Err != nil { | |
| 3371 | 3372 | return templ_7745c5c3_Err | |
| 3372 | 3373 | } | |
| 3373 | - | var templ_7745c5c3_Var165 string | |
| 3374 | - | templ_7745c5c3_Var165, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Target) | |
| 3374 | + | var templ_7745c5c3_Var164 string | |
| 3375 | + | templ_7745c5c3_Var164, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Target) | |
| 3375 | 3376 | if templ_7745c5c3_Err != nil { | |
| 3376 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 636, Col: 62} | |
| 3377 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 639, Col: 62} | |
| 3377 | 3378 | } | |
| 3378 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var165) | |
| 3379 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var164) | |
| 3379 | 3380 | if templ_7745c5c3_Err != nil { | |
| 3380 | 3381 | return templ_7745c5c3_Err | |
| 3381 | 3382 | } | |
| 3382 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 309, "\"> <label for=\"mr-title\">title</label> <input id=\"mr-title\" name=\"title\" type=\"text\" maxlength=\"120\" required value=\"") | |
| 3383 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 311, "\"> <label for=\"mr-title\">title</label> <input id=\"mr-title\" name=\"title\" type=\"text\" maxlength=\"120\" required value=\"") | |
| 3383 | 3384 | if templ_7745c5c3_Err != nil { | |
| 3384 | 3385 | return templ_7745c5c3_Err | |
| 3385 | 3386 | } | |
| 3386 | - | var templ_7745c5c3_Var166 string | |
| 3387 | - | templ_7745c5c3_Var166, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Title) | |
| 3387 | + | var templ_7745c5c3_Var165 string | |
| 3388 | + | templ_7745c5c3_Var165, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Title) | |
| 3388 | 3389 | if templ_7745c5c3_Err != nil { | |
| 3389 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 638, Col: 97} | |
| 3390 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 641, Col: 97} | |
| 3390 | 3391 | } | |
| 3391 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var166) | |
| 3392 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var165) | |
| 3392 | 3393 | if templ_7745c5c3_Err != nil { | |
| 3393 | 3394 | return templ_7745c5c3_Err | |
| 3394 | 3395 | } | |
| 3395 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 310, "\" autocomplete=\"off\"> <label for=\"mr-desc\">description</label> <textarea id=\"mr-desc\" name=\"description\" rows=\"4\" maxlength=\"8000\" placeholder=\"Markdown, optional\"></textarea><div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Create merge request</button></div></form>") | |
| 3396 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 312, "\" autocomplete=\"off\"> <label for=\"mr-desc\">description</label> <textarea id=\"mr-desc\" name=\"description\" rows=\"4\" maxlength=\"8000\" placeholder=\"Markdown, optional\"></textarea><div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Create merge request</button></div></form>") | |
| 3396 | 3397 | if templ_7745c5c3_Err != nil { | |
| 3397 | 3398 | return templ_7745c5c3_Err | |
| 3398 | 3399 | } | |
| 3399 | 3400 | } | |
| 3400 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 311, " ") | |
| 3401 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 313, " ") | |
| 3401 | 3402 | if templ_7745c5c3_Err != nil { | |
| 3402 | 3403 | return templ_7745c5c3_Err | |
| 3403 | 3404 | } | |
| 3404 | 3405 | if p.HasDiff { | |
| 3405 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 312, "<div class=\"diff-tools\" role=\"group\" aria-label=\"Diff view\"><span class=\"dim\">") | |
| 3406 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 314, "<div class=\"diff-tools\" role=\"group\" aria-label=\"Diff view\"><span class=\"dim\">") | |
| 3406 | 3407 | if templ_7745c5c3_Err != nil { | |
| 3407 | 3408 | return templ_7745c5c3_Err | |
| 3408 | 3409 | } | |
| 3409 | - | var templ_7745c5c3_Var167 string | |
| 3410 | - | templ_7745c5c3_Var167, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | |
| 3410 | + | var templ_7745c5c3_Var166 string | |
| 3411 | + | templ_7745c5c3_Var166, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | |
| 3411 | 3412 | if templ_7745c5c3_Err != nil { | |
| 3412 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 648, Col: 57} | |
| 3413 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 651, Col: 57} | |
| 3413 | 3414 | } | |
| 3414 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var167)) | |
| 3415 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var166)) | |
| 3415 | 3416 | if templ_7745c5c3_Err != nil { | |
| 3416 | 3417 | return templ_7745c5c3_Err | |
| 3417 | 3418 | } | |
| 3418 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 313, " · <span class=\"plus\">+") | |
| 3419 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 315, " · <span class=\"plus\">+") | |
| 3419 | 3420 | if templ_7745c5c3_Err != nil { | |
| 3420 | 3421 | return templ_7745c5c3_Err | |
| 3421 | 3422 | } | |
| 3422 | - | var templ_7745c5c3_Var168 string | |
| 3423 | - | templ_7745c5c3_Var168, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | |
| 3423 | + | var templ_7745c5c3_Var167 string | |
| 3424 | + | templ_7745c5c3_Var167, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | |
| 3424 | 3425 | if templ_7745c5c3_Err != nil { | |
| 3425 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 648, Col: 97} | |
| 3426 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 651, Col: 97} | |
| 3426 | 3427 | } | |
| 3427 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var168)) | |
| 3428 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var167)) | |
| 3428 | 3429 | if templ_7745c5c3_Err != nil { | |
| 3429 | 3430 | return templ_7745c5c3_Err | |
| 3430 | 3431 | } | |
| 3431 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 314, "</span> <span class=\"minus\">-") | |
| 3432 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 316, "</span> <span class=\"minus\">-") | |
| 3432 | 3433 | if templ_7745c5c3_Err != nil { | |
| 3433 | 3434 | return templ_7745c5c3_Err | |
| 3434 | 3435 | } | |
| 3435 | - | var templ_7745c5c3_Var169 string | |
| 3436 | - | templ_7745c5c3_Var169, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | |
| 3436 | + | var templ_7745c5c3_Var168 string | |
| 3437 | + | templ_7745c5c3_Var168, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | |
| 3437 | 3438 | if templ_7745c5c3_Err != nil { | |
| 3438 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 648, Col: 142} | |
| 3439 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 651, Col: 142} | |
| 3439 | 3440 | } | |
| 3440 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var169)) | |
| 3441 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var168)) | |
| 3441 | 3442 | if templ_7745c5c3_Err != nil { | |
| 3442 | 3443 | return templ_7745c5c3_Err | |
| 3443 | 3444 | } | |
| 3444 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 315, "</span></span> <span class=\"grow\"></span>") | |
| 3445 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 317, "</span></span> <span class=\"grow\"></span>") | |
| 3445 | 3446 | if templ_7745c5c3_Err != nil { | |
| 3446 | 3447 | return templ_7745c5c3_Err | |
| 3447 | 3448 | } | |
| @@ -3457,64 +3458,64 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 3457 | 3458 | if templ_7745c5c3_Err != nil { | |
| 3458 | 3459 | return templ_7745c5c3_Err | |
| 3459 | 3460 | } | |
| 3460 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 316, "</div>") | |
| 3461 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 318, "</div>") | |
| 3461 | 3462 | if templ_7745c5c3_Err != nil { | |
| 3462 | 3463 | return templ_7745c5c3_Err | |
| 3463 | 3464 | } | |
| 3464 | 3465 | if p.Invisible { | |
| 3465 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 317, "<p class=\"notice\">this diff holds invisible characters (direction controls, zero-width characters). They are shown as <span class=\"inv\"><U+XXXX></span> markers, never applied.</p>") | |
| 3466 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 319, "<p class=\"notice\">this diff holds invisible characters (direction controls, zero-width characters). They are shown as <span class=\"inv\"><U+XXXX></span> markers, never applied.</p>") | |
| 3466 | 3467 | if templ_7745c5c3_Err != nil { | |
| 3467 | 3468 | return templ_7745c5c3_Err | |
| 3468 | 3469 | } | |
| 3469 | 3470 | } | |
| 3470 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 318, " <div id=\"diffs\"") | |
| 3471 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 320, " <div id=\"diffs\"") | |
| 3471 | 3472 | if templ_7745c5c3_Err != nil { | |
| 3472 | 3473 | return templ_7745c5c3_Err | |
| 3473 | 3474 | } | |
| 3474 | 3475 | if p.Both { | |
| 3475 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 319, " data-diff=\"") | |
| 3476 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 321, " data-diff=\"") | |
| 3476 | 3477 | if templ_7745c5c3_Err != nil { | |
| 3477 | 3478 | return templ_7745c5c3_Err | |
| 3478 | 3479 | } | |
| 3479 | - | var templ_7745c5c3_Var170 string | |
| 3480 | - | templ_7745c5c3_Var170, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 3480 | + | var templ_7745c5c3_Var169 string | |
| 3481 | + | templ_7745c5c3_Var169, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 3481 | 3482 | if templ_7745c5c3_Err != nil { | |
| 3482 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 663, Col: 23} | |
| 3483 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 666, Col: 23} | |
| 3483 | 3484 | } | |
| 3484 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var170) | |
| 3485 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var169) | |
| 3485 | 3486 | if templ_7745c5c3_Err != nil { | |
| 3486 | 3487 | return templ_7745c5c3_Err | |
| 3487 | 3488 | } | |
| 3488 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 320, "\"") | |
| 3489 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 322, "\"") | |
| 3489 | 3490 | if templ_7745c5c3_Err != nil { | |
| 3490 | 3491 | return templ_7745c5c3_Err | |
| 3491 | 3492 | } | |
| 3492 | 3493 | } else { | |
| 3493 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 321, " data-view=\"") | |
| 3494 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 323, " data-view=\"") | |
| 3494 | 3495 | if templ_7745c5c3_Err != nil { | |
| 3495 | 3496 | return templ_7745c5c3_Err | |
| 3496 | 3497 | } | |
| 3497 | - | var templ_7745c5c3_Var171 string | |
| 3498 | - | templ_7745c5c3_Var171, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 3498 | + | var templ_7745c5c3_Var170 string | |
| 3499 | + | templ_7745c5c3_Var170, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 3499 | 3500 | if templ_7745c5c3_Err != nil { | |
| 3500 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 665, Col: 23} | |
| 3501 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 668, Col: 23} | |
| 3501 | 3502 | } | |
| 3502 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var171) | |
| 3503 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var170) | |
| 3503 | 3504 | if templ_7745c5c3_Err != nil { | |
| 3504 | 3505 | return templ_7745c5c3_Err | |
| 3505 | 3506 | } | |
| 3506 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 322, "\"") | |
| 3507 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 324, "\"") | |
| 3507 | 3508 | if templ_7745c5c3_Err != nil { | |
| 3508 | 3509 | return templ_7745c5c3_Err | |
| 3509 | 3510 | } | |
| 3510 | 3511 | } | |
| 3511 | 3512 | if p.Both && !p.Pinned { | |
| 3512 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 323, " hx-live=\"this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff\"") | |
| 3513 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 325, " hx-live=\"this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff\"") | |
| 3513 | 3514 | if templ_7745c5c3_Err != nil { | |
| 3514 | 3515 | return templ_7745c5c3_Err | |
| 3515 | 3516 | } | |
| 3516 | 3517 | } | |
| 3517 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 324, ">") | |
| 3518 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 326, ">") | |
| 3518 | 3519 | if templ_7745c5c3_Err != nil { | |
| 3519 | 3520 | return templ_7745c5c3_Err | |
| 3520 | 3521 | } | |
| @@ -3524,14 +3525,14 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 3524 | 3525 | return templ_7745c5c3_Err | |
| 3525 | 3526 | } | |
| 3526 | 3527 | } | |
| 3527 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 325, "</div>") | |
| 3528 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 327, "</div>") | |
| 3528 | 3529 | if templ_7745c5c3_Err != nil { | |
| 3529 | 3530 | return templ_7745c5c3_Err | |
| 3530 | 3531 | } | |
| 3531 | 3532 | } | |
| 3532 | 3533 | return nil | |
| 3533 | 3534 | }) | |
| 3534 | - | templ_7745c5c3_Err = Shell(l, compareRail(p)).Render(templ.WithChildren(ctx, templ_7745c5c3_Var152), templ_7745c5c3_Buffer) | |
| 3535 | + | templ_7745c5c3_Err = Shell(l, compareRail(p)).Render(templ.WithChildren(ctx, templ_7745c5c3_Var151), templ_7745c5c3_Buffer) | |
| 3535 | 3536 | if templ_7745c5c3_Err != nil { | |
| 3536 | 3537 | return templ_7745c5c3_Err | |
| 3537 | 3538 | } | |
| @@ -3555,173 +3556,173 @@ func compareRail(p ComparePage) templ.Component { | |||
| 3555 | 3556 | }() | |
| 3556 | 3557 | } | |
| 3557 | 3558 | ctx = templ.InitializeContext(ctx) | |
| 3558 | - | templ_7745c5c3_Var172 := templ.GetChildren(ctx) | |
| 3559 | - | if templ_7745c5c3_Var172 == nil { | |
| 3560 | - | templ_7745c5c3_Var172 = templ.NopComponent | |
| 3559 | + | templ_7745c5c3_Var171 := templ.GetChildren(ctx) | |
| 3560 | + | if templ_7745c5c3_Var171 == nil { | |
| 3561 | + | templ_7745c5c3_Var171 = templ.NopComponent | |
| 3561 | 3562 | } | |
| 3562 | 3563 | ctx = templ.ClearChildren(ctx) | |
| 3563 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 326, "<section aria-labelledby=\"r-ahead\"><h2 id=\"r-ahead\">Commits <span class=\"count\">") | |
| 3564 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 328, "<section aria-labelledby=\"r-ahead\"><h2 id=\"r-ahead\">Commits <span class=\"count\">") | |
| 3564 | 3565 | if templ_7745c5c3_Err != nil { | |
| 3565 | 3566 | return templ_7745c5c3_Err | |
| 3566 | 3567 | } | |
| 3567 | - | var templ_7745c5c3_Var173 string | |
| 3568 | - | templ_7745c5c3_Var173, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Ahead))) | |
| 3568 | + | var templ_7745c5c3_Var172 string | |
| 3569 | + | templ_7745c5c3_Var172, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Ahead))) | |
| 3569 | 3570 | if templ_7745c5c3_Err != nil { | |
| 3570 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 681, Col: 67} | |
| 3571 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 684, Col: 67} | |
| 3571 | 3572 | } | |
| 3572 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var173)) | |
| 3573 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var172)) | |
| 3573 | 3574 | if templ_7745c5c3_Err != nil { | |
| 3574 | 3575 | return templ_7745c5c3_Err | |
| 3575 | 3576 | } | |
| 3576 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 327, "</span></h2><ul class=\"pcommits\">") | |
| 3577 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 329, "</span></h2><ul class=\"pcommits\">") | |
| 3577 | 3578 | if templ_7745c5c3_Err != nil { | |
| 3578 | 3579 | return templ_7745c5c3_Err | |
| 3579 | 3580 | } | |
| 3580 | 3581 | for _, c := range p.Ahead { | |
| 3581 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 328, "<li><a href=\"") | |
| 3582 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 330, "<li><a href=\"") | |
| 3582 | 3583 | if templ_7745c5c3_Err != nil { | |
| 3583 | 3584 | return templ_7745c5c3_Err | |
| 3584 | 3585 | } | |
| 3585 | - | var templ_7745c5c3_Var174 templ.SafeURL | |
| 3586 | - | templ_7745c5c3_Var174, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.CHref)) | |
| 3586 | + | var templ_7745c5c3_Var173 templ.SafeURL | |
| 3587 | + | templ_7745c5c3_Var173, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.CHref)) | |
| 3587 | 3588 | if templ_7745c5c3_Err != nil { | |
| 3588 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 685, Col: 37} | |
| 3589 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 688, Col: 37} | |
| 3589 | 3590 | } | |
| 3590 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var174)) | |
| 3591 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var173)) | |
| 3591 | 3592 | if templ_7745c5c3_Err != nil { | |
| 3592 | 3593 | return templ_7745c5c3_Err | |
| 3593 | 3594 | } | |
| 3594 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 329, "\">") | |
| 3595 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 331, "\">") | |
| 3595 | 3596 | if templ_7745c5c3_Err != nil { | |
| 3596 | 3597 | return templ_7745c5c3_Err | |
| 3597 | 3598 | } | |
| 3598 | - | var templ_7745c5c3_Var175 string | |
| 3599 | - | templ_7745c5c3_Var175, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | |
| 3599 | + | var templ_7745c5c3_Var174 string | |
| 3600 | + | templ_7745c5c3_Var174, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | |
| 3600 | 3601 | if templ_7745c5c3_Err != nil { | |
| 3601 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 685, Col: 49} | |
| 3602 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 688, Col: 49} | |
| 3602 | 3603 | } | |
| 3603 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var175)) | |
| 3604 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var174)) | |
| 3604 | 3605 | if templ_7745c5c3_Err != nil { | |
| 3605 | 3606 | return templ_7745c5c3_Err | |
| 3606 | 3607 | } | |
| 3607 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 330, "</a> <span class=\"s\">") | |
| 3608 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 332, "</a> <span class=\"s\">") | |
| 3608 | 3609 | if templ_7745c5c3_Err != nil { | |
| 3609 | 3610 | return templ_7745c5c3_Err | |
| 3610 | 3611 | } | |
| 3611 | - | var templ_7745c5c3_Var176 string | |
| 3612 | - | templ_7745c5c3_Var176, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | |
| 3612 | + | var templ_7745c5c3_Var175 string | |
| 3613 | + | templ_7745c5c3_Var175, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | |
| 3613 | 3614 | if templ_7745c5c3_Err != nil { | |
| 3614 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 686, Col: 32} | |
| 3615 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 689, Col: 32} | |
| 3615 | 3616 | } | |
| 3616 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var176)) | |
| 3617 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var175)) | |
| 3617 | 3618 | if templ_7745c5c3_Err != nil { | |
| 3618 | 3619 | return templ_7745c5c3_Err | |
| 3619 | 3620 | } | |
| 3620 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 331, "</span> <span class=\"mute\">") | |
| 3621 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 333, "</span> <span class=\"mute\">") | |
| 3621 | 3622 | if templ_7745c5c3_Err != nil { | |
| 3622 | 3623 | return templ_7745c5c3_Err | |
| 3623 | 3624 | } | |
| 3624 | - | var templ_7745c5c3_Var177 string | |
| 3625 | - | templ_7745c5c3_Var177, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 3625 | + | var templ_7745c5c3_Var176 string | |
| 3626 | + | templ_7745c5c3_Var176, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 3626 | 3627 | if templ_7745c5c3_Err != nil { | |
| 3627 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 688, Col: 16} | |
| 3628 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 691, Col: 16} | |
| 3628 | 3629 | } | |
| 3629 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var177)) | |
| 3630 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var176)) | |
| 3630 | 3631 | if templ_7745c5c3_Err != nil { | |
| 3631 | 3632 | return templ_7745c5c3_Err | |
| 3632 | 3633 | } | |
| 3633 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 332, " ") | |
| 3634 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 334, " ") | |
| 3634 | 3635 | if templ_7745c5c3_Err != nil { | |
| 3635 | 3636 | return templ_7745c5c3_Err | |
| 3636 | 3637 | } | |
| 3637 | 3638 | if c.WhenAt != "" { | |
| 3638 | - | var templ_7745c5c3_Var178 string | |
| 3639 | - | templ_7745c5c3_Var178, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | |
| 3639 | + | var templ_7745c5c3_Var177 string | |
| 3640 | + | templ_7745c5c3_Var177, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | |
| 3640 | 3641 | if templ_7745c5c3_Err != nil { | |
| 3641 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 690, Col: 15} | |
| 3642 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 693, Col: 15} | |
| 3642 | 3643 | } | |
| 3643 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var178)) | |
| 3644 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var177)) | |
| 3644 | 3645 | if templ_7745c5c3_Err != nil { | |
| 3645 | 3646 | return templ_7745c5c3_Err | |
| 3646 | 3647 | } | |
| 3647 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 333, "<time datetime=\"") | |
| 3648 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 335, "<time datetime=\"") | |
| 3648 | 3649 | if templ_7745c5c3_Err != nil { | |
| 3649 | 3650 | return templ_7745c5c3_Err | |
| 3650 | 3651 | } | |
| 3651 | - | var templ_7745c5c3_Var179 string | |
| 3652 | - | templ_7745c5c3_Var179, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 3652 | + | var templ_7745c5c3_Var178 string | |
| 3653 | + | templ_7745c5c3_Var178, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 3653 | 3654 | if templ_7745c5c3_Err != nil { | |
| 3654 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 690, Col: 42} | |
| 3655 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 693, Col: 42} | |
| 3655 | 3656 | } | |
| 3656 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var179) | |
| 3657 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var178) | |
| 3657 | 3658 | if templ_7745c5c3_Err != nil { | |
| 3658 | 3659 | return templ_7745c5c3_Err | |
| 3659 | 3660 | } | |
| 3660 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 334, "\">") | |
| 3661 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 336, "\">") | |
| 3661 | 3662 | if templ_7745c5c3_Err != nil { | |
| 3662 | 3663 | return templ_7745c5c3_Err | |
| 3663 | 3664 | } | |
| 3664 | - | var templ_7745c5c3_Var180 string | |
| 3665 | - | templ_7745c5c3_Var180, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 3665 | + | var templ_7745c5c3_Var179 string | |
| 3666 | + | templ_7745c5c3_Var179, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 3666 | 3667 | if templ_7745c5c3_Err != nil { | |
| 3667 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 690, Col: 53} | |
| 3668 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 693, Col: 53} | |
| 3668 | 3669 | } | |
| 3669 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var180)) | |
| 3670 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var179)) | |
| 3670 | 3671 | if templ_7745c5c3_Err != nil { | |
| 3671 | 3672 | return templ_7745c5c3_Err | |
| 3672 | 3673 | } | |
| 3673 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 335, "</time>") | |
| 3674 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 337, "</time>") | |
| 3674 | 3675 | if templ_7745c5c3_Err != nil { | |
| 3675 | 3676 | return templ_7745c5c3_Err | |
| 3676 | 3677 | } | |
| 3677 | 3678 | } | |
| 3678 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 336, "</span></li>") | |
| 3679 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 338, "</span></li>") | |
| 3679 | 3680 | if templ_7745c5c3_Err != nil { | |
| 3680 | 3681 | return templ_7745c5c3_Err | |
| 3681 | 3682 | } | |
| 3682 | 3683 | } | |
| 3683 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 337, "</ul>") | |
| 3684 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 339, "</ul>") | |
| 3684 | 3685 | if templ_7745c5c3_Err != nil { | |
| 3685 | 3686 | return templ_7745c5c3_Err | |
| 3686 | 3687 | } | |
| 3687 | 3688 | if len(p.Ahead) == 0 { | |
| 3688 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 338, "<p class=\"dim\">no commit ahead of ") | |
| 3689 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 340, "<p class=\"dim\">no commit ahead of ") | |
| 3689 | 3690 | if templ_7745c5c3_Err != nil { | |
| 3690 | 3691 | return templ_7745c5c3_Err | |
| 3691 | 3692 | } | |
| 3692 | - | var templ_7745c5c3_Var181 string | |
| 3693 | - | templ_7745c5c3_Var181, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 3693 | + | var templ_7745c5c3_Var180 string | |
| 3694 | + | templ_7745c5c3_Var180, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 3694 | 3695 | if templ_7745c5c3_Err != nil { | |
| 3695 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 697, Col: 47} | |
| 3696 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 700, Col: 47} | |
| 3696 | 3697 | } | |
| 3697 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var181)) | |
| 3698 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var180)) | |
| 3698 | 3699 | if templ_7745c5c3_Err != nil { | |
| 3699 | 3700 | return templ_7745c5c3_Err | |
| 3700 | 3701 | } | |
| 3701 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 339, ".</p>") | |
| 3702 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 341, ".</p>") | |
| 3702 | 3703 | if templ_7745c5c3_Err != nil { | |
| 3703 | 3704 | return templ_7745c5c3_Err | |
| 3704 | 3705 | } | |
| 3705 | 3706 | } | |
| 3706 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 340, "</section>") | |
| 3707 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 342, "</section>") | |
| 3707 | 3708 | if templ_7745c5c3_Err != nil { | |
| 3708 | 3709 | return templ_7745c5c3_Err | |
| 3709 | 3710 | } | |
| 3710 | 3711 | if p.HasDiff { | |
| 3711 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 341, "<section aria-labelledby=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | |
| 3712 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 343, "<section aria-labelledby=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | |
| 3712 | 3713 | if templ_7745c5c3_Err != nil { | |
| 3713 | 3714 | return templ_7745c5c3_Err | |
| 3714 | 3715 | } | |
| 3715 | - | var templ_7745c5c3_Var182 string | |
| 3716 | - | templ_7745c5c3_Var182, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | |
| 3716 | + | var templ_7745c5c3_Var181 string | |
| 3717 | + | templ_7745c5c3_Var181, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | |
| 3717 | 3718 | if templ_7745c5c3_Err != nil { | |
| 3718 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 702, Col: 66} | |
| 3719 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 705, Col: 66} | |
| 3719 | 3720 | } | |
| 3720 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var182)) | |
| 3721 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var181)) | |
| 3721 | 3722 | if templ_7745c5c3_Err != nil { | |
| 3722 | 3723 | return templ_7745c5c3_Err | |
| 3723 | 3724 | } | |
| 3724 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 342, "</span></h2>") | |
| 3725 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 344, "</span></h2>") | |
| 3725 | 3726 | if templ_7745c5c3_Err != nil { | |
| 3726 | 3727 | return templ_7745c5c3_Err | |
| 3727 | 3728 | } | |
| @@ -3729,12 +3730,12 @@ func compareRail(p ComparePage) templ.Component { | |||
| 3729 | 3730 | if templ_7745c5c3_Err != nil { | |
| 3730 | 3731 | return templ_7745c5c3_Err | |
| 3731 | 3732 | } | |
| 3732 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 343, "</section>") | |
| 3733 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 345, "</section>") | |
| 3733 | 3734 | if templ_7745c5c3_Err != nil { | |
| 3734 | 3735 | return templ_7745c5c3_Err | |
| 3735 | 3736 | } | |
| 3736 | 3737 | } | |
| 3737 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 344, "<section aria-labelledby=\"r-cli\"><h2 id=\"r-cli\">From a terminal</h2>") | |
| 3738 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 346, "<section aria-labelledby=\"r-cli\"><h2 id=\"r-cli\">From a terminal</h2>") | |
| 3738 | 3739 | if templ_7745c5c3_Err != nil { | |
| 3739 | 3740 | return templ_7745c5c3_Err | |
| 3740 | 3741 | } | |
| @@ -3742,7 +3743,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 3742 | 3743 | if templ_7745c5c3_Err != nil { | |
| 3743 | 3744 | return templ_7745c5c3_Err | |
| 3744 | 3745 | } | |
| 3745 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 345, "</section>") | |
| 3746 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 347, "</section>") | |
| 3746 | 3747 | if templ_7745c5c3_Err != nil { | |
| 3747 | 3748 | return templ_7745c5c3_Err | |
| 3748 | 3749 | } | |
| @@ -1025,15 +1025,15 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 1025 | if templ_7745c5c3_Err != nil { | 1025 | if templ_7745c5c3_Err != nil { | ||
| 1026 | return templ_7745c5c3_Err | 1026 | return templ_7745c5c3_Err | ||
| 1027 | } | 1027 | } | ||
| 1028 | - | if p.Both { | 1028 | + | if p.Canonical != "" { |
| 1029 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, " data-diff=\"") | 1029 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, " data-canonical=\"") |
| 1030 | if templ_7745c5c3_Err != nil { | 1030 | if templ_7745c5c3_Err != nil { | ||
| 1031 | return templ_7745c5c3_Err | 1031 | return templ_7745c5c3_Err | ||
| 1032 | } | 1032 | } | ||
| 1033 | var templ_7745c5c3_Var51 string | 1033 | var templ_7745c5c3_Var51 string | ||
| 1034 | - | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 1034 | + | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Canonical) |
| 1035 | if templ_7745c5c3_Err != nil { | 1035 | if templ_7745c5c3_Err != nil { | ||
| 1036 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 189, Col: 22} | 1036 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 189, Col: 32} |
| 1037 | } | 1037 | } | ||
| 1038 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var51) | 1038 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var51) | ||
| 1039 | if templ_7745c5c3_Err != nil { | 1039 | if templ_7745c5c3_Err != nil { | ||
| @@ -1043,15 +1043,16 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 1043 | if templ_7745c5c3_Err != nil { | 1043 | if templ_7745c5c3_Err != nil { | ||
| 1044 | return templ_7745c5c3_Err | 1044 | return templ_7745c5c3_Err | ||
| 1045 | } | 1045 | } | ||
| 1046 | - | } else { | 1046 | + | } |
| 1047 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 101, " data-view=\"") | 1047 | + | if p.Both { |
| 1048 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 101, " data-diff=\"") | |||
| 1048 | if templ_7745c5c3_Err != nil { | 1049 | if templ_7745c5c3_Err != nil { | ||
| 1049 | return templ_7745c5c3_Err | 1050 | return templ_7745c5c3_Err | ||
| 1050 | } | 1051 | } | ||
| 1051 | var templ_7745c5c3_Var52 string | 1052 | var templ_7745c5c3_Var52 string | ||
| 1052 | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 1053 | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | ||
| 1053 | if templ_7745c5c3_Err != nil { | 1054 | if templ_7745c5c3_Err != nil { | ||
| 1054 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 191, Col: 22} | 1055 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 192, Col: 22} |
| 1055 | } | 1056 | } | ||
| 1056 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var52) | 1057 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var52) | ||
| 1057 | if templ_7745c5c3_Err != nil { | 1058 | if templ_7745c5c3_Err != nil { | ||
| @@ -1061,14 +1062,32 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 1061 | if templ_7745c5c3_Err != nil { | 1062 | if templ_7745c5c3_Err != nil { | ||
| 1062 | return templ_7745c5c3_Err | 1063 | return templ_7745c5c3_Err | ||
| 1063 | } | 1064 | } | ||
| 1065 | + | } else { | |||
| 1066 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 103, " data-view=\"") | |||
| 1067 | + | if templ_7745c5c3_Err != nil { | |||
| 1068 | + | return templ_7745c5c3_Err | |||
| 1069 | + | } | |||
| 1070 | + | var templ_7745c5c3_Var53 string | |||
| 1071 | + | templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |||
| 1072 | + | if templ_7745c5c3_Err != nil { | |||
| 1073 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 194, Col: 22} | |||
| 1074 | + | } | |||
| 1075 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var53) | |||
| 1076 | + | if templ_7745c5c3_Err != nil { | |||
| 1077 | + | return templ_7745c5c3_Err | |||
| 1078 | + | } | |||
| 1079 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 104, "\"") | |||
| 1080 | + | if templ_7745c5c3_Err != nil { | |||
| 1081 | + | return templ_7745c5c3_Err | |||
| 1082 | + | } | |||
| 1064 | } | 1083 | } | ||
| 1065 | if p.Both && !p.Pinned { | 1084 | if p.Both && !p.Pinned { | ||
| 1066 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 103, " hx-live=\"this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff\"") | 1085 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 105, " hx-live=\"this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff\"") |
| 1067 | if templ_7745c5c3_Err != nil { | 1086 | if templ_7745c5c3_Err != nil { | ||
| 1068 | return templ_7745c5c3_Err | 1087 | return templ_7745c5c3_Err | ||
| 1069 | } | 1088 | } | ||
| 1070 | } | 1089 | } | ||
| 1071 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 104, ">") | 1090 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 106, ">") |
| 1072 | if templ_7745c5c3_Err != nil { | 1091 | if templ_7745c5c3_Err != nil { | ||
| 1073 | return templ_7745c5c3_Err | 1092 | return templ_7745c5c3_Err | ||
| 1074 | } | 1093 | } | ||
| @@ -1079,38 +1098,38 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 1079 | } | 1098 | } | ||
| 1080 | } | 1099 | } | ||
| 1081 | if len(p.Files) == 0 { | 1100 | if len(p.Files) == 0 { | ||
| 1082 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 105, "<p class=\"note\">no changed files.</p>") | 1101 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 107, "<p class=\"note\">no changed files.</p>") |
| 1083 | if templ_7745c5c3_Err != nil { | 1102 | if templ_7745c5c3_Err != nil { | ||
| 1084 | return templ_7745c5c3_Err | 1103 | return templ_7745c5c3_Err | ||
| 1085 | } | 1104 | } | ||
| 1086 | } | 1105 | } | ||
| 1087 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 106, "</div><h2 class=\"rule-h\" id=\"comments\"><span>Comments</span><span class=\"count\">") | 1106 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 108, "</div><h2 class=\"rule-h\" id=\"comments\"><span>Comments</span><span class=\"count\">") |
| 1088 | if templ_7745c5c3_Err != nil { | 1107 | if templ_7745c5c3_Err != nil { | ||
| 1089 | return templ_7745c5c3_Err | 1108 | return templ_7745c5c3_Err | ||
| 1090 | } | 1109 | } | ||
| 1091 | - | var templ_7745c5c3_Var53 string | 1110 | + | var templ_7745c5c3_Var54 string |
| 1092 | - | templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NUnresolved)) | 1111 | + | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NUnresolved)) |
| 1093 | if templ_7745c5c3_Err != nil { | 1112 | if templ_7745c5c3_Err != nil { | ||
| 1094 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 204, Col: 97} | 1113 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 207, Col: 97} |
| 1095 | } | 1114 | } | ||
| 1096 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var53)) | 1115 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) |
| 1097 | if templ_7745c5c3_Err != nil { | 1116 | if templ_7745c5c3_Err != nil { | ||
| 1098 | return templ_7745c5c3_Err | 1117 | return templ_7745c5c3_Err | ||
| 1099 | } | 1118 | } | ||
| 1100 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 107, " open / ") | 1119 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 109, " open / ") |
| 1101 | if templ_7745c5c3_Err != nil { | 1120 | if templ_7745c5c3_Err != nil { | ||
| 1102 | return templ_7745c5c3_Err | 1121 | return templ_7745c5c3_Err | ||
| 1103 | } | 1122 | } | ||
| 1104 | - | var templ_7745c5c3_Var54 string | 1123 | + | var templ_7745c5c3_Var55 string |
| 1105 | - | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NComments)) | 1124 | + | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NComments)) |
| 1106 | if templ_7745c5c3_Err != nil { | 1125 | if templ_7745c5c3_Err != nil { | ||
| 1107 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 204, Col: 126} | 1126 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 207, Col: 126} |
| 1108 | } | 1127 | } | ||
| 1109 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | 1128 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) |
| 1110 | if templ_7745c5c3_Err != nil { | 1129 | if templ_7745c5c3_Err != nil { | ||
| 1111 | return templ_7745c5c3_Err | 1130 | return templ_7745c5c3_Err | ||
| 1112 | } | 1131 | } | ||
| 1113 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 108, "</span></h2>") | 1132 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 110, "</span></h2>") |
| 1114 | if templ_7745c5c3_Err != nil { | 1133 | if templ_7745c5c3_Err != nil { | ||
| 1115 | return templ_7745c5c3_Err | 1134 | return templ_7745c5c3_Err | ||
| 1116 | } | 1135 | } | ||
| @@ -1126,17 +1145,17 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 1126 | return templ_7745c5c3_Err | 1145 | return templ_7745c5c3_Err | ||
| 1127 | } | 1146 | } | ||
| 1128 | } | 1147 | } | ||
| 1129 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 109, " ") | 1148 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 111, " ") |
| 1130 | if templ_7745c5c3_Err != nil { | 1149 | if templ_7745c5c3_Err != nil { | ||
| 1131 | return templ_7745c5c3_Err | 1150 | return templ_7745c5c3_Err | ||
| 1132 | } | 1151 | } | ||
| 1133 | if p.NComments == 0 { | 1152 | if p.NComments == 0 { | ||
| 1134 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 110, "<p class=\"dim\">no comments yet.</p>") | 1153 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "<p class=\"dim\">no comments yet.</p>") |
| 1135 | if templ_7745c5c3_Err != nil { | 1154 | if templ_7745c5c3_Err != nil { | ||
| 1136 | return templ_7745c5c3_Err | 1155 | return templ_7745c5c3_Err | ||
| 1137 | } | 1156 | } | ||
| 1138 | } | 1157 | } | ||
| 1139 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 111, " ") | 1158 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 113, " ") |
| 1140 | if templ_7745c5c3_Err != nil { | 1159 | if templ_7745c5c3_Err != nil { | ||
| 1141 | return templ_7745c5c3_Err | 1160 | return templ_7745c5c3_Err | ||
| 1142 | } | 1161 | } | ||
| @@ -1172,49 +1191,49 @@ func branchLink(name, href string) templ.Component { | |||||
| 1172 | }() | 1191 | }() | ||
| 1173 | } | 1192 | } | ||
| 1174 | ctx = templ.InitializeContext(ctx) | 1193 | ctx = templ.InitializeContext(ctx) | ||
| 1175 | - | templ_7745c5c3_Var55 := templ.GetChildren(ctx) | 1194 | + | templ_7745c5c3_Var56 := templ.GetChildren(ctx) |
| 1176 | - | if templ_7745c5c3_Var55 == nil { | 1195 | + | if templ_7745c5c3_Var56 == nil { |
| 1177 | - | templ_7745c5c3_Var55 = templ.NopComponent | 1196 | + | templ_7745c5c3_Var56 = templ.NopComponent |
| 1178 | } | 1197 | } | ||
| 1179 | ctx = templ.ClearChildren(ctx) | 1198 | ctx = templ.ClearChildren(ctx) | ||
| 1180 | if href != "" { | 1199 | if href != "" { | ||
| 1181 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 112, "<a href=\"") | 1200 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 114, "<a href=\"") |
| 1182 | if templ_7745c5c3_Err != nil { | 1201 | if templ_7745c5c3_Err != nil { | ||
| 1183 | return templ_7745c5c3_Err | 1202 | return templ_7745c5c3_Err | ||
| 1184 | } | 1203 | } | ||
| 1185 | - | var templ_7745c5c3_Var56 templ.SafeURL | 1204 | + | var templ_7745c5c3_Var57 templ.SafeURL |
| 1186 | - | templ_7745c5c3_Var56, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | 1205 | + | templ_7745c5c3_Var57, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) |
| 1187 | if templ_7745c5c3_Err != nil { | 1206 | if templ_7745c5c3_Err != nil { | ||
| 1188 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 222, Col: 31} | 1207 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 225, Col: 31} |
| 1189 | } | 1208 | } | ||
| 1190 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var56)) | 1209 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var57)) |
| 1191 | if templ_7745c5c3_Err != nil { | 1210 | if templ_7745c5c3_Err != nil { | ||
| 1192 | return templ_7745c5c3_Err | 1211 | return templ_7745c5c3_Err | ||
| 1193 | } | 1212 | } | ||
| 1194 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 113, "\">") | 1213 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 115, "\">") |
| 1195 | if templ_7745c5c3_Err != nil { | 1214 | if templ_7745c5c3_Err != nil { | ||
| 1196 | return templ_7745c5c3_Err | 1215 | return templ_7745c5c3_Err | ||
| 1197 | } | 1216 | } | ||
| 1198 | - | var templ_7745c5c3_Var57 string | 1217 | + | var templ_7745c5c3_Var58 string |
| 1199 | - | templ_7745c5c3_Var57, templ_7745c5c3_Err = templ.JoinStringErrs(name) | 1218 | + | templ_7745c5c3_Var58, templ_7745c5c3_Err = templ.JoinStringErrs(name) |
| 1200 | if templ_7745c5c3_Err != nil { | 1219 | if templ_7745c5c3_Err != nil { | ||
| 1201 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 222, Col: 40} | 1220 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 225, Col: 40} |
| 1202 | } | 1221 | } | ||
| 1203 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var57)) | 1222 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var58)) |
| 1204 | if templ_7745c5c3_Err != nil { | 1223 | if templ_7745c5c3_Err != nil { | ||
| 1205 | return templ_7745c5c3_Err | 1224 | return templ_7745c5c3_Err | ||
| 1206 | } | 1225 | } | ||
| 1207 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 114, "</a>") | 1226 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 116, "</a>") |
| 1208 | if templ_7745c5c3_Err != nil { | 1227 | if templ_7745c5c3_Err != nil { | ||
| 1209 | return templ_7745c5c3_Err | 1228 | return templ_7745c5c3_Err | ||
| 1210 | } | 1229 | } | ||
| 1211 | } else { | 1230 | } else { | ||
| 1212 | - | var templ_7745c5c3_Var58 string | 1231 | + | var templ_7745c5c3_Var59 string |
| 1213 | - | templ_7745c5c3_Var58, templ_7745c5c3_Err = templ.JoinStringErrs(name) | 1232 | + | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.JoinStringErrs(name) |
| 1214 | if templ_7745c5c3_Err != nil { | 1233 | if templ_7745c5c3_Err != nil { | ||
| 1215 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 224, Col: 8} | 1234 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 227, Col: 8} |
| 1216 | } | 1235 | } | ||
| 1217 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var58)) | 1236 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var59)) |
| 1218 | if templ_7745c5c3_Err != nil { | 1237 | if templ_7745c5c3_Err != nil { | ||
| 1219 | return templ_7745c5c3_Err | 1238 | return templ_7745c5c3_Err | ||
| 1220 | } | 1239 | } | ||
| @@ -1242,9 +1261,9 @@ func lineNotes(notes []CommentView, form *CommentForm, suffix string) templ.Comp | |||||
| 1242 | }() | 1261 | }() | ||
| 1243 | } | 1262 | } | ||
| 1244 | ctx = templ.InitializeContext(ctx) | 1263 | ctx = templ.InitializeContext(ctx) | ||
| 1245 | - | templ_7745c5c3_Var59 := templ.GetChildren(ctx) | 1264 | + | templ_7745c5c3_Var60 := templ.GetChildren(ctx) |
| 1246 | - | if templ_7745c5c3_Var59 == nil { | 1265 | + | if templ_7745c5c3_Var60 == nil { |
| 1247 | - | templ_7745c5c3_Var59 = templ.NopComponent | 1266 | + | templ_7745c5c3_Var60 = templ.NopComponent |
| 1248 | } | 1267 | } | ||
| 1249 | ctx = templ.ClearChildren(ctx) | 1268 | ctx = templ.ClearChildren(ctx) | ||
| 1250 | for _, c := range notes { | 1269 | for _, c := range notes { | ||
| @@ -1281,134 +1300,119 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1281 | }() | 1300 | }() | ||
| 1282 | } | 1301 | } | ||
| 1283 | ctx = templ.InitializeContext(ctx) | 1302 | ctx = templ.InitializeContext(ctx) | ||
| 1284 | - | templ_7745c5c3_Var60 := templ.GetChildren(ctx) | 1303 | + | templ_7745c5c3_Var61 := templ.GetChildren(ctx) |
| 1285 | - | if templ_7745c5c3_Var60 == nil { | 1304 | + | if templ_7745c5c3_Var61 == nil { |
| 1286 | - | templ_7745c5c3_Var60 = templ.NopComponent | 1305 | + | templ_7745c5c3_Var61 = templ.NopComponent |
| 1287 | } | 1306 | } | ||
| 1288 | ctx = templ.ClearChildren(ctx) | 1307 | ctx = templ.ClearChildren(ctx) | ||
| 1289 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 115, "<div class=\"cmt\" id=\"") | 1308 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, "<div class=\"cmt\" id=\"") |
| 1290 | if templ_7745c5c3_Err != nil { | 1309 | if templ_7745c5c3_Err != nil { | ||
| 1291 | return templ_7745c5c3_Err | 1310 | return templ_7745c5c3_Err | ||
| 1292 | } | 1311 | } | ||
| 1293 | - | var templ_7745c5c3_Var61 string | 1312 | + | var templ_7745c5c3_Var62 string |
| 1294 | - | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.ResolveAttributeValue("c" + c.ID + suffix) | 1313 | + | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.ResolveAttributeValue("c" + c.ID + suffix) |
| 1295 | if templ_7745c5c3_Err != nil { | 1314 | if templ_7745c5c3_Err != nil { | ||
| 1296 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 243, Col: 42} | 1315 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 246, Col: 42} |
| 1297 | } | 1316 | } | ||
| 1298 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var61) | 1317 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var62) |
| 1299 | if templ_7745c5c3_Err != nil { | 1318 | if templ_7745c5c3_Err != nil { | ||
| 1300 | return templ_7745c5c3_Err | 1319 | return templ_7745c5c3_Err | ||
| 1301 | } | 1320 | } | ||
| 1302 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 116, "\" data-resolved=\"") | 1321 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 118, "\" data-resolved=\"") |
| 1303 | if templ_7745c5c3_Err != nil { | 1322 | if templ_7745c5c3_Err != nil { | ||
| 1304 | return templ_7745c5c3_Err | 1323 | return templ_7745c5c3_Err | ||
| 1305 | } | 1324 | } | ||
| 1306 | - | var templ_7745c5c3_Var62 string | 1325 | + | var templ_7745c5c3_Var63 string |
| 1307 | - | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolved)) | 1326 | + | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolved)) |
| 1308 | if templ_7745c5c3_Err != nil { | 1327 | if templ_7745c5c3_Err != nil { | ||
| 1309 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 243, Col: 81} | 1328 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 246, Col: 81} |
| 1310 | } | 1329 | } | ||
| 1311 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var62) | 1330 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var63) |
| 1312 | if templ_7745c5c3_Err != nil { | 1331 | if templ_7745c5c3_Err != nil { | ||
| 1313 | return templ_7745c5c3_Err | 1332 | return templ_7745c5c3_Err | ||
| 1314 | } | 1333 | } | ||
| 1315 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, "\"") | 1334 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 119, "\"") |
| 1316 | if templ_7745c5c3_Err != nil { | 1335 | if templ_7745c5c3_Err != nil { | ||
| 1317 | return templ_7745c5c3_Err | 1336 | return templ_7745c5c3_Err | ||
| 1318 | } | 1337 | } | ||
| 1319 | if c.Reply != nil { | 1338 | if c.Reply != nil { | ||
| 1320 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 118, " data-thread") | 1339 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 120, " data-thread") |
| 1321 | if templ_7745c5c3_Err != nil { | 1340 | if templ_7745c5c3_Err != nil { | ||
| 1322 | return templ_7745c5c3_Err | 1341 | return templ_7745c5c3_Err | ||
| 1323 | } | 1342 | } | ||
| 1324 | } | 1343 | } | ||
| 1325 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 119, "><p class=\"c-head\"><span class=\"c-who\">") | 1344 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 121, "><p class=\"c-head\"><span class=\"c-who\">") |
| 1326 | if templ_7745c5c3_Err != nil { | 1345 | if templ_7745c5c3_Err != nil { | ||
| 1327 | return templ_7745c5c3_Err | 1346 | return templ_7745c5c3_Err | ||
| 1328 | } | 1347 | } | ||
| 1329 | - | var templ_7745c5c3_Var63 string | 1348 | + | var templ_7745c5c3_Var64 string |
| 1330 | - | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | 1349 | + | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) |
| 1331 | if templ_7745c5c3_Err != nil { | 1350 | if templ_7745c5c3_Err != nil { | ||
| 1332 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 245, Col: 33} | 1351 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 248, Col: 33} |
| 1333 | } | 1352 | } | ||
| 1334 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var63)) | 1353 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var64)) |
| 1335 | if templ_7745c5c3_Err != nil { | 1354 | if templ_7745c5c3_Err != nil { | ||
| 1336 | return templ_7745c5c3_Err | 1355 | return templ_7745c5c3_Err | ||
| 1337 | } | 1356 | } | ||
| 1338 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 120, "</span> ") | 1357 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 122, "</span> ") |
| 1339 | if templ_7745c5c3_Err != nil { | 1358 | if templ_7745c5c3_Err != nil { | ||
| 1340 | return templ_7745c5c3_Err | 1359 | return templ_7745c5c3_Err | ||
| 1341 | } | 1360 | } | ||
| 1342 | if c.WhenAt != "" { | 1361 | if c.WhenAt != "" { | ||
| 1343 | - | var templ_7745c5c3_Var64 string | |||
| 1344 | - | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |||
| 1345 | - | if templ_7745c5c3_Err != nil { | |||
| 1346 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 9} | |||
| 1347 | - | } | |||
| 1348 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var64)) | |||
| 1349 | - | if templ_7745c5c3_Err != nil { | |||
| 1350 | - | return templ_7745c5c3_Err | |||
| 1351 | - | } | |||
| 1352 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 121, "<time class=\"mute\" datetime=\"") | |||
| 1353 | - | if templ_7745c5c3_Err != nil { | |||
| 1354 | - | return templ_7745c5c3_Err | |||
| 1355 | - | } | |||
| 1356 | var templ_7745c5c3_Var65 string | 1362 | var templ_7745c5c3_Var65 string | ||
| 1357 | - | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | 1363 | + | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(" ") |
| 1358 | if templ_7745c5c3_Err != nil { | 1364 | if templ_7745c5c3_Err != nil { | ||
| 1359 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 49} | 1365 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 9} |
| 1360 | } | 1366 | } | ||
| 1361 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var65) | 1367 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var65)) |
| 1362 | if templ_7745c5c3_Err != nil { | 1368 | if templ_7745c5c3_Err != nil { | ||
| 1363 | return templ_7745c5c3_Err | 1369 | return templ_7745c5c3_Err | ||
| 1364 | } | 1370 | } | ||
| 1365 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 122, "\" title=\"") | 1371 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 123, "<time class=\"mute\" datetime=\"") |
| 1366 | if templ_7745c5c3_Err != nil { | 1372 | if templ_7745c5c3_Err != nil { | ||
| 1367 | return templ_7745c5c3_Err | 1373 | return templ_7745c5c3_Err | ||
| 1368 | } | 1374 | } | ||
| 1369 | var templ_7745c5c3_Var66 string | 1375 | var templ_7745c5c3_Var66 string | ||
| 1370 | - | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Abs) | 1376 | + | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) |
| 1371 | if templ_7745c5c3_Err != nil { | 1377 | if templ_7745c5c3_Err != nil { | ||
| 1372 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 65} | 1378 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 49} |
| 1373 | } | 1379 | } | ||
| 1374 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var66) | 1380 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var66) | ||
| 1375 | if templ_7745c5c3_Err != nil { | 1381 | if templ_7745c5c3_Err != nil { | ||
| 1376 | return templ_7745c5c3_Err | 1382 | return templ_7745c5c3_Err | ||
| 1377 | } | 1383 | } | ||
| 1378 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 123, "\">") | 1384 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 124, "\" title=\"") |
| 1379 | if templ_7745c5c3_Err != nil { | 1385 | if templ_7745c5c3_Err != nil { | ||
| 1380 | return templ_7745c5c3_Err | 1386 | return templ_7745c5c3_Err | ||
| 1381 | } | 1387 | } | ||
| 1382 | var templ_7745c5c3_Var67 string | 1388 | var templ_7745c5c3_Var67 string | ||
| 1383 | - | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | 1389 | + | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Abs) |
| 1384 | if templ_7745c5c3_Err != nil { | 1390 | if templ_7745c5c3_Err != nil { | ||
| 1385 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 76} | 1391 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 65} |
| 1386 | } | 1392 | } | ||
| 1387 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) | 1393 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var67) |
| 1388 | if templ_7745c5c3_Err != nil { | 1394 | if templ_7745c5c3_Err != nil { | ||
| 1389 | return templ_7745c5c3_Err | 1395 | return templ_7745c5c3_Err | ||
| 1390 | } | 1396 | } | ||
| 1391 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 124, "</time> ") | 1397 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 125, "\">") |
| 1392 | if templ_7745c5c3_Err != nil { | 1398 | if templ_7745c5c3_Err != nil { | ||
| 1393 | return templ_7745c5c3_Err | 1399 | return templ_7745c5c3_Err | ||
| 1394 | } | 1400 | } | ||
| 1395 | - | } | |||
| 1396 | - | if c.Resolved { | |||
| 1397 | var templ_7745c5c3_Var68 string | 1401 | var templ_7745c5c3_Var68 string | ||
| 1398 | - | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1402 | + | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) |
| 1399 | if templ_7745c5c3_Err != nil { | 1403 | if templ_7745c5c3_Err != nil { | ||
| 1400 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 9} | 1404 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 250, Col: 76} |
| 1401 | } | 1405 | } | ||
| 1402 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | 1406 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | ||
| 1403 | if templ_7745c5c3_Err != nil { | 1407 | if templ_7745c5c3_Err != nil { | ||
| 1404 | return templ_7745c5c3_Err | 1408 | return templ_7745c5c3_Err | ||
| 1405 | } | 1409 | } | ||
| 1406 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 125, "<span class=\"c-state\">resolved</span> ") | 1410 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 126, "</time> ") |
| 1407 | if templ_7745c5c3_Err != nil { | 1411 | if templ_7745c5c3_Err != nil { | ||
| 1408 | return templ_7745c5c3_Err | 1412 | return templ_7745c5c3_Err | ||
| 1409 | } | 1413 | } | ||
| 1410 | } | 1414 | } | ||
| 1411 | - | if c.Outdated { | 1415 | + | if c.Resolved { |
| 1412 | var templ_7745c5c3_Var69 string | 1416 | var templ_7745c5c3_Var69 string | ||
| 1413 | templ_7745c5c3_Var69, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1417 | templ_7745c5c3_Var69, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | ||
| 1414 | if templ_7745c5c3_Err != nil { | 1418 | if templ_7745c5c3_Err != nil { | ||
| @@ -1418,12 +1422,12 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1418 | if templ_7745c5c3_Err != nil { | 1422 | if templ_7745c5c3_Err != nil { | ||
| 1419 | return templ_7745c5c3_Err | 1423 | return templ_7745c5c3_Err | ||
| 1420 | } | 1424 | } | ||
| 1421 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 126, "<span class=\"c-state\" title=\"written on an earlier head; the line may have moved\">outdated</span> ") | 1425 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 127, "<span class=\"c-state\">resolved</span> ") |
| 1422 | if templ_7745c5c3_Err != nil { | 1426 | if templ_7745c5c3_Err != nil { | ||
| 1423 | return templ_7745c5c3_Err | 1427 | return templ_7745c5c3_Err | ||
| 1424 | } | 1428 | } | ||
| 1425 | } | 1429 | } | ||
| 1426 | - | if c.Where != "" { | 1430 | + | if c.Outdated { |
| 1427 | var templ_7745c5c3_Var70 string | 1431 | var templ_7745c5c3_Var70 string | ||
| 1428 | templ_7745c5c3_Var70, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1432 | templ_7745c5c3_Var70, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | ||
| 1429 | if templ_7745c5c3_Err != nil { | 1433 | if templ_7745c5c3_Err != nil { | ||
| @@ -1433,30 +1437,45 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1433 | if templ_7745c5c3_Err != nil { | 1437 | if templ_7745c5c3_Err != nil { | ||
| 1434 | return templ_7745c5c3_Err | 1438 | return templ_7745c5c3_Err | ||
| 1435 | } | 1439 | } | ||
| 1436 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 127, "<span class=\"c-where mute\">") | 1440 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 128, "<span class=\"c-state\" title=\"written on an earlier head; the line may have moved\">outdated</span> ") |
| 1437 | if templ_7745c5c3_Err != nil { | 1441 | if templ_7745c5c3_Err != nil { | ||
| 1438 | return templ_7745c5c3_Err | 1442 | return templ_7745c5c3_Err | ||
| 1439 | } | 1443 | } | ||
| 1444 | + | } | |||
| 1445 | + | if c.Where != "" { | |||
| 1440 | var templ_7745c5c3_Var71 string | 1446 | var templ_7745c5c3_Var71 string | ||
| 1441 | - | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.JoinStringErrs(c.Where) | 1447 | + | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.JoinStringErrs(" ") |
| 1442 | if templ_7745c5c3_Err != nil { | 1448 | if templ_7745c5c3_Err != nil { | ||
| 1443 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 256, Col: 47} | 1449 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 259, Col: 9} |
| 1444 | } | 1450 | } | ||
| 1445 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var71)) | 1451 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var71)) | ||
| 1446 | if templ_7745c5c3_Err != nil { | 1452 | if templ_7745c5c3_Err != nil { | ||
| 1447 | return templ_7745c5c3_Err | 1453 | return templ_7745c5c3_Err | ||
| 1448 | } | 1454 | } | ||
| 1449 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 128, "</span>") | 1455 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 129, "<span class=\"c-where mute\">") |
| 1456 | + | if templ_7745c5c3_Err != nil { | |||
| 1457 | + | return templ_7745c5c3_Err | |||
| 1458 | + | } | |||
| 1459 | + | var templ_7745c5c3_Var72 string | |||
| 1460 | + | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.JoinStringErrs(c.Where) | |||
| 1461 | + | if templ_7745c5c3_Err != nil { | |||
| 1462 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 259, Col: 47} | |||
| 1463 | + | } | |||
| 1464 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var72)) | |||
| 1465 | + | if templ_7745c5c3_Err != nil { | |||
| 1466 | + | return templ_7745c5c3_Err | |||
| 1467 | + | } | |||
| 1468 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 130, "</span>") | |||
| 1450 | if templ_7745c5c3_Err != nil { | 1469 | if templ_7745c5c3_Err != nil { | ||
| 1451 | return templ_7745c5c3_Err | 1470 | return templ_7745c5c3_Err | ||
| 1452 | } | 1471 | } | ||
| 1453 | } | 1472 | } | ||
| 1454 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 129, "</p>") | 1473 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 131, "</p>") |
| 1455 | if templ_7745c5c3_Err != nil { | 1474 | if templ_7745c5c3_Err != nil { | ||
| 1456 | return templ_7745c5c3_Err | 1475 | return templ_7745c5c3_Err | ||
| 1457 | } | 1476 | } | ||
| 1458 | if len(c.Parts) > 0 { | 1477 | if len(c.Parts) > 0 { | ||
| 1459 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 130, "<p class=\"c-text\">") | 1478 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 132, "<p class=\"c-text\">") |
| 1460 | if templ_7745c5c3_Err != nil { | 1479 | if templ_7745c5c3_Err != nil { | ||
| 1461 | return templ_7745c5c3_Err | 1480 | return templ_7745c5c3_Err | ||
| 1462 | } | 1481 | } | ||
| @@ -1464,24 +1483,24 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1464 | if templ_7745c5c3_Err != nil { | 1483 | if templ_7745c5c3_Err != nil { | ||
| 1465 | return templ_7745c5c3_Err | 1484 | return templ_7745c5c3_Err | ||
| 1466 | } | 1485 | } | ||
| 1467 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 131, "</p>") | 1486 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 133, "</p>") |
| 1468 | if templ_7745c5c3_Err != nil { | 1487 | if templ_7745c5c3_Err != nil { | ||
| 1469 | return templ_7745c5c3_Err | 1488 | return templ_7745c5c3_Err | ||
| 1470 | } | 1489 | } | ||
| 1471 | } else if c.Deleted { | 1490 | } else if c.Deleted { | ||
| 1472 | if c.Verdict != "" { | 1491 | if c.Verdict != "" { | ||
| 1473 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 132, "<p class=\"mute\">text deleted</p>") | 1492 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 134, "<p class=\"mute\">text deleted</p>") |
| 1474 | if templ_7745c5c3_Err != nil { | 1493 | if templ_7745c5c3_Err != nil { | ||
| 1475 | return templ_7745c5c3_Err | 1494 | return templ_7745c5c3_Err | ||
| 1476 | } | 1495 | } | ||
| 1477 | } else { | 1496 | } else { | ||
| 1478 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 133, "<p class=\"mute\">deleted note</p>") | 1497 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 135, "<p class=\"mute\">deleted note</p>") |
| 1479 | if templ_7745c5c3_Err != nil { | 1498 | if templ_7745c5c3_Err != nil { | ||
| 1480 | return templ_7745c5c3_Err | 1499 | return templ_7745c5c3_Err | ||
| 1481 | } | 1500 | } | ||
| 1482 | } | 1501 | } | ||
| 1483 | } else { | 1502 | } else { | ||
| 1484 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 134, "<div class=\"c-body prose\">") | 1503 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 136, "<div class=\"c-body prose\">") |
| 1485 | if templ_7745c5c3_Err != nil { | 1504 | if templ_7745c5c3_Err != nil { | ||
| 1486 | return templ_7745c5c3_Err | 1505 | return templ_7745c5c3_Err | ||
| 1487 | } | 1506 | } | ||
| @@ -1496,147 +1515,147 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1496 | return templ_7745c5c3_Err | 1515 | return templ_7745c5c3_Err | ||
| 1497 | } | 1516 | } | ||
| 1498 | } | 1517 | } | ||
| 1499 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 135, "</div>") | 1518 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 137, "</div>") |
| 1500 | if templ_7745c5c3_Err != nil { | 1519 | if templ_7745c5c3_Err != nil { | ||
| 1501 | return templ_7745c5c3_Err | 1520 | return templ_7745c5c3_Err | ||
| 1502 | } | 1521 | } | ||
| 1503 | } | 1522 | } | ||
| 1504 | if c.Edited { | 1523 | if c.Edited { | ||
| 1505 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 136, "<span class=\"mute\">edited</span> ") | 1524 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 138, "<span class=\"mute\">edited</span> ") |
| 1506 | if templ_7745c5c3_Err != nil { | 1525 | if templ_7745c5c3_Err != nil { | ||
| 1507 | return templ_7745c5c3_Err | 1526 | return templ_7745c5c3_Err | ||
| 1508 | } | 1527 | } | ||
| 1509 | } | 1528 | } | ||
| 1510 | if c.Verdict != "" { | 1529 | if c.Verdict != "" { | ||
| 1511 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 137, "<span class=\"c-state\">") | 1530 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 139, "<span class=\"c-state\">") |
| 1512 | if templ_7745c5c3_Err != nil { | 1531 | if templ_7745c5c3_Err != nil { | ||
| 1513 | return templ_7745c5c3_Err | 1532 | return templ_7745c5c3_Err | ||
| 1514 | } | 1533 | } | ||
| 1515 | - | var templ_7745c5c3_Var72 string | 1534 | + | var templ_7745c5c3_Var73 string |
| 1516 | - | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.JoinStringErrs(c.Verdict) | 1535 | + | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinStringErrs(c.Verdict) |
| 1517 | if templ_7745c5c3_Err != nil { | 1536 | if templ_7745c5c3_Err != nil { | ||
| 1518 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 280, Col: 36} | 1537 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 283, Col: 36} |
| 1519 | } | 1538 | } | ||
| 1520 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var72)) | 1539 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) |
| 1521 | if templ_7745c5c3_Err != nil { | 1540 | if templ_7745c5c3_Err != nil { | ||
| 1522 | return templ_7745c5c3_Err | 1541 | return templ_7745c5c3_Err | ||
| 1523 | } | 1542 | } | ||
| 1524 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 138, "</span> ") | 1543 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 140, "</span> ") |
| 1525 | if templ_7745c5c3_Err != nil { | 1544 | if templ_7745c5c3_Err != nil { | ||
| 1526 | return templ_7745c5c3_Err | 1545 | return templ_7745c5c3_Err | ||
| 1527 | } | 1546 | } | ||
| 1528 | } | 1547 | } | ||
| 1529 | if c.Range != "" { | 1548 | if c.Range != "" { | ||
| 1530 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 139, "<span class=\"mute\">") | 1549 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 141, "<span class=\"mute\">") |
| 1531 | if templ_7745c5c3_Err != nil { | 1550 | if templ_7745c5c3_Err != nil { | ||
| 1532 | return templ_7745c5c3_Err | 1551 | return templ_7745c5c3_Err | ||
| 1533 | } | 1552 | } | ||
| 1534 | - | var templ_7745c5c3_Var73 string | 1553 | + | var templ_7745c5c3_Var74 string |
| 1535 | - | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinStringErrs(c.Range) | 1554 | + | templ_7745c5c3_Var74, templ_7745c5c3_Err = templ.JoinStringErrs(c.Range) |
| 1536 | if templ_7745c5c3_Err != nil { | 1555 | if templ_7745c5c3_Err != nil { | ||
| 1537 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 283, Col: 31} | 1556 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 286, Col: 31} |
| 1538 | } | 1557 | } | ||
| 1539 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) | 1558 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var74)) |
| 1540 | if templ_7745c5c3_Err != nil { | 1559 | if templ_7745c5c3_Err != nil { | ||
| 1541 | return templ_7745c5c3_Err | 1560 | return templ_7745c5c3_Err | ||
| 1542 | } | 1561 | } | ||
| 1543 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 140, "</span> ") | 1562 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 142, "</span> ") |
| 1544 | if templ_7745c5c3_Err != nil { | 1563 | if templ_7745c5c3_Err != nil { | ||
| 1545 | return templ_7745c5c3_Err | 1564 | return templ_7745c5c3_Err | ||
| 1546 | } | 1565 | } | ||
| 1547 | } | 1566 | } | ||
| 1548 | if c.Quote != "" { | 1567 | if c.Quote != "" { | ||
| 1549 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 141, "<button type=\"button\" class=\"btn\" data-js data-quote=\"") | 1568 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 143, "<button type=\"button\" class=\"btn\" data-js data-quote=\"") |
| 1550 | if templ_7745c5c3_Err != nil { | 1569 | if templ_7745c5c3_Err != nil { | ||
| 1551 | return templ_7745c5c3_Err | 1570 | return templ_7745c5c3_Err | ||
| 1552 | } | 1571 | } | ||
| 1553 | - | var templ_7745c5c3_Var74 string | 1572 | + | var templ_7745c5c3_Var75 string |
| 1554 | - | templ_7745c5c3_Var74, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Quote) | 1573 | + | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Quote) |
| 1555 | if templ_7745c5c3_Err != nil { | 1574 | if templ_7745c5c3_Err != nil { | ||
| 1556 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 286, Col: 65} | 1575 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 65} |
| 1557 | } | 1576 | } | ||
| 1558 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var74) | 1577 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var75) |
| 1559 | if templ_7745c5c3_Err != nil { | 1578 | if templ_7745c5c3_Err != nil { | ||
| 1560 | return templ_7745c5c3_Err | 1579 | return templ_7745c5c3_Err | ||
| 1561 | } | 1580 | } | ||
| 1562 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 142, "\">Quote</button> ") | 1581 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 144, "\">Quote</button> ") |
| 1563 | if templ_7745c5c3_Err != nil { | 1582 | if templ_7745c5c3_Err != nil { | ||
| 1564 | return templ_7745c5c3_Err | 1583 | return templ_7745c5c3_Err | ||
| 1565 | } | 1584 | } | ||
| 1566 | } | 1585 | } | ||
| 1567 | if c.Edit != nil { | 1586 | if c.Edit != nil { | ||
| 1568 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 143, "<details><summary>Edit</summary><form method=\"post\" action=\"") | 1587 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 145, "<details><summary>Edit</summary><form method=\"post\" action=\"") |
| 1569 | if templ_7745c5c3_Err != nil { | 1588 | if templ_7745c5c3_Err != nil { | ||
| 1570 | return templ_7745c5c3_Err | 1589 | return templ_7745c5c3_Err | ||
| 1571 | } | 1590 | } | ||
| 1572 | - | var templ_7745c5c3_Var75 templ.SafeURL | 1591 | + | var templ_7745c5c3_Var76 templ.SafeURL |
| 1573 | - | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Edit.Action)) | 1592 | + | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Edit.Action)) |
| 1574 | if templ_7745c5c3_Err != nil { | 1593 | if templ_7745c5c3_Err != nil { | ||
| 1575 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 92} | 1594 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 92} |
| 1576 | } | 1595 | } | ||
| 1577 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var75)) | 1596 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var76)) |
| 1578 | if templ_7745c5c3_Err != nil { | 1597 | if templ_7745c5c3_Err != nil { | ||
| 1579 | return templ_7745c5c3_Err | 1598 | return templ_7745c5c3_Err | ||
| 1580 | } | 1599 | } | ||
| 1581 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 144, "\"><input type=\"hidden\" name=\"from\" value=\"") | 1600 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 146, "\"><input type=\"hidden\" name=\"from\" value=\"") |
| 1582 | if templ_7745c5c3_Err != nil { | 1601 | if templ_7745c5c3_Err != nil { | ||
| 1583 | return templ_7745c5c3_Err | 1602 | return templ_7745c5c3_Err | ||
| 1584 | } | 1603 | } | ||
| 1585 | - | var templ_7745c5c3_Var76 string | 1604 | + | var templ_7745c5c3_Var77 string |
| 1586 | - | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Edit.From)) | 1605 | + | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Edit.From)) |
| 1587 | if templ_7745c5c3_Err != nil { | 1606 | if templ_7745c5c3_Err != nil { | ||
| 1588 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 153} | 1607 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 153} |
| 1589 | } | 1608 | } | ||
| 1590 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var76) | 1609 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var77) |
| 1591 | if templ_7745c5c3_Err != nil { | 1610 | if templ_7745c5c3_Err != nil { | ||
| 1592 | return templ_7745c5c3_Err | 1611 | return templ_7745c5c3_Err | ||
| 1593 | } | 1612 | } | ||
| 1594 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 145, "\"><textarea name=\"text\" maxlength=\"8000\">") | 1613 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 147, "\"><textarea name=\"text\" maxlength=\"8000\">") |
| 1595 | if templ_7745c5c3_Err != nil { | 1614 | if templ_7745c5c3_Err != nil { | ||
| 1596 | return templ_7745c5c3_Err | 1615 | return templ_7745c5c3_Err | ||
| 1597 | } | 1616 | } | ||
| 1598 | - | var templ_7745c5c3_Var77 string | 1617 | + | var templ_7745c5c3_Var78 string |
| 1599 | - | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.JoinStringErrs(c.Edit.Text) | 1618 | + | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.JoinStringErrs(c.Edit.Text) |
| 1600 | if templ_7745c5c3_Err != nil { | 1619 | if templ_7745c5c3_Err != nil { | ||
| 1601 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 209} | 1620 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 209} |
| 1602 | } | 1621 | } | ||
| 1603 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var77)) | 1622 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var78)) |
| 1604 | if templ_7745c5c3_Err != nil { | 1623 | if templ_7745c5c3_Err != nil { | ||
| 1605 | return templ_7745c5c3_Err | 1624 | return templ_7745c5c3_Err | ||
| 1606 | } | 1625 | } | ||
| 1607 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 146, "</textarea><button class=\"btn\" type=\"submit\">Save</button></form></details> ") | 1626 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 148, "</textarea><button class=\"btn\" type=\"submit\">Save</button></form></details> ") |
| 1608 | if templ_7745c5c3_Err != nil { | 1627 | if templ_7745c5c3_Err != nil { | ||
| 1609 | return templ_7745c5c3_Err | 1628 | return templ_7745c5c3_Err | ||
| 1610 | } | 1629 | } | ||
| 1611 | } | 1630 | } | ||
| 1612 | if c.Delete != nil { | 1631 | if c.Delete != nil { | ||
| 1613 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 147, "<details><summary>Delete</summary><form method=\"post\" action=\"") | 1632 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 149, "<details><summary>Delete</summary><form method=\"post\" action=\"") |
| 1614 | if templ_7745c5c3_Err != nil { | 1633 | if templ_7745c5c3_Err != nil { | ||
| 1615 | return templ_7745c5c3_Err | 1634 | return templ_7745c5c3_Err | ||
| 1616 | } | 1635 | } | ||
| 1617 | - | var templ_7745c5c3_Var78 templ.SafeURL | 1636 | + | var templ_7745c5c3_Var79 templ.SafeURL |
| 1618 | - | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Delete.Action)) | 1637 | + | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Delete.Action)) |
| 1619 | if templ_7745c5c3_Err != nil { | 1638 | if templ_7745c5c3_Err != nil { | ||
| 1620 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 96} | 1639 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 295, Col: 96} |
| 1621 | } | 1640 | } | ||
| 1622 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var78)) | 1641 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var79)) |
| 1623 | if templ_7745c5c3_Err != nil { | 1642 | if templ_7745c5c3_Err != nil { | ||
| 1624 | return templ_7745c5c3_Err | 1643 | return templ_7745c5c3_Err | ||
| 1625 | } | 1644 | } | ||
| 1626 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 148, "\"><input type=\"hidden\" name=\"from\" value=\"") | 1645 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 150, "\"><input type=\"hidden\" name=\"from\" value=\"") |
| 1627 | if templ_7745c5c3_Err != nil { | 1646 | if templ_7745c5c3_Err != nil { | ||
| 1628 | return templ_7745c5c3_Err | 1647 | return templ_7745c5c3_Err | ||
| 1629 | } | 1648 | } | ||
| 1630 | - | var templ_7745c5c3_Var79 string | 1649 | + | var templ_7745c5c3_Var80 string |
| 1631 | - | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Delete.From)) | 1650 | + | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Delete.From)) |
| 1632 | if templ_7745c5c3_Err != nil { | 1651 | if templ_7745c5c3_Err != nil { | ||
| 1633 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 292, Col: 159} | 1652 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 295, Col: 159} |
| 1634 | } | 1653 | } | ||
| 1635 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var79) | 1654 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var80) |
| 1636 | if templ_7745c5c3_Err != nil { | 1655 | if templ_7745c5c3_Err != nil { | ||
| 1637 | return templ_7745c5c3_Err | 1656 | return templ_7745c5c3_Err | ||
| 1638 | } | 1657 | } | ||
| 1639 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 149, "\"><p>Delete this note?</p><button class=\"btn\" type=\"submit\">Confirm delete</button></form></details> ") | 1658 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 151, "\"><p>Delete this note?</p><button class=\"btn\" type=\"submit\">Confirm delete</button></form></details> ") |
| 1640 | if templ_7745c5c3_Err != nil { | 1659 | if templ_7745c5c3_Err != nil { | ||
| 1641 | return templ_7745c5c3_Err | 1660 | return templ_7745c5c3_Err | ||
| 1642 | } | 1661 | } | ||
| @@ -1648,7 +1667,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1648 | } | 1667 | } | ||
| 1649 | } | 1668 | } | ||
| 1650 | if c.Reply != nil { | 1669 | if c.Reply != nil { | ||
| 1651 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 150, "<details data-reply><summary>Reply</summary>") | 1670 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 152, "<details data-reply><summary>Reply</summary>") |
| 1652 | if templ_7745c5c3_Err != nil { | 1671 | if templ_7745c5c3_Err != nil { | ||
| 1653 | return templ_7745c5c3_Err | 1672 | return templ_7745c5c3_Err | ||
| 1654 | } | 1673 | } | ||
| @@ -1656,80 +1675,80 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1656 | if templ_7745c5c3_Err != nil { | 1675 | if templ_7745c5c3_Err != nil { | ||
| 1657 | return templ_7745c5c3_Err | 1676 | return templ_7745c5c3_Err | ||
| 1658 | } | 1677 | } | ||
| 1659 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 151, "</details> ") | 1678 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 153, "</details> ") |
| 1660 | if templ_7745c5c3_Err != nil { | 1679 | if templ_7745c5c3_Err != nil { | ||
| 1661 | return templ_7745c5c3_Err | 1680 | return templ_7745c5c3_Err | ||
| 1662 | } | 1681 | } | ||
| 1663 | } | 1682 | } | ||
| 1664 | if c.Resolve != nil { | 1683 | if c.Resolve != nil { | ||
| 1665 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 152, "<form class=\"c-act\" method=\"post\" action=\"") | 1684 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 154, "<form class=\"c-act\" method=\"post\" action=\"") |
| 1666 | if templ_7745c5c3_Err != nil { | 1685 | if templ_7745c5c3_Err != nil { | ||
| 1667 | return templ_7745c5c3_Err | 1686 | return templ_7745c5c3_Err | ||
| 1668 | } | 1687 | } | ||
| 1669 | - | var templ_7745c5c3_Var80 templ.SafeURL | 1688 | + | var templ_7745c5c3_Var81 templ.SafeURL |
| 1670 | - | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Resolve.Action)) | 1689 | + | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Resolve.Action)) |
| 1671 | if templ_7745c5c3_Err != nil { | 1690 | if templ_7745c5c3_Err != nil { | ||
| 1672 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 303, Col: 77} | 1691 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 306, Col: 77} |
| 1673 | } | 1692 | } | ||
| 1674 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var80)) | 1693 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var81)) |
| 1675 | if templ_7745c5c3_Err != nil { | 1694 | if templ_7745c5c3_Err != nil { | ||
| 1676 | return templ_7745c5c3_Err | 1695 | return templ_7745c5c3_Err | ||
| 1677 | } | 1696 | } | ||
| 1678 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 153, "\"><input type=\"hidden\" name=\"resolved\" value=\"") | 1697 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 155, "\"><input type=\"hidden\" name=\"resolved\" value=\"") |
| 1679 | if templ_7745c5c3_Err != nil { | 1698 | if templ_7745c5c3_Err != nil { | ||
| 1680 | return templ_7745c5c3_Err | 1699 | return templ_7745c5c3_Err | ||
| 1681 | } | 1700 | } | ||
| 1682 | - | var templ_7745c5c3_Var81 string | 1701 | + | var templ_7745c5c3_Var82 string |
| 1683 | - | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolve.Value)) | 1702 | + | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolve.Value)) |
| 1684 | if templ_7745c5c3_Err != nil { | 1703 | if templ_7745c5c3_Err != nil { | ||
| 1685 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 304, Col: 74} | 1704 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 307, Col: 74} |
| 1686 | } | 1705 | } | ||
| 1687 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var81) | 1706 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var82) |
| 1688 | if templ_7745c5c3_Err != nil { | 1707 | if templ_7745c5c3_Err != nil { | ||
| 1689 | return templ_7745c5c3_Err | 1708 | return templ_7745c5c3_Err | ||
| 1690 | } | 1709 | } | ||
| 1691 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 154, "\"> ") | 1710 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 156, "\"> ") |
| 1692 | if templ_7745c5c3_Err != nil { | 1711 | if templ_7745c5c3_Err != nil { | ||
| 1693 | return templ_7745c5c3_Err | 1712 | return templ_7745c5c3_Err | ||
| 1694 | } | 1713 | } | ||
| 1695 | if c.Resolve.From > 0 { | 1714 | if c.Resolve.From > 0 { | ||
| 1696 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 155, "<input type=\"hidden\" name=\"from\" value=\"") | 1715 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 157, "<input type=\"hidden\" name=\"from\" value=\"") |
| 1697 | if templ_7745c5c3_Err != nil { | 1716 | if templ_7745c5c3_Err != nil { | ||
| 1698 | return templ_7745c5c3_Err | 1717 | return templ_7745c5c3_Err | ||
| 1699 | } | 1718 | } | ||
| 1700 | - | var templ_7745c5c3_Var82 string | 1719 | + | var templ_7745c5c3_Var83 string |
| 1701 | - | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Resolve.From)) | 1720 | + | templ_7745c5c3_Var83, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Resolve.From)) |
| 1702 | if templ_7745c5c3_Err != nil { | 1721 | if templ_7745c5c3_Err != nil { | ||
| 1703 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 306, Col: 66} | 1722 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 309, Col: 66} |
| 1704 | } | 1723 | } | ||
| 1705 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var82) | 1724 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var83) |
| 1706 | if templ_7745c5c3_Err != nil { | 1725 | if templ_7745c5c3_Err != nil { | ||
| 1707 | return templ_7745c5c3_Err | 1726 | return templ_7745c5c3_Err | ||
| 1708 | } | 1727 | } | ||
| 1709 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 156, "\"> ") | 1728 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 158, "\"> ") |
| 1710 | if templ_7745c5c3_Err != nil { | 1729 | if templ_7745c5c3_Err != nil { | ||
| 1711 | return templ_7745c5c3_Err | 1730 | return templ_7745c5c3_Err | ||
| 1712 | } | 1731 | } | ||
| 1713 | } | 1732 | } | ||
| 1714 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 157, "<button type=\"submit\" class=\"btn\">") | 1733 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 159, "<button type=\"submit\" class=\"btn\">") |
| 1715 | if templ_7745c5c3_Err != nil { | 1734 | if templ_7745c5c3_Err != nil { | ||
| 1716 | return templ_7745c5c3_Err | 1735 | return templ_7745c5c3_Err | ||
| 1717 | } | 1736 | } | ||
| 1718 | - | var templ_7745c5c3_Var83 string | 1737 | + | var templ_7745c5c3_Var84 string |
| 1719 | - | templ_7745c5c3_Var83, templ_7745c5c3_Err = templ.JoinStringErrs(c.Resolve.Label) | 1738 | + | templ_7745c5c3_Var84, templ_7745c5c3_Err = templ.JoinStringErrs(c.Resolve.Label) |
| 1720 | if templ_7745c5c3_Err != nil { | 1739 | if templ_7745c5c3_Err != nil { | ||
| 1721 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 308, Col: 55} | 1740 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 311, Col: 55} |
| 1722 | } | 1741 | } | ||
| 1723 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var83)) | 1742 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var84)) |
| 1724 | if templ_7745c5c3_Err != nil { | 1743 | if templ_7745c5c3_Err != nil { | ||
| 1725 | return templ_7745c5c3_Err | 1744 | return templ_7745c5c3_Err | ||
| 1726 | } | 1745 | } | ||
| 1727 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 158, "</button></form>") | 1746 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 160, "</button></form>") |
| 1728 | if templ_7745c5c3_Err != nil { | 1747 | if templ_7745c5c3_Err != nil { | ||
| 1729 | return templ_7745c5c3_Err | 1748 | return templ_7745c5c3_Err | ||
| 1730 | } | 1749 | } | ||
| 1731 | } | 1750 | } | ||
| 1732 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 159, "</div>") | 1751 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 161, "</div>") |
| 1733 | if templ_7745c5c3_Err != nil { | 1752 | if templ_7745c5c3_Err != nil { | ||
| 1734 | return templ_7745c5c3_Err | 1753 | return templ_7745c5c3_Err | ||
| 1735 | } | 1754 | } | ||
| @@ -1761,214 +1780,214 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1761 | }() | 1780 | }() | ||
| 1762 | } | 1781 | } | ||
| 1763 | ctx = templ.InitializeContext(ctx) | 1782 | ctx = templ.InitializeContext(ctx) | ||
| 1764 | - | templ_7745c5c3_Var84 := templ.GetChildren(ctx) | 1783 | + | templ_7745c5c3_Var85 := templ.GetChildren(ctx) |
| 1765 | - | if templ_7745c5c3_Var84 == nil { | 1784 | + | if templ_7745c5c3_Var85 == nil { |
| 1766 | - | templ_7745c5c3_Var84 = templ.NopComponent | 1785 | + | templ_7745c5c3_Var85 = templ.NopComponent |
| 1767 | } | 1786 | } | ||
| 1768 | ctx = templ.ClearChildren(ctx) | 1787 | ctx = templ.ClearChildren(ctx) | ||
| 1769 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 160, "<form class=\"cform\" method=\"post\" action=\"") | 1788 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 162, "<form class=\"cform\" method=\"post\" action=\"") |
| 1770 | if templ_7745c5c3_Err != nil { | 1789 | if templ_7745c5c3_Err != nil { | ||
| 1771 | return templ_7745c5c3_Err | 1790 | return templ_7745c5c3_Err | ||
| 1772 | } | 1791 | } | ||
| 1773 | - | var templ_7745c5c3_Var85 templ.SafeURL | 1792 | + | var templ_7745c5c3_Var86 templ.SafeURL |
| 1774 | - | templ_7745c5c3_Var85, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Action)) | 1793 | + | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Action)) |
| 1775 | if templ_7745c5c3_Err != nil { | 1794 | if templ_7745c5c3_Err != nil { | ||
| 1776 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 67} | 1795 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 326, Col: 67} |
| 1777 | } | 1796 | } | ||
| 1778 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var85)) | 1797 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var86)) |
| 1779 | if templ_7745c5c3_Err != nil { | 1798 | if templ_7745c5c3_Err != nil { | ||
| 1780 | return templ_7745c5c3_Err | 1799 | return templ_7745c5c3_Err | ||
| 1781 | } | 1800 | } | ||
| 1782 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 161, "\"><label for=\"") | 1801 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 163, "\"><label for=\"") |
| 1783 | if templ_7745c5c3_Err != nil { | 1802 | if templ_7745c5c3_Err != nil { | ||
| 1784 | return templ_7745c5c3_Err | 1803 | return templ_7745c5c3_Err | ||
| 1785 | } | 1804 | } | ||
| 1786 | - | var templ_7745c5c3_Var86 string | 1805 | + | var templ_7745c5c3_Var87 string |
| 1787 | - | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | 1806 | + | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) |
| 1788 | if templ_7745c5c3_Err != nil { | 1807 | if templ_7745c5c3_Err != nil { | ||
| 1789 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 324, Col: 28} | 1808 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 327, Col: 28} |
| 1790 | } | 1809 | } | ||
| 1791 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var86) | 1810 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var87) |
| 1792 | if templ_7745c5c3_Err != nil { | 1811 | if templ_7745c5c3_Err != nil { | ||
| 1793 | return templ_7745c5c3_Err | 1812 | return templ_7745c5c3_Err | ||
| 1794 | } | 1813 | } | ||
| 1795 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 162, "\">") | 1814 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 164, "\">") |
| 1796 | if templ_7745c5c3_Err != nil { | 1815 | if templ_7745c5c3_Err != nil { | ||
| 1797 | return templ_7745c5c3_Err | 1816 | return templ_7745c5c3_Err | ||
| 1798 | } | 1817 | } | ||
| 1799 | - | var templ_7745c5c3_Var87 string | 1818 | + | var templ_7745c5c3_Var88 string |
| 1800 | - | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.JoinStringErrs(f.Title) | 1819 | + | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.JoinStringErrs(f.Title) |
| 1801 | if templ_7745c5c3_Err != nil { | 1820 | if templ_7745c5c3_Err != nil { | ||
| 1802 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 324, Col: 40} | 1821 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 327, Col: 40} |
| 1803 | } | 1822 | } | ||
| 1804 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var87)) | 1823 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var88)) |
| 1805 | if templ_7745c5c3_Err != nil { | 1824 | if templ_7745c5c3_Err != nil { | ||
| 1806 | return templ_7745c5c3_Err | 1825 | return templ_7745c5c3_Err | ||
| 1807 | } | 1826 | } | ||
| 1808 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 163, "</label> <textarea id=\"") | 1827 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 165, "</label> <textarea id=\"") |
| 1809 | if templ_7745c5c3_Err != nil { | 1828 | if templ_7745c5c3_Err != nil { | ||
| 1810 | return templ_7745c5c3_Err | 1829 | return templ_7745c5c3_Err | ||
| 1811 | } | 1830 | } | ||
| 1812 | - | var templ_7745c5c3_Var88 string | 1831 | + | var templ_7745c5c3_Var89 string |
| 1813 | - | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | 1832 | + | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) |
| 1814 | if templ_7745c5c3_Err != nil { | 1833 | if templ_7745c5c3_Err != nil { | ||
| 1815 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 326, Col: 21} | 1834 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 329, Col: 21} |
| 1816 | } | 1835 | } | ||
| 1817 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var88) | 1836 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var89) |
| 1818 | if templ_7745c5c3_Err != nil { | 1837 | if templ_7745c5c3_Err != nil { | ||
| 1819 | return templ_7745c5c3_Err | 1838 | return templ_7745c5c3_Err | ||
| 1820 | } | 1839 | } | ||
| 1821 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 164, "\" name=\"text\" rows=\"3\" maxlength=\"8000\"") | 1840 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 166, "\" name=\"text\" rows=\"3\" maxlength=\"8000\"") |
| 1822 | if templ_7745c5c3_Err != nil { | 1841 | if templ_7745c5c3_Err != nil { | ||
| 1823 | return templ_7745c5c3_Err | 1842 | return templ_7745c5c3_Err | ||
| 1824 | } | 1843 | } | ||
| 1825 | if f.Plain { | 1844 | if f.Plain { | ||
| 1826 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 165, " required placeholder=\"plain text, 8000 characters at most\"") | 1845 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 167, " required placeholder=\"plain text, 8000 characters at most\"") |
| 1827 | if templ_7745c5c3_Err != nil { | 1846 | if templ_7745c5c3_Err != nil { | ||
| 1828 | return templ_7745c5c3_Err | 1847 | return templ_7745c5c3_Err | ||
| 1829 | } | 1848 | } | ||
| 1830 | } else { | 1849 | } else { | ||
| 1831 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 166, " placeholder=\"Markdown, 8000 characters at most\"") | 1850 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 168, " placeholder=\"Markdown, 8000 characters at most\"") |
| 1832 | if templ_7745c5c3_Err != nil { | 1851 | if templ_7745c5c3_Err != nil { | ||
| 1833 | return templ_7745c5c3_Err | 1852 | return templ_7745c5c3_Err | ||
| 1834 | } | 1853 | } | ||
| 1835 | } | 1854 | } | ||
| 1836 | if f.Focus { | 1855 | if f.Focus { | ||
| 1837 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 167, " autofocus") | 1856 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 169, " autofocus") |
| 1838 | if templ_7745c5c3_Err != nil { | 1857 | if templ_7745c5c3_Err != nil { | ||
| 1839 | return templ_7745c5c3_Err | 1858 | return templ_7745c5c3_Err | ||
| 1840 | } | 1859 | } | ||
| 1841 | } | 1860 | } | ||
| 1842 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 168, "></textarea> ") | 1861 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 170, "></textarea> ") |
| 1843 | if templ_7745c5c3_Err != nil { | 1862 | if templ_7745c5c3_Err != nil { | ||
| 1844 | return templ_7745c5c3_Err | 1863 | return templ_7745c5c3_Err | ||
| 1845 | } | 1864 | } | ||
| 1846 | if f.Path != "" { | 1865 | if f.Path != "" { | ||
| 1847 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 169, "<input type=\"hidden\" name=\"path\" value=\"") | 1866 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 171, "<input type=\"hidden\" name=\"path\" value=\"") |
| 1848 | if templ_7745c5c3_Err != nil { | 1867 | if templ_7745c5c3_Err != nil { | ||
| 1849 | return templ_7745c5c3_Err | 1868 | return templ_7745c5c3_Err | ||
| 1850 | } | 1869 | } | ||
| 1851 | - | var templ_7745c5c3_Var89 string | 1870 | + | var templ_7745c5c3_Var90 string |
| 1852 | - | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | 1871 | + | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) |
| 1853 | if templ_7745c5c3_Err != nil { | 1872 | if templ_7745c5c3_Err != nil { | ||
| 1854 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 341, Col: 50} | 1873 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 344, Col: 50} |
| 1855 | } | 1874 | } | ||
| 1856 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var89) | 1875 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var90) |
| 1857 | if templ_7745c5c3_Err != nil { | 1876 | if templ_7745c5c3_Err != nil { | ||
| 1858 | return templ_7745c5c3_Err | 1877 | return templ_7745c5c3_Err | ||
| 1859 | } | 1878 | } | ||
| 1860 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 170, "\"> <input type=\"hidden\" name=\"line\" value=\"") | 1879 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 172, "\"> <input type=\"hidden\" name=\"line\" value=\"") |
| 1861 | if templ_7745c5c3_Err != nil { | 1880 | if templ_7745c5c3_Err != nil { | ||
| 1862 | return templ_7745c5c3_Err | 1881 | return templ_7745c5c3_Err | ||
| 1863 | } | 1882 | } | ||
| 1864 | - | var templ_7745c5c3_Var90 string | 1883 | + | var templ_7745c5c3_Var91 string |
| 1865 | - | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Line) | 1884 | + | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Line) |
| 1866 | if templ_7745c5c3_Err != nil { | 1885 | if templ_7745c5c3_Err != nil { | ||
| 1867 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 342, Col: 50} | 1886 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 345, Col: 50} |
| 1868 | } | 1887 | } | ||
| 1869 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var90) | 1888 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var91) |
| 1870 | if templ_7745c5c3_Err != nil { | 1889 | if templ_7745c5c3_Err != nil { | ||
| 1871 | return templ_7745c5c3_Err | 1890 | return templ_7745c5c3_Err | ||
| 1872 | } | 1891 | } | ||
| 1873 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 171, "\"> <input type=\"hidden\" name=\"side\" value=\"") | 1892 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 173, "\"> <input type=\"hidden\" name=\"side\" value=\"") |
| 1874 | if templ_7745c5c3_Err != nil { | 1893 | if templ_7745c5c3_Err != nil { | ||
| 1875 | return templ_7745c5c3_Err | 1894 | return templ_7745c5c3_Err | ||
| 1876 | } | 1895 | } | ||
| 1877 | - | var templ_7745c5c3_Var91 string | 1896 | + | var templ_7745c5c3_Var92 string |
| 1878 | - | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Side) | 1897 | + | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Side) |
| 1879 | if templ_7745c5c3_Err != nil { | 1898 | if templ_7745c5c3_Err != nil { | ||
| 1880 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 343, Col: 50} | 1899 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 346, Col: 50} |
| 1881 | } | 1900 | } | ||
| 1882 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var91) | 1901 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var92) |
| 1883 | if templ_7745c5c3_Err != nil { | 1902 | if templ_7745c5c3_Err != nil { | ||
| 1884 | return templ_7745c5c3_Err | 1903 | return templ_7745c5c3_Err | ||
| 1885 | } | 1904 | } | ||
| 1886 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 172, "\"> <label>from line <input type=\"number\" name=\"start_line\" min=\"1\" value=\"") | 1905 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 174, "\"> <label>from line <input type=\"number\" name=\"start_line\" min=\"1\" value=\"") |
| 1887 | if templ_7745c5c3_Err != nil { | 1906 | if templ_7745c5c3_Err != nil { | ||
| 1888 | return templ_7745c5c3_Err | 1907 | return templ_7745c5c3_Err | ||
| 1889 | } | 1908 | } | ||
| 1890 | - | var templ_7745c5c3_Var92 string | 1909 | + | var templ_7745c5c3_Var93 string |
| 1891 | - | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.StartLine) | 1910 | + | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.StartLine) |
| 1892 | if templ_7745c5c3_Err != nil { | 1911 | if templ_7745c5c3_Err != nil { | ||
| 1893 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 344, Col: 86} | 1912 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 347, Col: 86} |
| 1894 | } | 1913 | } | ||
| 1895 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var92) | 1914 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var93) |
| 1896 | if templ_7745c5c3_Err != nil { | 1915 | if templ_7745c5c3_Err != nil { | ||
| 1897 | return templ_7745c5c3_Err | 1916 | return templ_7745c5c3_Err | ||
| 1898 | } | 1917 | } | ||
| 1899 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 173, "\"></label> ") | 1918 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 175, "\"></label> ") |
| 1900 | if templ_7745c5c3_Err != nil { | 1919 | if templ_7745c5c3_Err != nil { | ||
| 1901 | return templ_7745c5c3_Err | 1920 | return templ_7745c5c3_Err | ||
| 1902 | } | 1921 | } | ||
| 1903 | } | 1922 | } | ||
| 1904 | if f.ReplyTo != "" { | 1923 | if f.ReplyTo != "" { | ||
| 1905 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 174, "<input type=\"hidden\" name=\"reply_to\" value=\"") | 1924 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 176, "<input type=\"hidden\" name=\"reply_to\" value=\"") |
| 1906 | if templ_7745c5c3_Err != nil { | 1925 | if templ_7745c5c3_Err != nil { | ||
| 1907 | return templ_7745c5c3_Err | 1926 | return templ_7745c5c3_Err | ||
| 1908 | } | 1927 | } | ||
| 1909 | - | var templ_7745c5c3_Var93 string | 1928 | + | var templ_7745c5c3_Var94 string |
| 1910 | - | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ReplyTo) | 1929 | + | templ_7745c5c3_Var94, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ReplyTo) |
| 1911 | if templ_7745c5c3_Err != nil { | 1930 | if templ_7745c5c3_Err != nil { | ||
| 1912 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 347, Col: 57} | 1931 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 350, Col: 57} |
| 1913 | } | 1932 | } | ||
| 1914 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var93) | 1933 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var94) |
| 1915 | if templ_7745c5c3_Err != nil { | 1934 | if templ_7745c5c3_Err != nil { | ||
| 1916 | return templ_7745c5c3_Err | 1935 | return templ_7745c5c3_Err | ||
| 1917 | } | 1936 | } | ||
| 1918 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 175, "\"> ") | 1937 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 177, "\"> ") |
| 1919 | if templ_7745c5c3_Err != nil { | 1938 | if templ_7745c5c3_Err != nil { | ||
| 1920 | return templ_7745c5c3_Err | 1939 | return templ_7745c5c3_Err | ||
| 1921 | } | 1940 | } | ||
| 1922 | } | 1941 | } | ||
| 1923 | if f.Path == "" && f.ReplyTo == "" && !f.Plain { | 1942 | if f.Path == "" && f.ReplyTo == "" && !f.Plain { | ||
| 1924 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 176, "<fieldset><legend>Verdict</legend><label><input type=\"radio\" name=\"verdict\" value=\"\" checked>Note</label><label><input type=\"radio\" name=\"verdict\" value=\"approve\">Approve</label><label><input type=\"radio\" name=\"verdict\" value=\"changes_requested\">Request changes</label></fieldset>") | 1943 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 178, "<fieldset><legend>Verdict</legend><label><input type=\"radio\" name=\"verdict\" value=\"\" checked>Note</label><label><input type=\"radio\" name=\"verdict\" value=\"approve\">Approve</label><label><input type=\"radio\" name=\"verdict\" value=\"changes_requested\">Request changes</label></fieldset>") |
| 1925 | if templ_7745c5c3_Err != nil { | 1944 | if templ_7745c5c3_Err != nil { | ||
| 1926 | return templ_7745c5c3_Err | 1945 | return templ_7745c5c3_Err | ||
| 1927 | } | 1946 | } | ||
| 1928 | } | 1947 | } | ||
| 1929 | if f.From > 0 { | 1948 | if f.From > 0 { | ||
| 1930 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 177, "<input type=\"hidden\" name=\"from\" value=\"") | 1949 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 179, "<input type=\"hidden\" name=\"from\" value=\"") |
| 1931 | if templ_7745c5c3_Err != nil { | 1950 | if templ_7745c5c3_Err != nil { | ||
| 1932 | return templ_7745c5c3_Err | 1951 | return templ_7745c5c3_Err | ||
| 1933 | } | 1952 | } | ||
| 1934 | - | var templ_7745c5c3_Var94 string | 1953 | + | var templ_7745c5c3_Var95 string |
| 1935 | - | templ_7745c5c3_Var94, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(f.From)) | 1954 | + | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(f.From)) |
| 1936 | if templ_7745c5c3_Err != nil { | 1955 | if templ_7745c5c3_Err != nil { | ||
| 1937 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 353, Col: 56} | 1956 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 356, Col: 56} |
| 1938 | } | 1957 | } | ||
| 1939 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var94) | 1958 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var95) |
| 1940 | if templ_7745c5c3_Err != nil { | 1959 | if templ_7745c5c3_Err != nil { | ||
| 1941 | return templ_7745c5c3_Err | 1960 | return templ_7745c5c3_Err | ||
| 1942 | } | 1961 | } | ||
| 1943 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 178, "\">") | 1962 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 180, "\">") |
| 1944 | if templ_7745c5c3_Err != nil { | 1963 | if templ_7745c5c3_Err != nil { | ||
| 1945 | return templ_7745c5c3_Err | 1964 | return templ_7745c5c3_Err | ||
| 1946 | } | 1965 | } | ||
| 1947 | } | 1966 | } | ||
| 1948 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 179, "<div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Comment</button> ") | 1967 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 181, "<div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Comment</button> ") |
| 1949 | if templ_7745c5c3_Err != nil { | 1968 | if templ_7745c5c3_Err != nil { | ||
| 1950 | return templ_7745c5c3_Err | 1969 | return templ_7745c5c3_Err | ||
| 1951 | } | 1970 | } | ||
| 1952 | if f.Cancel != "" { | 1971 | if f.Cancel != "" { | ||
| 1953 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 180, "<a class=\"btn\" href=\"") | 1972 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 182, "<a class=\"btn\" href=\"") |
| 1954 | if templ_7745c5c3_Err != nil { | 1973 | if templ_7745c5c3_Err != nil { | ||
| 1955 | return templ_7745c5c3_Err | 1974 | return templ_7745c5c3_Err | ||
| 1956 | } | 1975 | } | ||
| 1957 | - | var templ_7745c5c3_Var95 templ.SafeURL | 1976 | + | var templ_7745c5c3_Var96 templ.SafeURL |
| 1958 | - | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Cancel)) | 1977 | + | templ_7745c5c3_Var96, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Cancel)) |
| 1959 | if templ_7745c5c3_Err != nil { | 1978 | if templ_7745c5c3_Err != nil { | ||
| 1960 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 358, Col: 49} | 1979 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 361, Col: 49} |
| 1961 | } | 1980 | } | ||
| 1962 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var95)) | 1981 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var96)) |
| 1963 | if templ_7745c5c3_Err != nil { | 1982 | if templ_7745c5c3_Err != nil { | ||
| 1964 | return templ_7745c5c3_Err | 1983 | return templ_7745c5c3_Err | ||
| 1965 | } | 1984 | } | ||
| 1966 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 181, "\">Cancel</a>") | 1985 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 183, "\">Cancel</a>") |
| 1967 | if templ_7745c5c3_Err != nil { | 1986 | if templ_7745c5c3_Err != nil { | ||
| 1968 | return templ_7745c5c3_Err | 1987 | return templ_7745c5c3_Err | ||
| 1969 | } | 1988 | } | ||
| 1970 | } | 1989 | } | ||
| 1971 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 182, "</div></form>") | 1990 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 184, "</div></form>") |
| 1972 | if templ_7745c5c3_Err != nil { | 1991 | if templ_7745c5c3_Err != nil { | ||
| 1973 | return templ_7745c5c3_Err | 1992 | return templ_7745c5c3_Err | ||
| 1974 | } | 1993 | } | ||
| @@ -1992,25 +2011,25 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1992 | }() | 2011 | }() | ||
| 1993 | } | 2012 | } | ||
| 1994 | ctx = templ.InitializeContext(ctx) | 2013 | ctx = templ.InitializeContext(ctx) | ||
| 1995 | - | templ_7745c5c3_Var96 := templ.GetChildren(ctx) | 2014 | + | templ_7745c5c3_Var97 := templ.GetChildren(ctx) |
| 1996 | - | if templ_7745c5c3_Var96 == nil { | 2015 | + | if templ_7745c5c3_Var97 == nil { |
| 1997 | - | templ_7745c5c3_Var96 = templ.NopComponent | 2016 | + | templ_7745c5c3_Var97 = templ.NopComponent |
| 1998 | } | 2017 | } | ||
| 1999 | ctx = templ.ClearChildren(ctx) | 2018 | ctx = templ.ClearChildren(ctx) | ||
| 2000 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 183, "<section aria-labelledby=\"r-files\" class=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | 2019 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 185, "<section aria-labelledby=\"r-files\" class=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") |
| 2001 | if templ_7745c5c3_Err != nil { | 2020 | if templ_7745c5c3_Err != nil { | ||
| 2002 | return templ_7745c5c3_Err | 2021 | return templ_7745c5c3_Err | ||
| 2003 | } | 2022 | } | ||
| 2004 | - | var templ_7745c5c3_Var97 string | 2023 | + | var templ_7745c5c3_Var98 string |
| 2005 | - | templ_7745c5c3_Var97, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | 2024 | + | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) |
| 2006 | if templ_7745c5c3_Err != nil { | 2025 | if templ_7745c5c3_Err != nil { | ||
| 2007 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 367, Col: 49} | 2026 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 370, Col: 49} |
| 2008 | } | 2027 | } | ||
| 2009 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var97)) | 2028 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) |
| 2010 | if templ_7745c5c3_Err != nil { | 2029 | if templ_7745c5c3_Err != nil { | ||
| 2011 | return templ_7745c5c3_Err | 2030 | return templ_7745c5c3_Err | ||
| 2012 | } | 2031 | } | ||
| 2013 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 184, "</span><kbd aria-hidden=\"true\">g f</kbd> <button type=\"button\" class=\"btn icon fold\" data-js aria-expanded=\"true\" title=\"fold the list of files\" hx-on:click=\"ermiteMR.foldFiles()\"><span class=\"ico i-chevron\" aria-hidden=\"true\"></span><span class=\"sr\">fold the list of files</span></button></h2>") | 2032 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 186, "</span><kbd aria-hidden=\"true\">g f</kbd> <button type=\"button\" class=\"btn icon fold\" data-js aria-expanded=\"true\" title=\"fold the list of files\" hx-on:click=\"ermiteMR.foldFiles()\"><span class=\"ico i-chevron\" aria-hidden=\"true\"></span><span class=\"sr\">fold the list of files</span></button></h2>") |
| 2014 | if templ_7745c5c3_Err != nil { | 2033 | if templ_7745c5c3_Err != nil { | ||
| 2015 | return templ_7745c5c3_Err | 2034 | return templ_7745c5c3_Err | ||
| 2016 | } | 2035 | } | ||
| @@ -2018,71 +2037,71 @@ func mrRail(p MRPage) templ.Component { | |||||
| 2018 | if templ_7745c5c3_Err != nil { | 2037 | if templ_7745c5c3_Err != nil { | ||
| 2019 | return templ_7745c5c3_Err | 2038 | return templ_7745c5c3_Err | ||
| 2020 | } | 2039 | } | ||
| 2021 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 185, "</section>") | 2040 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 187, "</section>") |
| 2022 | if templ_7745c5c3_Err != nil { | 2041 | if templ_7745c5c3_Err != nil { | ||
| 2023 | return templ_7745c5c3_Err | 2042 | return templ_7745c5c3_Err | ||
| 2024 | } | 2043 | } | ||
| 2025 | if len(p.Verdicts) > 0 { | 2044 | if len(p.Verdicts) > 0 { | ||
| 2026 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 186, "<section><h2>Verdicts</h2><ul>") | 2045 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 188, "<section><h2>Verdicts</h2><ul>") |
| 2027 | if templ_7745c5c3_Err != nil { | 2046 | if templ_7745c5c3_Err != nil { | ||
| 2028 | return templ_7745c5c3_Err | 2047 | return templ_7745c5c3_Err | ||
| 2029 | } | 2048 | } | ||
| 2030 | for _, v := range p.Verdicts { | 2049 | for _, v := range p.Verdicts { | ||
| 2031 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 187, "<li><a href=\"") | 2050 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 189, "<li><a href=\"") |
| 2032 | if templ_7745c5c3_Err != nil { | 2051 | if templ_7745c5c3_Err != nil { | ||
| 2033 | return templ_7745c5c3_Err | 2052 | return templ_7745c5c3_Err | ||
| 2034 | } | 2053 | } | ||
| 2035 | - | var templ_7745c5c3_Var98 templ.SafeURL | 2054 | + | var templ_7745c5c3_Var99 templ.SafeURL |
| 2036 | - | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(v.Href)) | 2055 | + | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(v.Href)) |
| 2037 | if templ_7745c5c3_Err != nil { | 2056 | if templ_7745c5c3_Err != nil { | ||
| 2038 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 380, Col: 37} | 2057 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 383, Col: 37} |
| 2039 | } | 2058 | } | ||
| 2040 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) | 2059 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) |
| 2041 | if templ_7745c5c3_Err != nil { | 2060 | if templ_7745c5c3_Err != nil { | ||
| 2042 | return templ_7745c5c3_Err | 2061 | return templ_7745c5c3_Err | ||
| 2043 | } | 2062 | } | ||
| 2044 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 188, "\">") | 2063 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 190, "\">") |
| 2045 | if templ_7745c5c3_Err != nil { | 2064 | if templ_7745c5c3_Err != nil { | ||
| 2046 | return templ_7745c5c3_Err | 2065 | return templ_7745c5c3_Err | ||
| 2047 | } | 2066 | } | ||
| 2048 | - | var templ_7745c5c3_Var99 string | 2067 | + | var templ_7745c5c3_Var100 string |
| 2049 | - | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinStringErrs(v.Author) | 2068 | + | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.JoinStringErrs(v.Author) |
| 2050 | if templ_7745c5c3_Err != nil { | 2069 | if templ_7745c5c3_Err != nil { | ||
| 2051 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 380, Col: 50} | 2070 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 383, Col: 50} |
| 2052 | } | 2071 | } | ||
| 2053 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) | 2072 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var100)) |
| 2054 | if templ_7745c5c3_Err != nil { | 2073 | if templ_7745c5c3_Err != nil { | ||
| 2055 | return templ_7745c5c3_Err | 2074 | return templ_7745c5c3_Err | ||
| 2056 | } | 2075 | } | ||
| 2057 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 189, ": ") | 2076 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 191, ": ") |
| 2058 | if templ_7745c5c3_Err != nil { | 2077 | if templ_7745c5c3_Err != nil { | ||
| 2059 | return templ_7745c5c3_Err | 2078 | return templ_7745c5c3_Err | ||
| 2060 | } | 2079 | } | ||
| 2061 | - | var templ_7745c5c3_Var100 string | 2080 | + | var templ_7745c5c3_Var101 string |
| 2062 | - | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.JoinStringErrs(v.Label) | 2081 | + | templ_7745c5c3_Var101, templ_7745c5c3_Err = templ.JoinStringErrs(v.Label) |
| 2063 | if templ_7745c5c3_Err != nil { | 2082 | if templ_7745c5c3_Err != nil { | ||
| 2064 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 380, Col: 63} | 2083 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 383, Col: 63} |
| 2065 | } | 2084 | } | ||
| 2066 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var100)) | 2085 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var101)) |
| 2067 | if templ_7745c5c3_Err != nil { | 2086 | if templ_7745c5c3_Err != nil { | ||
| 2068 | return templ_7745c5c3_Err | 2087 | return templ_7745c5c3_Err | ||
| 2069 | } | 2088 | } | ||
| 2070 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 190, "</a> ") | 2089 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 192, "</a> ") |
| 2071 | if templ_7745c5c3_Err != nil { | 2090 | if templ_7745c5c3_Err != nil { | ||
| 2072 | return templ_7745c5c3_Err | 2091 | return templ_7745c5c3_Err | ||
| 2073 | } | 2092 | } | ||
| 2074 | if v.Stale { | 2093 | if v.Stale { | ||
| 2075 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 191, "<span class=\"mute\">(stale)</span>") | 2094 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 193, "<span class=\"mute\">(stale)</span>") |
| 2076 | if templ_7745c5c3_Err != nil { | 2095 | if templ_7745c5c3_Err != nil { | ||
| 2077 | return templ_7745c5c3_Err | 2096 | return templ_7745c5c3_Err | ||
| 2078 | } | 2097 | } | ||
| 2079 | } | 2098 | } | ||
| 2080 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 192, "</li>") | 2099 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 194, "</li>") |
| 2081 | if templ_7745c5c3_Err != nil { | 2100 | if templ_7745c5c3_Err != nil { | ||
| 2082 | return templ_7745c5c3_Err | 2101 | return templ_7745c5c3_Err | ||
| 2083 | } | 2102 | } | ||
| 2084 | } | 2103 | } | ||
| 2085 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 193, "</ul></section>") | 2104 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 195, "</ul></section>") |
| 2086 | if templ_7745c5c3_Err != nil { | 2105 | if templ_7745c5c3_Err != nil { | ||
| 2087 | return templ_7745c5c3_Err | 2106 | return templ_7745c5c3_Err | ||
| 2088 | } | 2107 | } | ||
| @@ -2091,74 +2110,74 @@ func mrRail(p MRPage) templ.Component { | |||||
| 2091 | if templ_7745c5c3_Err != nil { | 2110 | if templ_7745c5c3_Err != nil { | ||
| 2092 | return templ_7745c5c3_Err | 2111 | return templ_7745c5c3_Err | ||
| 2093 | } | 2112 | } | ||
| 2094 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 194, "<section aria-labelledby=\"r-commits\"><h2 id=\"r-commits\">Commits <span class=\"count\">") | 2113 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 196, "<section aria-labelledby=\"r-commits\"><h2 id=\"r-commits\">Commits <span class=\"count\">") |
| 2095 | if templ_7745c5c3_Err != nil { | 2114 | if templ_7745c5c3_Err != nil { | ||
| 2096 | return templ_7745c5c3_Err | 2115 | return templ_7745c5c3_Err | ||
| 2097 | } | 2116 | } | ||
| 2098 | - | var templ_7745c5c3_Var101 string | 2117 | + | var templ_7745c5c3_Var102 string |
| 2099 | - | templ_7745c5c3_Var101, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Commits))) | 2118 | + | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Commits))) |
| 2100 | if templ_7745c5c3_Err != nil { | 2119 | if templ_7745c5c3_Err != nil { | ||
| 2101 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 391, Col: 71} | 2120 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 394, Col: 71} |
| 2102 | } | 2121 | } | ||
| 2103 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var101)) | 2122 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) |
| 2104 | if templ_7745c5c3_Err != nil { | 2123 | if templ_7745c5c3_Err != nil { | ||
| 2105 | return templ_7745c5c3_Err | 2124 | return templ_7745c5c3_Err | ||
| 2106 | } | 2125 | } | ||
| 2107 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 195, "</span></h2><ul class=\"pcommits\">") | 2126 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 197, "</span></h2><ul class=\"pcommits\">") |
| 2108 | if templ_7745c5c3_Err != nil { | 2127 | if templ_7745c5c3_Err != nil { | ||
| 2109 | return templ_7745c5c3_Err | 2128 | return templ_7745c5c3_Err | ||
| 2110 | } | 2129 | } | ||
| 2111 | for _, c := range p.Commits { | 2130 | for _, c := range p.Commits { | ||
| 2112 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 196, "<li") | 2131 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 198, "<li") |
| 2113 | if templ_7745c5c3_Err != nil { | 2132 | if templ_7745c5c3_Err != nil { | ||
| 2114 | return templ_7745c5c3_Err | 2133 | return templ_7745c5c3_Err | ||
| 2115 | } | 2134 | } | ||
| 2116 | if c.New { | 2135 | if c.New { | ||
| 2117 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 197, " data-new") | 2136 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 199, " data-new") |
| 2118 | if templ_7745c5c3_Err != nil { | 2137 | if templ_7745c5c3_Err != nil { | ||
| 2119 | return templ_7745c5c3_Err | 2138 | return templ_7745c5c3_Err | ||
| 2120 | } | 2139 | } | ||
| 2121 | } | 2140 | } | ||
| 2122 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 198, "><a href=\"") | 2141 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 200, "><a href=\"") |
| 2123 | if templ_7745c5c3_Err != nil { | 2142 | if templ_7745c5c3_Err != nil { | ||
| 2124 | return templ_7745c5c3_Err | 2143 | return templ_7745c5c3_Err | ||
| 2125 | } | 2144 | } | ||
| 2126 | - | var templ_7745c5c3_Var102 templ.SafeURL | 2145 | + | var templ_7745c5c3_Var103 templ.SafeURL |
| 2127 | - | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Href)) | 2146 | + | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Href)) |
| 2128 | if templ_7745c5c3_Err != nil { | 2147 | if templ_7745c5c3_Err != nil { | ||
| 2129 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 395, Col: 36} | 2148 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 398, Col: 36} |
| 2130 | } | 2149 | } | ||
| 2131 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) | 2150 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) |
| 2132 | if templ_7745c5c3_Err != nil { | 2151 | if templ_7745c5c3_Err != nil { | ||
| 2133 | return templ_7745c5c3_Err | 2152 | return templ_7745c5c3_Err | ||
| 2134 | } | 2153 | } | ||
| 2135 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 199, "\">") | 2154 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 201, "\">") |
| 2136 | if templ_7745c5c3_Err != nil { | 2155 | if templ_7745c5c3_Err != nil { | ||
| 2137 | return templ_7745c5c3_Err | 2156 | return templ_7745c5c3_Err | ||
| 2138 | } | 2157 | } | ||
| 2139 | - | var templ_7745c5c3_Var103 string | 2158 | + | var templ_7745c5c3_Var104 string |
| 2140 | - | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | 2159 | + | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) |
| 2141 | if templ_7745c5c3_Err != nil { | 2160 | if templ_7745c5c3_Err != nil { | ||
| 2142 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 395, Col: 48} | 2161 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 398, Col: 48} |
| 2143 | } | 2162 | } | ||
| 2144 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | 2163 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) |
| 2145 | if templ_7745c5c3_Err != nil { | 2164 | if templ_7745c5c3_Err != nil { | ||
| 2146 | return templ_7745c5c3_Err | 2165 | return templ_7745c5c3_Err | ||
| 2147 | } | 2166 | } | ||
| 2148 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 200, "</a> <span class=\"s\">") | 2167 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 202, "</a> <span class=\"s\">") |
| 2149 | if templ_7745c5c3_Err != nil { | 2168 | if templ_7745c5c3_Err != nil { | ||
| 2150 | return templ_7745c5c3_Err | 2169 | return templ_7745c5c3_Err | ||
| 2151 | } | 2170 | } | ||
| 2152 | - | var templ_7745c5c3_Var104 string | 2171 | + | var templ_7745c5c3_Var105 string |
| 2153 | - | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | 2172 | + | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) |
| 2154 | if templ_7745c5c3_Err != nil { | 2173 | if templ_7745c5c3_Err != nil { | ||
| 2155 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 396, Col: 32} | 2174 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 399, Col: 32} |
| 2156 | } | 2175 | } | ||
| 2157 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | 2176 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) |
| 2158 | if templ_7745c5c3_Err != nil { | 2177 | if templ_7745c5c3_Err != nil { | ||
| 2159 | return templ_7745c5c3_Err | 2178 | return templ_7745c5c3_Err | ||
| 2160 | } | 2179 | } | ||
| 2161 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 201, "</span> ") | 2180 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 203, "</span> ") |
| 2162 | if templ_7745c5c3_Err != nil { | 2181 | if templ_7745c5c3_Err != nil { | ||
| 2163 | return templ_7745c5c3_Err | 2182 | return templ_7745c5c3_Err | ||
| 2164 | } | 2183 | } | ||
| @@ -2168,138 +2187,138 @@ func mrRail(p MRPage) templ.Component { | |||||
| 2168 | return templ_7745c5c3_Err | 2187 | return templ_7745c5c3_Err | ||
| 2169 | } | 2188 | } | ||
| 2170 | } | 2189 | } | ||
| 2171 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 202, "<span class=\"mute\">") | 2190 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 204, "<span class=\"mute\">") |
| 2172 | if templ_7745c5c3_Err != nil { | 2191 | if templ_7745c5c3_Err != nil { | ||
| 2173 | return templ_7745c5c3_Err | 2192 | return templ_7745c5c3_Err | ||
| 2174 | } | 2193 | } | ||
| 2175 | - | var templ_7745c5c3_Var105 string | 2194 | + | var templ_7745c5c3_Var106 string |
| 2176 | - | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | 2195 | + | templ_7745c5c3_Var106, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) |
| 2177 | if templ_7745c5c3_Err != nil { | 2196 | if templ_7745c5c3_Err != nil { | ||
| 2178 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 401, Col: 16} | 2197 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 404, Col: 16} |
| 2179 | } | 2198 | } | ||
| 2180 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) | 2199 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var106)) |
| 2181 | if templ_7745c5c3_Err != nil { | 2200 | if templ_7745c5c3_Err != nil { | ||
| 2182 | return templ_7745c5c3_Err | 2201 | return templ_7745c5c3_Err | ||
| 2183 | } | 2202 | } | ||
| 2184 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 203, " ") | 2203 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 205, " ") |
| 2185 | if templ_7745c5c3_Err != nil { | 2204 | if templ_7745c5c3_Err != nil { | ||
| 2186 | return templ_7745c5c3_Err | 2205 | return templ_7745c5c3_Err | ||
| 2187 | } | 2206 | } | ||
| 2188 | if c.WhenAt != "" { | 2207 | if c.WhenAt != "" { | ||
| 2189 | - | var templ_7745c5c3_Var106 string | 2208 | + | var templ_7745c5c3_Var107 string |
| 2190 | - | templ_7745c5c3_Var106, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | 2209 | + | templ_7745c5c3_Var107, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") |
| 2191 | if templ_7745c5c3_Err != nil { | 2210 | if templ_7745c5c3_Err != nil { | ||
| 2192 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 403, Col: 15} | 2211 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 406, Col: 15} |
| 2193 | } | 2212 | } | ||
| 2194 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var106)) | 2213 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var107)) |
| 2195 | if templ_7745c5c3_Err != nil { | 2214 | if templ_7745c5c3_Err != nil { | ||
| 2196 | return templ_7745c5c3_Err | 2215 | return templ_7745c5c3_Err | ||
| 2197 | } | 2216 | } | ||
| 2198 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 204, "<time datetime=\"") | 2217 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 206, "<time datetime=\"") |
| 2199 | if templ_7745c5c3_Err != nil { | 2218 | if templ_7745c5c3_Err != nil { | ||
| 2200 | return templ_7745c5c3_Err | 2219 | return templ_7745c5c3_Err | ||
| 2201 | } | 2220 | } | ||
| 2202 | - | var templ_7745c5c3_Var107 string | 2221 | + | var templ_7745c5c3_Var108 string |
| 2203 | - | templ_7745c5c3_Var107, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | 2222 | + | templ_7745c5c3_Var108, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) |
| 2204 | if templ_7745c5c3_Err != nil { | 2223 | if templ_7745c5c3_Err != nil { | ||
| 2205 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 403, Col: 42} | 2224 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 406, Col: 42} |
| 2206 | } | 2225 | } | ||
| 2207 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var107) | 2226 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var108) |
| 2208 | if templ_7745c5c3_Err != nil { | 2227 | if templ_7745c5c3_Err != nil { | ||
| 2209 | return templ_7745c5c3_Err | 2228 | return templ_7745c5c3_Err | ||
| 2210 | } | 2229 | } | ||
| 2211 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 205, "\">") | 2230 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 207, "\">") |
| 2212 | if templ_7745c5c3_Err != nil { | 2231 | if templ_7745c5c3_Err != nil { | ||
| 2213 | return templ_7745c5c3_Err | 2232 | return templ_7745c5c3_Err | ||
| 2214 | } | 2233 | } | ||
| 2215 | - | var templ_7745c5c3_Var108 string | 2234 | + | var templ_7745c5c3_Var109 string |
| 2216 | - | templ_7745c5c3_Var108, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | 2235 | + | templ_7745c5c3_Var109, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) |
| 2217 | if templ_7745c5c3_Err != nil { | 2236 | if templ_7745c5c3_Err != nil { | ||
| 2218 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 403, Col: 53} | 2237 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 406, Col: 53} |
| 2219 | } | 2238 | } | ||
| 2220 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var108)) | 2239 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var109)) |
| 2221 | if templ_7745c5c3_Err != nil { | 2240 | if templ_7745c5c3_Err != nil { | ||
| 2222 | return templ_7745c5c3_Err | 2241 | return templ_7745c5c3_Err | ||
| 2223 | } | 2242 | } | ||
| 2224 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 206, "</time> ") | 2243 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 208, "</time> ") |
| 2225 | if templ_7745c5c3_Err != nil { | 2244 | if templ_7745c5c3_Err != nil { | ||
| 2226 | return templ_7745c5c3_Err | 2245 | return templ_7745c5c3_Err | ||
| 2227 | } | 2246 | } | ||
| 2228 | } | 2247 | } | ||
| 2229 | if c.New { | 2248 | if c.New { | ||
| 2230 | - | var templ_7745c5c3_Var109 string | 2249 | + | var templ_7745c5c3_Var110 string |
| 2231 | - | templ_7745c5c3_Var109, templ_7745c5c3_Err = templ.JoinStringErrs(" · new") | 2250 | + | templ_7745c5c3_Var110, templ_7745c5c3_Err = templ.JoinStringErrs(" · new") |
| 2232 | if templ_7745c5c3_Err != nil { | 2251 | if templ_7745c5c3_Err != nil { | ||
| 2233 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 406, Col: 18} | 2252 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 409, Col: 18} |
| 2234 | } | 2253 | } | ||
| 2235 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var109)) | 2254 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var110)) |
| 2236 | if templ_7745c5c3_Err != nil { | 2255 | if templ_7745c5c3_Err != nil { | ||
| 2237 | return templ_7745c5c3_Err | 2256 | return templ_7745c5c3_Err | ||
| 2238 | } | 2257 | } | ||
| 2239 | } | 2258 | } | ||
| 2240 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 207, "</span></li>") | 2259 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 209, "</span></li>") |
| 2241 | if templ_7745c5c3_Err != nil { | 2260 | if templ_7745c5c3_Err != nil { | ||
| 2242 | return templ_7745c5c3_Err | 2261 | return templ_7745c5c3_Err | ||
| 2243 | } | 2262 | } | ||
| 2244 | } | 2263 | } | ||
| 2245 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 208, "</ul>") | 2264 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 210, "</ul>") |
| 2246 | if templ_7745c5c3_Err != nil { | 2265 | if templ_7745c5c3_Err != nil { | ||
| 2247 | return templ_7745c5c3_Err | 2266 | return templ_7745c5c3_Err | ||
| 2248 | } | 2267 | } | ||
| 2249 | if len(p.Commits) == 0 { | 2268 | if len(p.Commits) == 0 { | ||
| 2250 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 209, "<p class=\"dim\">no commit to merge.</p>") | 2269 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 211, "<p class=\"dim\">no commit to merge.</p>") |
| 2251 | if templ_7745c5c3_Err != nil { | 2270 | if templ_7745c5c3_Err != nil { | ||
| 2252 | return templ_7745c5c3_Err | 2271 | return templ_7745c5c3_Err | ||
| 2253 | } | 2272 | } | ||
| 2254 | } | 2273 | } | ||
| 2255 | if p.CommitsNote != "" { | 2274 | if p.CommitsNote != "" { | ||
| 2256 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 210, "<p class=\"note\">") | 2275 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 212, "<p class=\"note\">") |
| 2257 | if templ_7745c5c3_Err != nil { | 2276 | if templ_7745c5c3_Err != nil { | ||
| 2258 | return templ_7745c5c3_Err | 2277 | return templ_7745c5c3_Err | ||
| 2259 | } | 2278 | } | ||
| 2260 | - | var templ_7745c5c3_Var110 string | 2279 | + | var templ_7745c5c3_Var111 string |
| 2261 | - | templ_7745c5c3_Var110, templ_7745c5c3_Err = templ.JoinStringErrs(p.CommitsNote) | 2280 | + | templ_7745c5c3_Var111, templ_7745c5c3_Err = templ.JoinStringErrs(p.CommitsNote) |
| 2262 | if templ_7745c5c3_Err != nil { | 2281 | if templ_7745c5c3_Err != nil { | ||
| 2263 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 416, Col: 34} | 2282 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 419, Col: 34} |
| 2264 | } | 2283 | } | ||
| 2265 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var110)) | 2284 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var111)) |
| 2266 | if templ_7745c5c3_Err != nil { | 2285 | if templ_7745c5c3_Err != nil { | ||
| 2267 | return templ_7745c5c3_Err | 2286 | return templ_7745c5c3_Err | ||
| 2268 | } | 2287 | } | ||
| 2269 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 211, "</p>") | 2288 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 213, "</p>") |
| 2270 | if templ_7745c5c3_Err != nil { | 2289 | if templ_7745c5c3_Err != nil { | ||
| 2271 | return templ_7745c5c3_Err | 2290 | return templ_7745c5c3_Err | ||
| 2272 | } | 2291 | } | ||
| 2273 | } | 2292 | } | ||
| 2274 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 212, "</section><section aria-labelledby=\"r-settings\"><h2 id=\"r-settings\">Settings</h2><dl class=\"kv\"><dt>modes</dt><dd>") | 2293 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 214, "</section><section aria-labelledby=\"r-settings\"><h2 id=\"r-settings\">Settings</h2><dl class=\"kv\"><dt>modes</dt><dd>") |
| 2275 | if templ_7745c5c3_Err != nil { | 2294 | if templ_7745c5c3_Err != nil { | ||
| 2276 | return templ_7745c5c3_Err | 2295 | return templ_7745c5c3_Err | ||
| 2277 | } | 2296 | } | ||
| 2278 | - | var templ_7745c5c3_Var111 string | 2297 | + | var templ_7745c5c3_Var112 string |
| 2279 | - | templ_7745c5c3_Var111, templ_7745c5c3_Err = templ.JoinStringErrs(strings.Join(p.Modes, ", ")) | 2298 | + | templ_7745c5c3_Var112, templ_7745c5c3_Err = templ.JoinStringErrs(strings.Join(p.Modes, ", ")) |
| 2280 | if templ_7745c5c3_Err != nil { | 2299 | if templ_7745c5c3_Err != nil { | ||
| 2281 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 423, Col: 36} | 2300 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 426, Col: 36} |
| 2282 | } | 2301 | } | ||
| 2283 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var111)) | 2302 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var112)) |
| 2284 | if templ_7745c5c3_Err != nil { | 2303 | if templ_7745c5c3_Err != nil { | ||
| 2285 | return templ_7745c5c3_Err | 2304 | return templ_7745c5c3_Err | ||
| 2286 | } | 2305 | } | ||
| 2287 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 213, "</dd><dt>checks</dt><dd>") | 2306 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 215, "</dd><dt>checks</dt><dd>") |
| 2288 | if templ_7745c5c3_Err != nil { | 2307 | if templ_7745c5c3_Err != nil { | ||
| 2289 | return templ_7745c5c3_Err | 2308 | return templ_7745c5c3_Err | ||
| 2290 | } | 2309 | } | ||
| 2291 | if p.ChecksBlock { | 2310 | if p.ChecksBlock { | ||
| 2292 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 214, "failing ones block the merge") | 2311 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 216, "failing ones block the merge") |
| 2293 | if templ_7745c5c3_Err != nil { | 2312 | if templ_7745c5c3_Err != nil { | ||
| 2294 | return templ_7745c5c3_Err | 2313 | return templ_7745c5c3_Err | ||
| 2295 | } | 2314 | } | ||
| 2296 | } else { | 2315 | } else { | ||
| 2297 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 215, "do not block the merge") | 2316 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 217, "do not block the merge") |
| 2298 | if templ_7745c5c3_Err != nil { | 2317 | if templ_7745c5c3_Err != nil { | ||
| 2299 | return templ_7745c5c3_Err | 2318 | return templ_7745c5c3_Err | ||
| 2300 | } | 2319 | } | ||
| 2301 | } | 2320 | } | ||
| 2302 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 216, "</dd></dl></section>") | 2321 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 218, "</dd></dl></section>") |
| 2303 | if templ_7745c5c3_Err != nil { | 2322 | if templ_7745c5c3_Err != nil { | ||
| 2304 | return templ_7745c5c3_Err | 2323 | return templ_7745c5c3_Err | ||
| 2305 | } | 2324 | } | ||
| @@ -2327,51 +2346,51 @@ func mrBar(p MRPage) templ.Component { | |||||
| 2327 | }() | 2346 | }() | ||
| 2328 | } | 2347 | } | ||
| 2329 | ctx = templ.InitializeContext(ctx) | 2348 | ctx = templ.InitializeContext(ctx) | ||
| 2330 | - | templ_7745c5c3_Var112 := templ.GetChildren(ctx) | 2349 | + | templ_7745c5c3_Var113 := templ.GetChildren(ctx) |
| 2331 | - | if templ_7745c5c3_Var112 == nil { | 2350 | + | if templ_7745c5c3_Var113 == nil { |
| 2332 | - | templ_7745c5c3_Var112 = templ.NopComponent | 2351 | + | templ_7745c5c3_Var113 = templ.NopComponent |
| 2333 | } | 2352 | } | ||
| 2334 | ctx = templ.ClearChildren(ctx) | 2353 | ctx = templ.ClearChildren(ctx) | ||
| 2335 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 217, "<div class=\"diff-tools mr-bar\" role=\"group\" aria-label=\"Diff view and merge\"><span class=\"dim\">") | 2354 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 219, "<div class=\"diff-tools mr-bar\" role=\"group\" aria-label=\"Diff view and merge\"><span class=\"dim\">") |
| 2336 | if templ_7745c5c3_Err != nil { | 2355 | if templ_7745c5c3_Err != nil { | ||
| 2337 | return templ_7745c5c3_Err | 2356 | return templ_7745c5c3_Err | ||
| 2338 | } | 2357 | } | ||
| 2339 | - | var templ_7745c5c3_Var113 string | 2358 | + | var templ_7745c5c3_Var114 string |
| 2340 | - | templ_7745c5c3_Var113, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | 2359 | + | templ_7745c5c3_Var114, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) |
| 2341 | if templ_7745c5c3_Err != nil { | 2360 | if templ_7745c5c3_Err != nil { | ||
| 2342 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 442, Col: 55} | 2361 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 445, Col: 55} |
| 2343 | } | 2362 | } | ||
| 2344 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var113)) | 2363 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var114)) |
| 2345 | if templ_7745c5c3_Err != nil { | 2364 | if templ_7745c5c3_Err != nil { | ||
| 2346 | return templ_7745c5c3_Err | 2365 | return templ_7745c5c3_Err | ||
| 2347 | } | 2366 | } | ||
| 2348 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 218, " · <span class=\"plus\">+") | 2367 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 220, " · <span class=\"plus\">+") |
| 2349 | if templ_7745c5c3_Err != nil { | 2368 | if templ_7745c5c3_Err != nil { | ||
| 2350 | return templ_7745c5c3_Err | 2369 | return templ_7745c5c3_Err | ||
| 2351 | } | 2370 | } | ||
| 2352 | - | var templ_7745c5c3_Var114 string | 2371 | + | var templ_7745c5c3_Var115 string |
| 2353 | - | templ_7745c5c3_Var114, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | 2372 | + | templ_7745c5c3_Var115, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) |
| 2354 | if templ_7745c5c3_Err != nil { | 2373 | if templ_7745c5c3_Err != nil { | ||
| 2355 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 442, Col: 95} | 2374 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 445, Col: 95} |
| 2356 | } | 2375 | } | ||
| 2357 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var114)) | 2376 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var115)) |
| 2358 | if templ_7745c5c3_Err != nil { | 2377 | if templ_7745c5c3_Err != nil { | ||
| 2359 | return templ_7745c5c3_Err | 2378 | return templ_7745c5c3_Err | ||
| 2360 | } | 2379 | } | ||
| 2361 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 219, "</span> <span class=\"minus\">-") | 2380 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 221, "</span> <span class=\"minus\">-") |
| 2362 | if templ_7745c5c3_Err != nil { | 2381 | if templ_7745c5c3_Err != nil { | ||
| 2363 | return templ_7745c5c3_Err | 2382 | return templ_7745c5c3_Err | ||
| 2364 | } | 2383 | } | ||
| 2365 | - | var templ_7745c5c3_Var115 string | 2384 | + | var templ_7745c5c3_Var116 string |
| 2366 | - | templ_7745c5c3_Var115, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | 2385 | + | templ_7745c5c3_Var116, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) |
| 2367 | if templ_7745c5c3_Err != nil { | 2386 | if templ_7745c5c3_Err != nil { | ||
| 2368 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 442, Col: 140} | 2387 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 445, Col: 140} |
| 2369 | } | 2388 | } | ||
| 2370 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var115)) | 2389 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var116)) |
| 2371 | if templ_7745c5c3_Err != nil { | 2390 | if templ_7745c5c3_Err != nil { | ||
| 2372 | return templ_7745c5c3_Err | 2391 | return templ_7745c5c3_Err | ||
| 2373 | } | 2392 | } | ||
| 2374 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 220, "</span></span>") | 2393 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 222, "</span></span>") |
| 2375 | if templ_7745c5c3_Err != nil { | 2394 | if templ_7745c5c3_Err != nil { | ||
| 2376 | return templ_7745c5c3_Err | 2395 | return templ_7745c5c3_Err | ||
| 2377 | } | 2396 | } | ||
| @@ -2387,7 +2406,7 @@ func mrBar(p MRPage) templ.Component { | |||||
| 2387 | if templ_7745c5c3_Err != nil { | 2406 | if templ_7745c5c3_Err != nil { | ||
| 2388 | return templ_7745c5c3_Err | 2407 | return templ_7745c5c3_Err | ||
| 2389 | } | 2408 | } | ||
| 2390 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 221, "<span class=\"grow\"></span>") | 2409 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 223, "<span class=\"grow\"></span>") |
| 2391 | if templ_7745c5c3_Err != nil { | 2410 | if templ_7745c5c3_Err != nil { | ||
| 2392 | return templ_7745c5c3_Err | 2411 | return templ_7745c5c3_Err | ||
| 2393 | } | 2412 | } | ||
| @@ -2400,7 +2419,7 @@ func mrBar(p MRPage) templ.Component { | |||||
| 2400 | if templ_7745c5c3_Err != nil { | 2419 | if templ_7745c5c3_Err != nil { | ||
| 2401 | return templ_7745c5c3_Err | 2420 | return templ_7745c5c3_Err | ||
| 2402 | } | 2421 | } | ||
| 2403 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 222, " ") | 2422 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 224, " ") |
| 2404 | if templ_7745c5c3_Err != nil { | 2423 | if templ_7745c5c3_Err != nil { | ||
| 2405 | return templ_7745c5c3_Err | 2424 | return templ_7745c5c3_Err | ||
| 2406 | } | 2425 | } | ||
| @@ -2409,7 +2428,7 @@ func mrBar(p MRPage) templ.Component { | |||||
| 2409 | return templ_7745c5c3_Err | 2428 | return templ_7745c5c3_Err | ||
| 2410 | } | 2429 | } | ||
| 2411 | } | 2430 | } | ||
| 2412 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 223, "</div>") | 2431 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 225, "</div>") |
| 2413 | if templ_7745c5c3_Err != nil { | 2432 | if templ_7745c5c3_Err != nil { | ||
| 2414 | return templ_7745c5c3_Err | 2433 | return templ_7745c5c3_Err | ||
| 2415 | } | 2434 | } | ||
| @@ -2441,107 +2460,107 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2441 | }() | 2460 | }() | ||
| 2442 | } | 2461 | } | ||
| 2443 | ctx = templ.InitializeContext(ctx) | 2462 | ctx = templ.InitializeContext(ctx) | ||
| 2444 | - | templ_7745c5c3_Var116 := templ.GetChildren(ctx) | 2463 | + | templ_7745c5c3_Var117 := templ.GetChildren(ctx) |
| 2445 | - | if templ_7745c5c3_Var116 == nil { | 2464 | + | if templ_7745c5c3_Var117 == nil { |
| 2446 | - | templ_7745c5c3_Var116 = templ.NopComponent | 2465 | + | templ_7745c5c3_Var117 = templ.NopComponent |
| 2447 | } | 2466 | } | ||
| 2448 | ctx = templ.ClearChildren(ctx) | 2467 | ctx = templ.ClearChildren(ctx) | ||
| 2449 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 224, "<details class=\"menu mmenu\" id=\"merge-menu\" data-state=\"open\"") | 2468 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 226, "<details class=\"menu mmenu\" id=\"merge-menu\" data-state=\"open\"") |
| 2450 | if templ_7745c5c3_Err != nil { | 2469 | if templ_7745c5c3_Err != nil { | ||
| 2451 | return templ_7745c5c3_Err | 2470 | return templ_7745c5c3_Err | ||
| 2452 | } | 2471 | } | ||
| 2453 | if p.Box.Error != "" { | 2472 | if p.Box.Error != "" { | ||
| 2454 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 225, " open") | 2473 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 227, " open") |
| 2455 | if templ_7745c5c3_Err != nil { | 2474 | if templ_7745c5c3_Err != nil { | ||
| 2456 | return templ_7745c5c3_Err | 2475 | return templ_7745c5c3_Err | ||
| 2457 | } | 2476 | } | ||
| 2458 | } | 2477 | } | ||
| 2459 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 226, "><summary class=\"btn primary\" aria-keyshortcuts=\"Shift+M\">") | 2478 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 228, "><summary class=\"btn primary\" aria-keyshortcuts=\"Shift+M\">") |
| 2460 | if templ_7745c5c3_Err != nil { | 2479 | if templ_7745c5c3_Err != nil { | ||
| 2461 | return templ_7745c5c3_Err | 2480 | return templ_7745c5c3_Err | ||
| 2462 | } | 2481 | } | ||
| 2463 | if p.Box.ReadyAction != "" { | 2482 | if p.Box.ReadyAction != "" { | ||
| 2464 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 227, "Draft ") | 2483 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 229, "Draft ") |
| 2465 | if templ_7745c5c3_Err != nil { | 2484 | if templ_7745c5c3_Err != nil { | ||
| 2466 | return templ_7745c5c3_Err | 2485 | return templ_7745c5c3_Err | ||
| 2467 | } | 2486 | } | ||
| 2468 | } else { | 2487 | } else { | ||
| 2469 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 228, "Merge ") | 2488 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 230, "Merge ") |
| 2470 | if templ_7745c5c3_Err != nil { | 2489 | if templ_7745c5c3_Err != nil { | ||
| 2471 | return templ_7745c5c3_Err | 2490 | return templ_7745c5c3_Err | ||
| 2472 | } | 2491 | } | ||
| 2473 | } | 2492 | } | ||
| 2474 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 229, "<kbd aria-hidden=\"true\">M</kbd></summary><div class=\"menu-pop\" role=\"group\" aria-label=\"Merge\"><dl class=\"kv\"><dt>head</dt><dd>") | 2493 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 231, "<kbd aria-hidden=\"true\">M</kbd></summary><div class=\"menu-pop\" role=\"group\" aria-label=\"Merge\"><dl class=\"kv\"><dt>head</dt><dd>") |
| 2475 | if templ_7745c5c3_Err != nil { | 2494 | if templ_7745c5c3_Err != nil { | ||
| 2476 | return templ_7745c5c3_Err | 2495 | return templ_7745c5c3_Err | ||
| 2477 | } | 2496 | } | ||
| 2478 | if p.Box.HeadGone { | 2497 | if p.Box.HeadGone { | ||
| 2479 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 230, "gone: the source branch was deleted") | 2498 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 232, "gone: the source branch was deleted") |
| 2480 | if templ_7745c5c3_Err != nil { | 2499 | if templ_7745c5c3_Err != nil { | ||
| 2481 | return templ_7745c5c3_Err | 2500 | return templ_7745c5c3_Err | ||
| 2482 | } | 2501 | } | ||
| 2483 | } else { | 2502 | } else { | ||
| 2484 | - | var templ_7745c5c3_Var117 string | 2503 | + | var templ_7745c5c3_Var118 string |
| 2485 | - | templ_7745c5c3_Var117, templ_7745c5c3_Err = templ.JoinStringErrs(p.HeadShort) | 2504 | + | templ_7745c5c3_Var118, templ_7745c5c3_Err = templ.JoinStringErrs(p.HeadShort) |
| 2486 | if templ_7745c5c3_Err != nil { | 2505 | if templ_7745c5c3_Err != nil { | ||
| 2487 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 480, Col: 19} | 2506 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 483, Col: 19} |
| 2488 | } | 2507 | } | ||
| 2489 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var117)) | 2508 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var118)) |
| 2490 | if templ_7745c5c3_Err != nil { | 2509 | if templ_7745c5c3_Err != nil { | ||
| 2491 | return templ_7745c5c3_Err | 2510 | return templ_7745c5c3_Err | ||
| 2492 | } | 2511 | } | ||
| 2493 | } | 2512 | } | ||
| 2494 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 231, "</dd><dt>into</dt><dd>") | 2513 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 233, "</dd><dt>into</dt><dd>") |
| 2495 | if templ_7745c5c3_Err != nil { | 2514 | if templ_7745c5c3_Err != nil { | ||
| 2496 | return templ_7745c5c3_Err | 2515 | return templ_7745c5c3_Err | ||
| 2497 | } | 2516 | } | ||
| 2498 | - | var templ_7745c5c3_Var118 string | 2517 | + | var templ_7745c5c3_Var119 string |
| 2499 | - | templ_7745c5c3_Var118, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 2518 | + | templ_7745c5c3_Var119, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) |
| 2500 | if templ_7745c5c3_Err != nil { | 2519 | if templ_7745c5c3_Err != nil { | ||
| 2501 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 484, Col: 18} | 2520 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 487, Col: 18} |
| 2502 | } | 2521 | } | ||
| 2503 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var118)) | 2522 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var119)) |
| 2504 | if templ_7745c5c3_Err != nil { | 2523 | if templ_7745c5c3_Err != nil { | ||
| 2505 | return templ_7745c5c3_Err | 2524 | return templ_7745c5c3_Err | ||
| 2506 | } | 2525 | } | ||
| 2507 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 232, "</dd></dl>") | 2526 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 234, "</dd></dl>") |
| 2508 | if templ_7745c5c3_Err != nil { | 2527 | if templ_7745c5c3_Err != nil { | ||
| 2509 | return templ_7745c5c3_Err | 2528 | return templ_7745c5c3_Err | ||
| 2510 | } | 2529 | } | ||
| 2511 | if p.Box.Error != "" { | 2530 | if p.Box.Error != "" { | ||
| 2512 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 233, "<p class=\"d-err\" role=\"alert\">") | 2531 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 235, "<p class=\"d-err\" role=\"alert\">") |
| 2513 | if templ_7745c5c3_Err != nil { | 2532 | if templ_7745c5c3_Err != nil { | ||
| 2514 | return templ_7745c5c3_Err | 2533 | return templ_7745c5c3_Err | ||
| 2515 | } | 2534 | } | ||
| 2516 | - | var templ_7745c5c3_Var119 string | 2535 | + | var templ_7745c5c3_Var120 string |
| 2517 | - | templ_7745c5c3_Var119, templ_7745c5c3_Err = templ.JoinStringErrs(p.Box.Error) | 2536 | + | templ_7745c5c3_Var120, templ_7745c5c3_Err = templ.JoinStringErrs(p.Box.Error) |
| 2518 | if templ_7745c5c3_Err != nil { | 2537 | if templ_7745c5c3_Err != nil { | ||
| 2519 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 487, Col: 47} | 2538 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 490, Col: 47} |
| 2520 | } | 2539 | } | ||
| 2521 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var119)) | 2540 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var120)) |
| 2522 | if templ_7745c5c3_Err != nil { | 2541 | if templ_7745c5c3_Err != nil { | ||
| 2523 | return templ_7745c5c3_Err | 2542 | return templ_7745c5c3_Err | ||
| 2524 | } | 2543 | } | ||
| 2525 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 234, "</p>") | 2544 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 236, "</p>") |
| 2526 | if templ_7745c5c3_Err != nil { | 2545 | if templ_7745c5c3_Err != nil { | ||
| 2527 | return templ_7745c5c3_Err | 2546 | return templ_7745c5c3_Err | ||
| 2528 | } | 2547 | } | ||
| 2529 | } | 2548 | } | ||
| 2530 | if p.Box.ReadyAction != "" { | 2549 | if p.Box.ReadyAction != "" { | ||
| 2531 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 235, "<p class=\"d-draft\">this is a draft: it cannot be merged until it is ready for review.</p><form class=\"d-btns\" method=\"post\" action=\"") | 2550 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 237, "<p class=\"d-draft\">this is a draft: it cannot be merged until it is ready for review.</p><form class=\"d-btns\" method=\"post\" action=\"") |
| 2532 | if templ_7745c5c3_Err != nil { | 2551 | if templ_7745c5c3_Err != nil { | ||
| 2533 | return templ_7745c5c3_Err | 2552 | return templ_7745c5c3_Err | ||
| 2534 | } | 2553 | } | ||
| 2535 | - | var templ_7745c5c3_Var120 templ.SafeURL | 2554 | + | var templ_7745c5c3_Var121 templ.SafeURL |
| 2536 | - | templ_7745c5c3_Var120, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadyAction)) | 2555 | + | templ_7745c5c3_Var121, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadyAction)) |
| 2537 | if templ_7745c5c3_Err != nil { | 2556 | if templ_7745c5c3_Err != nil { | ||
| 2538 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 491, Col: 80} | 2557 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 494, Col: 80} |
| 2539 | } | 2558 | } | ||
| 2540 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var120)) | 2559 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var121)) |
| 2541 | if templ_7745c5c3_Err != nil { | 2560 | if templ_7745c5c3_Err != nil { | ||
| 2542 | return templ_7745c5c3_Err | 2561 | return templ_7745c5c3_Err | ||
| 2543 | } | 2562 | } | ||
| 2544 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 236, "\"><button type=\"submit\" class=\"btn primary\" data-default title=\"remove the draft prefix from the title\">Ready for review</button></form>") | 2563 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 238, "\"><button type=\"submit\" class=\"btn primary\" data-default title=\"remove the draft prefix from the title\">Ready for review</button></form>") |
| 2545 | if templ_7745c5c3_Err != nil { | 2564 | if templ_7745c5c3_Err != nil { | ||
| 2546 | return templ_7745c5c3_Err | 2565 | return templ_7745c5c3_Err | ||
| 2547 | } | 2566 | } | ||
| @@ -2550,232 +2569,214 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2550 | if templ_7745c5c3_Err != nil { | 2569 | if templ_7745c5c3_Err != nil { | ||
| 2551 | return templ_7745c5c3_Err | 2570 | return templ_7745c5c3_Err | ||
| 2552 | } | 2571 | } | ||
| 2553 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 237, " <form class=\"d-acts\" method=\"post\" action=\"") | 2572 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 239, " <form class=\"d-acts\" method=\"post\" action=\"") |
| 2554 | if templ_7745c5c3_Err != nil { | 2573 | if templ_7745c5c3_Err != nil { | ||
| 2555 | return templ_7745c5c3_Err | 2574 | return templ_7745c5c3_Err | ||
| 2556 | } | 2575 | } | ||
| 2557 | - | var templ_7745c5c3_Var121 templ.SafeURL | 2576 | + | var templ_7745c5c3_Var122 templ.SafeURL |
| 2558 | - | templ_7745c5c3_Var121, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.MergeAction)) | 2577 | + | templ_7745c5c3_Var122, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.MergeAction)) |
| 2559 | if templ_7745c5c3_Err != nil { | 2578 | if templ_7745c5c3_Err != nil { | ||
| 2560 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 496, Col: 80} | 2579 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 499, Col: 80} |
| 2561 | } | 2580 | } | ||
| 2562 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var121)) | 2581 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var122)) |
| 2563 | if templ_7745c5c3_Err != nil { | 2582 | if templ_7745c5c3_Err != nil { | ||
| 2564 | return templ_7745c5c3_Err | 2583 | return templ_7745c5c3_Err | ||
| 2565 | } | 2584 | } | ||
| 2566 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 238, "\"><input type=\"hidden\" name=\"head_id\" value=\"") | 2585 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 240, "\"><input type=\"hidden\" name=\"head_id\" value=\"") |
| 2567 | if templ_7745c5c3_Err != nil { | 2586 | if templ_7745c5c3_Err != nil { | ||
| 2568 | return templ_7745c5c3_Err | 2587 | return templ_7745c5c3_Err | ||
| 2569 | } | 2588 | } | ||
| 2570 | - | var templ_7745c5c3_Var122 string | 2589 | + | var templ_7745c5c3_Var123 string |
| 2571 | - | templ_7745c5c3_Var122, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | 2590 | + | templ_7745c5c3_Var123, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) |
| 2572 | if templ_7745c5c3_Err != nil { | 2591 | if templ_7745c5c3_Err != nil { | ||
| 2573 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 497, Col: 59} | 2592 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 500, Col: 59} |
| 2574 | } | 2593 | } | ||
| 2575 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var122) | 2594 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var123) |
| 2576 | if templ_7745c5c3_Err != nil { | 2595 | if templ_7745c5c3_Err != nil { | ||
| 2577 | return templ_7745c5c3_Err | 2596 | return templ_7745c5c3_Err | ||
| 2578 | } | 2597 | } | ||
| 2579 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 239, "\"><fieldset class=\"d-modes\"><legend class=\"sr\">merge mode</legend> ") | 2598 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 241, "\"><fieldset class=\"d-modes\"><legend class=\"sr\">merge mode</legend> ") |
| 2580 | if templ_7745c5c3_Err != nil { | 2599 | if templ_7745c5c3_Err != nil { | ||
| 2581 | return templ_7745c5c3_Err | 2600 | return templ_7745c5c3_Err | ||
| 2582 | } | 2601 | } | ||
| 2583 | for i, m := range p.Box.Modes { | 2602 | for i, m := range p.Box.Modes { | ||
| 2584 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 240, "<label><input type=\"radio\" name=\"mode\" value=\"") | 2603 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 242, "<label><input type=\"radio\" name=\"mode\" value=\"") |
| 2585 | if templ_7745c5c3_Err != nil { | 2604 | if templ_7745c5c3_Err != nil { | ||
| 2586 | return templ_7745c5c3_Err | 2605 | return templ_7745c5c3_Err | ||
| 2587 | } | 2606 | } | ||
| 2588 | - | var templ_7745c5c3_Var123 string | 2607 | + | var templ_7745c5c3_Var124 string |
| 2589 | - | templ_7745c5c3_Var123, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Value) | 2608 | + | templ_7745c5c3_Var124, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Value) |
| 2590 | if templ_7745c5c3_Err != nil { | 2609 | if templ_7745c5c3_Err != nil { | ||
| 2591 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 505, Col: 24} | 2610 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 508, Col: 24} |
| 2592 | } | 2611 | } | ||
| 2593 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var123) | 2612 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var124) |
| 2594 | if templ_7745c5c3_Err != nil { | 2613 | if templ_7745c5c3_Err != nil { | ||
| 2595 | return templ_7745c5c3_Err | 2614 | return templ_7745c5c3_Err | ||
| 2596 | } | 2615 | } | ||
| 2597 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 241, "\"") | 2616 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 243, "\"") |
| 2598 | if templ_7745c5c3_Err != nil { | 2617 | if templ_7745c5c3_Err != nil { | ||
| 2599 | return templ_7745c5c3_Err | 2618 | return templ_7745c5c3_Err | ||
| 2600 | } | 2619 | } | ||
| 2601 | if i == p.Box.Checked() { | 2620 | if i == p.Box.Checked() { | ||
| 2602 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 242, " checked") | 2621 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 244, " checked") |
| 2603 | if templ_7745c5c3_Err != nil { | 2622 | if templ_7745c5c3_Err != nil { | ||
| 2604 | return templ_7745c5c3_Err | 2623 | return templ_7745c5c3_Err | ||
| 2605 | } | 2624 | } | ||
| 2606 | } | 2625 | } | ||
| 2607 | if m.Disabled { | 2626 | if m.Disabled { | ||
| 2608 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 243, " disabled") | 2627 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 245, " disabled") |
| 2609 | if templ_7745c5c3_Err != nil { | 2628 | if templ_7745c5c3_Err != nil { | ||
| 2610 | return templ_7745c5c3_Err | 2629 | return templ_7745c5c3_Err | ||
| 2611 | } | 2630 | } | ||
| 2612 | } | 2631 | } | ||
| 2613 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 244, " title=\"") | 2632 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 246, " title=\"") |
| 2614 | if templ_7745c5c3_Err != nil { | 2633 | if templ_7745c5c3_Err != nil { | ||
| 2615 | return templ_7745c5c3_Err | 2634 | return templ_7745c5c3_Err | ||
| 2616 | } | 2635 | } | ||
| 2617 | - | var templ_7745c5c3_Var124 string | 2636 | + | var templ_7745c5c3_Var125 string |
| 2618 | - | templ_7745c5c3_Var124, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Reason) | 2637 | + | templ_7745c5c3_Var125, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Reason) |
| 2619 | if templ_7745c5c3_Err != nil { | 2638 | if templ_7745c5c3_Err != nil { | ||
| 2620 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 508, Col: 25} | 2639 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 511, Col: 25} |
| 2621 | } | 2640 | } | ||
| 2622 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var124) | 2641 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var125) |
| 2623 | if templ_7745c5c3_Err != nil { | 2642 | if templ_7745c5c3_Err != nil { | ||
| 2624 | return templ_7745c5c3_Err | 2643 | return templ_7745c5c3_Err | ||
| 2625 | } | 2644 | } | ||
| 2626 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 245, "\" :disabled=\"this.value === 'fast-forward' ? q('[data-mergeability]').data.ffOk !== true : q('[data-mergeability]').data.mergeOk !== true\" :title=\"this.value === 'fast-forward' ? q('[data-mergeability]').data.ffReason : q('[data-mergeability]').data.mergeReason\"> ") | 2645 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 247, "\" :disabled=\"this.value === 'fast-forward' ? q('[data-mergeability]').data.ffOk !== true : q('[data-mergeability]').data.mergeOk !== true\" :title=\"this.value === 'fast-forward' ? q('[data-mergeability]').data.ffReason : q('[data-mergeability]').data.mergeReason\"> ") |
| 2627 | if templ_7745c5c3_Err != nil { | 2646 | if templ_7745c5c3_Err != nil { | ||
| 2628 | return templ_7745c5c3_Err | 2647 | return templ_7745c5c3_Err | ||
| 2629 | } | 2648 | } | ||
| 2630 | - | var templ_7745c5c3_Var125 string | 2649 | + | var templ_7745c5c3_Var126 string |
| 2631 | - | templ_7745c5c3_Var125, templ_7745c5c3_Err = templ.JoinStringErrs(m.Label) | 2650 | + | templ_7745c5c3_Var126, templ_7745c5c3_Err = templ.JoinStringErrs(m.Label) |
| 2632 | if templ_7745c5c3_Err != nil { | 2651 | if templ_7745c5c3_Err != nil { | ||
| 2633 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 512, Col: 17} | 2652 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 515, Col: 17} |
| 2634 | } | 2653 | } | ||
| 2635 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var125)) | 2654 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var126)) |
| 2636 | if templ_7745c5c3_Err != nil { | 2655 | if templ_7745c5c3_Err != nil { | ||
| 2637 | return templ_7745c5c3_Err | 2656 | return templ_7745c5c3_Err | ||
| 2638 | } | 2657 | } | ||
| 2639 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 246, " ") | 2658 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 248, " ") |
| 2640 | if templ_7745c5c3_Err != nil { | 2659 | if templ_7745c5c3_Err != nil { | ||
| 2641 | return templ_7745c5c3_Err | 2660 | return templ_7745c5c3_Err | ||
| 2642 | } | 2661 | } | ||
| 2643 | if i < 9 { | 2662 | if i < 9 { | ||
| 2644 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 247, "<kbd aria-hidden=\"true\">") | 2663 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 249, "<kbd aria-hidden=\"true\">") |
| 2645 | if templ_7745c5c3_Err != nil { | 2664 | if templ_7745c5c3_Err != nil { | ||
| 2646 | return templ_7745c5c3_Err | 2665 | return templ_7745c5c3_Err | ||
| 2647 | } | 2666 | } | ||
| 2648 | - | var templ_7745c5c3_Var126 string | 2667 | + | var templ_7745c5c3_Var127 string |
| 2649 | - | templ_7745c5c3_Var126, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(i + 1)) | 2668 | + | templ_7745c5c3_Var127, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(i + 1)) |
| 2650 | if templ_7745c5c3_Err != nil { | 2669 | if templ_7745c5c3_Err != nil { | ||
| 2651 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 514, Col: 46} | 2670 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 517, Col: 46} |
| 2652 | } | 2671 | } | ||
| 2653 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var126)) | 2672 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var127)) |
| 2654 | if templ_7745c5c3_Err != nil { | 2673 | if templ_7745c5c3_Err != nil { | ||
| 2655 | return templ_7745c5c3_Err | 2674 | return templ_7745c5c3_Err | ||
| 2656 | } | 2675 | } | ||
| 2657 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 248, "</kbd>") | 2676 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 250, "</kbd>") |
| 2658 | if templ_7745c5c3_Err != nil { | 2677 | if templ_7745c5c3_Err != nil { | ||
| 2659 | return templ_7745c5c3_Err | 2678 | return templ_7745c5c3_Err | ||
| 2660 | } | 2679 | } | ||
| 2661 | } | 2680 | } | ||
| 2662 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 249, "</label>") | 2681 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 251, "</label>") |
| 2663 | if templ_7745c5c3_Err != nil { | 2682 | if templ_7745c5c3_Err != nil { | ||
| 2664 | return templ_7745c5c3_Err | 2683 | return templ_7745c5c3_Err | ||
| 2665 | } | 2684 | } | ||
| 2666 | } | 2685 | } | ||
| 2667 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 250, "</fieldset>") | 2686 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 252, "</fieldset>") |
| 2668 | if templ_7745c5c3_Err != nil { | 2687 | if templ_7745c5c3_Err != nil { | ||
| 2669 | return templ_7745c5c3_Err | 2688 | return templ_7745c5c3_Err | ||
| 2670 | } | 2689 | } | ||
| 2671 | if p.Box.Signed { | 2690 | if p.Box.Signed { | ||
| 2672 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 251, "<p class=\"d-note\" id=\"mr-signing\">squash and merge commits are signed with ermite's own key, generated automatically on first start. ") | 2691 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 253, "<p class=\"d-note\" id=\"mr-signing\">squash and merge commits are signed with ermite's own key (generated on first start). ") |
| 2673 | if templ_7745c5c3_Err != nil { | 2692 | if templ_7745c5c3_Err != nil { | ||
| 2674 | return templ_7745c5c3_Err | 2693 | return templ_7745c5c3_Err | ||
| 2675 | } | 2694 | } | ||
| 2676 | if p.Box.Fingerprint != "" { | 2695 | if p.Box.Fingerprint != "" { | ||
| 2677 | - | var templ_7745c5c3_Var127 string | 2696 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 254, "fingerprint <code>") |
| 2678 | - | templ_7745c5c3_Var127, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |||
| 2679 | - | if templ_7745c5c3_Err != nil { | |||
| 2680 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 523, Col: 13} | |||
| 2681 | - | } | |||
| 2682 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var127)) | |||
| 2683 | - | if templ_7745c5c3_Err != nil { | |||
| 2684 | - | return templ_7745c5c3_Err | |||
| 2685 | - | } | |||
| 2686 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 252, "key <code>") | |||
| 2687 | if templ_7745c5c3_Err != nil { | 2697 | if templ_7745c5c3_Err != nil { | ||
| 2688 | return templ_7745c5c3_Err | 2698 | return templ_7745c5c3_Err | ||
| 2689 | } | 2699 | } | ||
| 2690 | var templ_7745c5c3_Var128 string | 2700 | var templ_7745c5c3_Var128 string | ||
| 2691 | templ_7745c5c3_Var128, templ_7745c5c3_Err = templ.JoinStringErrs(p.Box.Fingerprint) | 2701 | templ_7745c5c3_Var128, templ_7745c5c3_Err = templ.JoinStringErrs(p.Box.Fingerprint) | ||
| 2692 | if templ_7745c5c3_Err != nil { | 2702 | if templ_7745c5c3_Err != nil { | ||
| 2693 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 523, Col: 44} | 2703 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 526, Col: 45} |
| 2694 | } | 2704 | } | ||
| 2695 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var128)) | 2705 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var128)) | ||
| 2696 | if templ_7745c5c3_Err != nil { | 2706 | if templ_7745c5c3_Err != nil { | ||
| 2697 | return templ_7745c5c3_Err | 2707 | return templ_7745c5c3_Err | ||
| 2698 | } | 2708 | } | ||
| 2699 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 253, "</code>. ") | 2709 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 255, "</code> ") |
| 2700 | if templ_7745c5c3_Err != nil { | 2710 | if templ_7745c5c3_Err != nil { | ||
| 2701 | return templ_7745c5c3_Err | 2711 | return templ_7745c5c3_Err | ||
| 2702 | } | 2712 | } | ||
| 2703 | } | 2713 | } | ||
| 2704 | - | var templ_7745c5c3_Var129 string | 2714 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 256, "<code>ermite signing-key show</code> prints it.</p>") |
| 2705 | - | templ_7745c5c3_Var129, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |||
| 2706 | - | if templ_7745c5c3_Err != nil { | |||
| 2707 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 525, Col: 12} | |||
| 2708 | - | } | |||
| 2709 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var129)) | |||
| 2710 | - | if templ_7745c5c3_Err != nil { | |||
| 2711 | - | return templ_7745c5c3_Err | |||
| 2712 | - | } | |||
| 2713 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 254, "<code>ermite signing-key show</code> prints the public key to verify them.</p>") | |||
| 2714 | if templ_7745c5c3_Err != nil { | 2715 | if templ_7745c5c3_Err != nil { | ||
| 2715 | return templ_7745c5c3_Err | 2716 | return templ_7745c5c3_Err | ||
| 2716 | } | 2717 | } | ||
| 2717 | } | 2718 | } | ||
| 2718 | if p.Box.CanDeleteBranch { | 2719 | if p.Box.CanDeleteBranch { | ||
| 2719 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 255, "<label class=\"d-check\"><input type=\"checkbox\" name=\"delete_branch\" value=\"1\"> delete ") | 2720 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 257, "<label class=\"d-check\"><input type=\"checkbox\" name=\"delete_branch\" value=\"1\"> delete ") |
| 2720 | if templ_7745c5c3_Err != nil { | 2721 | if templ_7745c5c3_Err != nil { | ||
| 2721 | return templ_7745c5c3_Err | 2722 | return templ_7745c5c3_Err | ||
| 2722 | } | 2723 | } | ||
| 2723 | - | var templ_7745c5c3_Var130 string | 2724 | + | var templ_7745c5c3_Var129 string |
| 2724 | - | templ_7745c5c3_Var130, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | 2725 | + | templ_7745c5c3_Var129, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) |
| 2725 | if templ_7745c5c3_Err != nil { | 2726 | if templ_7745c5c3_Err != nil { | ||
| 2726 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 529, Col: 102} | 2727 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 532, Col: 102} |
| 2727 | } | 2728 | } | ||
| 2728 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var130)) | 2729 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var129)) |
| 2729 | if templ_7745c5c3_Err != nil { | 2730 | if templ_7745c5c3_Err != nil { | ||
| 2730 | return templ_7745c5c3_Err | 2731 | return templ_7745c5c3_Err | ||
| 2731 | } | 2732 | } | ||
| 2732 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 256, " after the merge <kbd aria-hidden=\"true\">D</kbd></label>") | 2733 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 258, " after the merge <kbd aria-hidden=\"true\">D</kbd></label>") |
| 2733 | if templ_7745c5c3_Err != nil { | 2734 | if templ_7745c5c3_Err != nil { | ||
| 2734 | return templ_7745c5c3_Err | 2735 | return templ_7745c5c3_Err | ||
| 2735 | } | 2736 | } | ||
| 2736 | } | 2737 | } | ||
| 2737 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 257, "<div class=\"d-btns\"><button type=\"submit\" class=\"btn primary\" data-default") | 2738 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 259, "<div class=\"d-btns\"><button type=\"submit\" class=\"btn primary\" data-default") |
| 2738 | if templ_7745c5c3_Err != nil { | 2739 | if templ_7745c5c3_Err != nil { | ||
| 2739 | return templ_7745c5c3_Err | 2740 | return templ_7745c5c3_Err | ||
| 2740 | } | 2741 | } | ||
| 2741 | if !p.Box.CanMerge() { | 2742 | if !p.Box.CanMerge() { | ||
| 2742 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 258, " disabled") | 2743 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 260, " disabled") |
| 2743 | if templ_7745c5c3_Err != nil { | 2744 | if templ_7745c5c3_Err != nil { | ||
| 2744 | return templ_7745c5c3_Err | 2745 | return templ_7745c5c3_Err | ||
| 2745 | } | 2746 | } | ||
| 2746 | } | 2747 | } | ||
| 2747 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 259, " title=\"") | 2748 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 261, " title=\"") |
| 2748 | if templ_7745c5c3_Err != nil { | 2749 | if templ_7745c5c3_Err != nil { | ||
| 2749 | return templ_7745c5c3_Err | 2750 | return templ_7745c5c3_Err | ||
| 2750 | } | 2751 | } | ||
| 2751 | - | var templ_7745c5c3_Var131 string | 2752 | + | var templ_7745c5c3_Var130 string |
| 2752 | - | templ_7745c5c3_Var131, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.MergeTitle()) | 2753 | + | templ_7745c5c3_Var130, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.MergeTitle()) |
| 2753 | if templ_7745c5c3_Err != nil { | 2754 | if templ_7745c5c3_Err != nil { | ||
| 2754 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 537, Col: 33} | 2755 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 540, Col: 33} |
| 2755 | } | 2756 | } | ||
| 2756 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var131) | 2757 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var130) |
| 2757 | if templ_7745c5c3_Err != nil { | 2758 | if templ_7745c5c3_Err != nil { | ||
| 2758 | return templ_7745c5c3_Err | 2759 | return templ_7745c5c3_Err | ||
| 2759 | } | 2760 | } | ||
| 2760 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 260, "\" :disabled=\"!this.form.querySelector('input[name=mode]:checked:not(:disabled)')\" :title=\"(this.form.querySelector('input[name=mode]:checked') || {}).title || ''\">Merge into ") | 2761 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 262, "\" :disabled=\"!this.form.querySelector('input[name=mode]:checked:not(:disabled)')\" :title=\"(this.form.querySelector('input[name=mode]:checked') || {}).title || ''\">Merge into ") |
| 2761 | if templ_7745c5c3_Err != nil { | 2762 | if templ_7745c5c3_Err != nil { | ||
| 2762 | return templ_7745c5c3_Err | 2763 | return templ_7745c5c3_Err | ||
| 2763 | } | 2764 | } | ||
| 2764 | - | var templ_7745c5c3_Var132 string | 2765 | + | var templ_7745c5c3_Var131 string |
| 2765 | - | templ_7745c5c3_Var132, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 2766 | + | templ_7745c5c3_Var131, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) |
| 2766 | if templ_7745c5c3_Err != nil { | 2767 | if templ_7745c5c3_Err != nil { | ||
| 2767 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 540, Col: 28} | 2768 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 543, Col: 28} |
| 2768 | } | 2769 | } | ||
| 2769 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var132)) | 2770 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var131)) |
| 2770 | if templ_7745c5c3_Err != nil { | 2771 | if templ_7745c5c3_Err != nil { | ||
| 2771 | return templ_7745c5c3_Err | 2772 | return templ_7745c5c3_Err | ||
| 2772 | } | 2773 | } | ||
| 2773 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 261, "</button></div></form>") | 2774 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 263, "</button></div></form>") |
| 2774 | if templ_7745c5c3_Err != nil { | 2775 | if templ_7745c5c3_Err != nil { | ||
| 2775 | return templ_7745c5c3_Err | 2776 | return templ_7745c5c3_Err | ||
| 2776 | } | 2777 | } | ||
| 2777 | } | 2778 | } | ||
| 2778 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 262, "</div></details>") | 2779 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 264, "</div></details>") |
| 2779 | if templ_7745c5c3_Err != nil { | 2780 | if templ_7745c5c3_Err != nil { | ||
| 2780 | return templ_7745c5c3_Err | 2781 | return templ_7745c5c3_Err | ||
| 2781 | } | 2782 | } | ||
| @@ -2801,182 +2802,182 @@ func MRMergeability(v MergeabilityView) templ.Component { | |||||
| 2801 | }() | 2802 | }() | ||
| 2802 | } | 2803 | } | ||
| 2803 | ctx = templ.InitializeContext(ctx) | 2804 | ctx = templ.InitializeContext(ctx) | ||
| 2804 | - | templ_7745c5c3_Var133 := templ.GetChildren(ctx) | 2805 | + | templ_7745c5c3_Var132 := templ.GetChildren(ctx) |
| 2805 | - | if templ_7745c5c3_Var133 == nil { | 2806 | + | if templ_7745c5c3_Var132 == nil { |
| 2806 | - | templ_7745c5c3_Var133 = templ.NopComponent | 2807 | + | templ_7745c5c3_Var132 = templ.NopComponent |
| 2807 | } | 2808 | } | ||
| 2808 | ctx = templ.ClearChildren(ctx) | 2809 | ctx = templ.ClearChildren(ctx) | ||
| 2809 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 263, "<span data-mergeability data-state=\"") | 2810 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 265, "<span data-mergeability data-state=\"") |
| 2811 | + | if templ_7745c5c3_Err != nil { | |||
| 2812 | + | return templ_7745c5c3_Err | |||
| 2813 | + | } | |||
| 2814 | + | var templ_7745c5c3_Var133 string | |||
| 2815 | + | templ_7745c5c3_Var133, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.State) | |||
| 2816 | + | if templ_7745c5c3_Err != nil { | |||
| 2817 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 556, Col: 22} | |||
| 2818 | + | } | |||
| 2819 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var133) | |||
| 2820 | + | if templ_7745c5c3_Err != nil { | |||
| 2821 | + | return templ_7745c5c3_Err | |||
| 2822 | + | } | |||
| 2823 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 266, "\" data-ff-ok=\"") | |||
| 2810 | if templ_7745c5c3_Err != nil { | 2824 | if templ_7745c5c3_Err != nil { | ||
| 2811 | return templ_7745c5c3_Err | 2825 | return templ_7745c5c3_Err | ||
| 2812 | } | 2826 | } | ||
| 2813 | var templ_7745c5c3_Var134 string | 2827 | var templ_7745c5c3_Var134 string | ||
| 2814 | - | templ_7745c5c3_Var134, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.State) | 2828 | + | templ_7745c5c3_Var134, templ_7745c5c3_Err = templ.ResolveAttributeValue(strconv.FormatBool(v.FFOk)) |
| 2815 | if templ_7745c5c3_Err != nil { | 2829 | if templ_7745c5c3_Err != nil { | ||
| 2816 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 553, Col: 22} | 2830 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 557, Col: 41} |
| 2817 | } | 2831 | } | ||
| 2818 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var134) | 2832 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var134) | ||
| 2819 | if templ_7745c5c3_Err != nil { | 2833 | if templ_7745c5c3_Err != nil { | ||
| 2820 | return templ_7745c5c3_Err | 2834 | return templ_7745c5c3_Err | ||
| 2821 | } | 2835 | } | ||
| 2822 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 264, "\" data-ff-ok=\"") | 2836 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 267, "\" data-merge-ok=\"") |
| 2823 | if templ_7745c5c3_Err != nil { | 2837 | if templ_7745c5c3_Err != nil { | ||
| 2824 | return templ_7745c5c3_Err | 2838 | return templ_7745c5c3_Err | ||
| 2825 | } | 2839 | } | ||
| 2826 | var templ_7745c5c3_Var135 string | 2840 | var templ_7745c5c3_Var135 string | ||
| 2827 | - | templ_7745c5c3_Var135, templ_7745c5c3_Err = templ.ResolveAttributeValue(strconv.FormatBool(v.FFOk)) | 2841 | + | templ_7745c5c3_Var135, templ_7745c5c3_Err = templ.ResolveAttributeValue(strconv.FormatBool(v.MergeOk)) |
| 2828 | if templ_7745c5c3_Err != nil { | 2842 | if templ_7745c5c3_Err != nil { | ||
| 2829 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 554, Col: 41} | 2843 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 558, Col: 47} |
| 2830 | } | 2844 | } | ||
| 2831 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var135) | 2845 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var135) | ||
| 2832 | if templ_7745c5c3_Err != nil { | 2846 | if templ_7745c5c3_Err != nil { | ||
| 2833 | return templ_7745c5c3_Err | 2847 | return templ_7745c5c3_Err | ||
| 2834 | } | 2848 | } | ||
| 2835 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 265, "\" data-merge-ok=\"") | 2849 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 268, "\" data-ff-reason=\"") |
| 2836 | if templ_7745c5c3_Err != nil { | 2850 | if templ_7745c5c3_Err != nil { | ||
| 2837 | return templ_7745c5c3_Err | 2851 | return templ_7745c5c3_Err | ||
| 2838 | } | 2852 | } | ||
| 2839 | var templ_7745c5c3_Var136 string | 2853 | var templ_7745c5c3_Var136 string | ||
| 2840 | - | templ_7745c5c3_Var136, templ_7745c5c3_Err = templ.ResolveAttributeValue(strconv.FormatBool(v.MergeOk)) | 2854 | + | templ_7745c5c3_Var136, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.FFReason) |
| 2841 | if templ_7745c5c3_Err != nil { | 2855 | if templ_7745c5c3_Err != nil { | ||
| 2842 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 555, Col: 47} | 2856 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 559, Col: 29} |
| 2843 | } | 2857 | } | ||
| 2844 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var136) | 2858 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var136) | ||
| 2845 | if templ_7745c5c3_Err != nil { | 2859 | if templ_7745c5c3_Err != nil { | ||
| 2846 | return templ_7745c5c3_Err | 2860 | return templ_7745c5c3_Err | ||
| 2847 | } | 2861 | } | ||
| 2848 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 266, "\" data-ff-reason=\"") | 2862 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 269, "\" data-merge-reason=\"") |
| 2849 | if templ_7745c5c3_Err != nil { | 2863 | if templ_7745c5c3_Err != nil { | ||
| 2850 | return templ_7745c5c3_Err | 2864 | return templ_7745c5c3_Err | ||
| 2851 | } | 2865 | } | ||
| 2852 | var templ_7745c5c3_Var137 string | 2866 | var templ_7745c5c3_Var137 string | ||
| 2853 | - | templ_7745c5c3_Var137, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.FFReason) | 2867 | + | templ_7745c5c3_Var137, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.MergeReason) |
| 2854 | if templ_7745c5c3_Err != nil { | 2868 | if templ_7745c5c3_Err != nil { | ||
| 2855 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 556, Col: 29} | 2869 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 560, Col: 35} |
| 2856 | } | 2870 | } | ||
| 2857 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var137) | 2871 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var137) | ||
| 2858 | if templ_7745c5c3_Err != nil { | 2872 | if templ_7745c5c3_Err != nil { | ||
| 2859 | return templ_7745c5c3_Err | 2873 | return templ_7745c5c3_Err | ||
| 2860 | } | 2874 | } | ||
| 2861 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 267, "\" data-merge-reason=\"") | 2875 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 270, "\"><span class=\"badge\" data-state=\"") |
| 2862 | if templ_7745c5c3_Err != nil { | 2876 | if templ_7745c5c3_Err != nil { | ||
| 2863 | return templ_7745c5c3_Err | 2877 | return templ_7745c5c3_Err | ||
| 2864 | } | 2878 | } | ||
| 2865 | var templ_7745c5c3_Var138 string | 2879 | var templ_7745c5c3_Var138 string | ||
| 2866 | - | templ_7745c5c3_Var138, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.MergeReason) | 2880 | + | templ_7745c5c3_Var138, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.State) |
| 2867 | if templ_7745c5c3_Err != nil { | 2881 | if templ_7745c5c3_Err != nil { | ||
| 2868 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 557, Col: 35} | 2882 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 562, Col: 42} |
| 2869 | } | 2883 | } | ||
| 2870 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var138) | 2884 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var138) | ||
| 2871 | if templ_7745c5c3_Err != nil { | 2885 | if templ_7745c5c3_Err != nil { | ||
| 2872 | return templ_7745c5c3_Err | 2886 | return templ_7745c5c3_Err | ||
| 2873 | } | 2887 | } | ||
| 2874 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 268, "\"><span class=\"badge\" data-state=\"") | 2888 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 271, "\">") |
| 2875 | if templ_7745c5c3_Err != nil { | 2889 | if templ_7745c5c3_Err != nil { | ||
| 2876 | return templ_7745c5c3_Err | 2890 | return templ_7745c5c3_Err | ||
| 2877 | } | 2891 | } | ||
| 2878 | var templ_7745c5c3_Var139 string | 2892 | var templ_7745c5c3_Var139 string | ||
| 2879 | - | templ_7745c5c3_Var139, templ_7745c5c3_Err = templ.ResolveAttributeValue(v.State) | 2893 | + | templ_7745c5c3_Var139, templ_7745c5c3_Err = templ.JoinStringErrs(v.Label) |
| 2880 | - | if templ_7745c5c3_Err != nil { | |||
| 2881 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 559, Col: 42} | |||
| 2882 | - | } | |||
| 2883 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var139) | |||
| 2884 | - | if templ_7745c5c3_Err != nil { | |||
| 2885 | - | return templ_7745c5c3_Err | |||
| 2886 | - | } | |||
| 2887 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 269, "\">") | |||
| 2888 | - | if templ_7745c5c3_Err != nil { | |||
| 2889 | - | return templ_7745c5c3_Err | |||
| 2890 | - | } | |||
| 2891 | - | var templ_7745c5c3_Var140 string | |||
| 2892 | - | templ_7745c5c3_Var140, templ_7745c5c3_Err = templ.JoinStringErrs(v.Label) | |||
| 2893 | if templ_7745c5c3_Err != nil { | 2894 | if templ_7745c5c3_Err != nil { | ||
| 2894 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 559, Col: 54} | 2895 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 562, Col: 54} |
| 2895 | } | 2896 | } | ||
| 2896 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var140)) | 2897 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var139)) |
| 2897 | if templ_7745c5c3_Err != nil { | 2898 | if templ_7745c5c3_Err != nil { | ||
| 2898 | return templ_7745c5c3_Err | 2899 | return templ_7745c5c3_Err | ||
| 2899 | } | 2900 | } | ||
| 2900 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 270, "</span> ") | 2901 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 272, "</span> ") |
| 2901 | if templ_7745c5c3_Err != nil { | 2902 | if templ_7745c5c3_Err != nil { | ||
| 2902 | return templ_7745c5c3_Err | 2903 | return templ_7745c5c3_Err | ||
| 2903 | } | 2904 | } | ||
| 2904 | if v.Detail != "" { | 2905 | if v.Detail != "" { | ||
| 2905 | - | var templ_7745c5c3_Var141 string | 2906 | + | var templ_7745c5c3_Var140 string |
| 2906 | - | templ_7745c5c3_Var141, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 2907 | + | templ_7745c5c3_Var140, templ_7745c5c3_Err = templ.JoinStringErrs(" ") |
| 2907 | if templ_7745c5c3_Err != nil { | 2908 | if templ_7745c5c3_Err != nil { | ||
| 2908 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 561, Col: 8} | 2909 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 564, Col: 8} |
| 2909 | } | 2910 | } | ||
| 2910 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var141)) | 2911 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var140)) |
| 2911 | if templ_7745c5c3_Err != nil { | 2912 | if templ_7745c5c3_Err != nil { | ||
| 2912 | return templ_7745c5c3_Err | 2913 | return templ_7745c5c3_Err | ||
| 2913 | } | 2914 | } | ||
| 2914 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 271, "<span class=\"dim\">") | 2915 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 273, "<span class=\"dim\">") |
| 2915 | if templ_7745c5c3_Err != nil { | 2916 | if templ_7745c5c3_Err != nil { | ||
| 2916 | return templ_7745c5c3_Err | 2917 | return templ_7745c5c3_Err | ||
| 2917 | } | 2918 | } | ||
| 2918 | - | var templ_7745c5c3_Var142 string | 2919 | + | var templ_7745c5c3_Var141 string |
| 2919 | - | templ_7745c5c3_Var142, templ_7745c5c3_Err = templ.JoinStringErrs(v.Detail) | 2920 | + | templ_7745c5c3_Var141, templ_7745c5c3_Err = templ.JoinStringErrs(v.Detail) |
| 2920 | if templ_7745c5c3_Err != nil { | 2921 | if templ_7745c5c3_Err != nil { | ||
| 2921 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 561, Col: 38} | 2922 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 564, Col: 38} |
| 2922 | } | 2923 | } | ||
| 2923 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var142)) | 2924 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var141)) |
| 2924 | if templ_7745c5c3_Err != nil { | 2925 | if templ_7745c5c3_Err != nil { | ||
| 2925 | return templ_7745c5c3_Err | 2926 | return templ_7745c5c3_Err | ||
| 2926 | } | 2927 | } | ||
| 2927 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 272, "</span>") | 2928 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 274, "</span>") |
| 2928 | if templ_7745c5c3_Err != nil { | 2929 | if templ_7745c5c3_Err != nil { | ||
| 2929 | return templ_7745c5c3_Err | 2930 | return templ_7745c5c3_Err | ||
| 2930 | } | 2931 | } | ||
| 2931 | } | 2932 | } | ||
| 2932 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 273, "</span> ") | 2933 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 275, "</span> ") |
| 2933 | if templ_7745c5c3_Err != nil { | 2934 | if templ_7745c5c3_Err != nil { | ||
| 2934 | return templ_7745c5c3_Err | 2935 | return templ_7745c5c3_Err | ||
| 2935 | } | 2936 | } | ||
| 2936 | if len(v.Paths) > 0 { | 2937 | if len(v.Paths) > 0 { | ||
| 2937 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 274, "<ul class=\"mg-paths\" aria-label=\"conflicting files\">") | 2938 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 276, "<ul class=\"mg-paths\" aria-label=\"conflicting files\">") |
| 2938 | if templ_7745c5c3_Err != nil { | 2939 | if templ_7745c5c3_Err != nil { | ||
| 2939 | return templ_7745c5c3_Err | 2940 | return templ_7745c5c3_Err | ||
| 2940 | } | 2941 | } | ||
| 2941 | for _, path := range v.Paths { | 2942 | for _, path := range v.Paths { | ||
| 2942 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 275, "<li><code>") | 2943 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 277, "<li><code>") |
| 2943 | if templ_7745c5c3_Err != nil { | 2944 | if templ_7745c5c3_Err != nil { | ||
| 2944 | return templ_7745c5c3_Err | 2945 | return templ_7745c5c3_Err | ||
| 2945 | } | 2946 | } | ||
| 2946 | - | var templ_7745c5c3_Var143 string | 2947 | + | var templ_7745c5c3_Var142 string |
| 2947 | - | templ_7745c5c3_Var143, templ_7745c5c3_Err = templ.JoinStringErrs(path) | 2948 | + | templ_7745c5c3_Var142, templ_7745c5c3_Err = templ.JoinStringErrs(path) |
| 2948 | if templ_7745c5c3_Err != nil { | 2949 | if templ_7745c5c3_Err != nil { | ||
| 2949 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 567, Col: 20} | 2950 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 570, Col: 20} |
| 2950 | } | 2951 | } | ||
| 2951 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var143)) | 2952 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var142)) |
| 2952 | if templ_7745c5c3_Err != nil { | 2953 | if templ_7745c5c3_Err != nil { | ||
| 2953 | return templ_7745c5c3_Err | 2954 | return templ_7745c5c3_Err | ||
| 2954 | } | 2955 | } | ||
| 2955 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 276, "</code></li>") | 2956 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 278, "</code></li>") |
| 2956 | if templ_7745c5c3_Err != nil { | 2957 | if templ_7745c5c3_Err != nil { | ||
| 2957 | return templ_7745c5c3_Err | 2958 | return templ_7745c5c3_Err | ||
| 2958 | } | 2959 | } | ||
| 2959 | } | 2960 | } | ||
| 2960 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 277, "</ul>") | 2961 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 279, "</ul>") |
| 2961 | if templ_7745c5c3_Err != nil { | 2962 | if templ_7745c5c3_Err != nil { | ||
| 2962 | return templ_7745c5c3_Err | 2963 | return templ_7745c5c3_Err | ||
| 2963 | } | 2964 | } | ||
| 2964 | } | 2965 | } | ||
| 2965 | if v.PathsNote != "" { | 2966 | if v.PathsNote != "" { | ||
| 2966 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 278, "<p class=\"dim\">") | 2967 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 280, "<p class=\"dim\">") |
| 2967 | if templ_7745c5c3_Err != nil { | 2968 | if templ_7745c5c3_Err != nil { | ||
| 2968 | return templ_7745c5c3_Err | 2969 | return templ_7745c5c3_Err | ||
| 2969 | } | 2970 | } | ||
| 2970 | - | var templ_7745c5c3_Var144 string | 2971 | + | var templ_7745c5c3_Var143 string |
| 2971 | - | templ_7745c5c3_Var144, templ_7745c5c3_Err = templ.JoinStringErrs(v.PathsNote) | 2972 | + | templ_7745c5c3_Var143, templ_7745c5c3_Err = templ.JoinStringErrs(v.PathsNote) |
| 2972 | if templ_7745c5c3_Err != nil { | 2973 | if templ_7745c5c3_Err != nil { | ||
| 2973 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 572, Col: 30} | 2974 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 575, Col: 30} |
| 2974 | } | 2975 | } | ||
| 2975 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var144)) | 2976 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var143)) |
| 2976 | if templ_7745c5c3_Err != nil { | 2977 | if templ_7745c5c3_Err != nil { | ||
| 2977 | return templ_7745c5c3_Err | 2978 | return templ_7745c5c3_Err | ||
| 2978 | } | 2979 | } | ||
| 2979 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 279, "</p>") | 2980 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 281, "</p>") |
| 2980 | if templ_7745c5c3_Err != nil { | 2981 | if templ_7745c5c3_Err != nil { | ||
| 2981 | return templ_7745c5c3_Err | 2982 | return templ_7745c5c3_Err | ||
| 2982 | } | 2983 | } | ||
| @@ -3003,12 +3004,12 @@ func mrMergeabilitySlot(v MergeabilityView) templ.Component { | |||||
| 3003 | }() | 3004 | }() | ||
| 3004 | } | 3005 | } | ||
| 3005 | ctx = templ.InitializeContext(ctx) | 3006 | ctx = templ.InitializeContext(ctx) | ||
| 3006 | - | templ_7745c5c3_Var145 := templ.GetChildren(ctx) | 3007 | + | templ_7745c5c3_Var144 := templ.GetChildren(ctx) |
| 3007 | - | if templ_7745c5c3_Var145 == nil { | 3008 | + | if templ_7745c5c3_Var144 == nil { |
| 3008 | - | templ_7745c5c3_Var145 = templ.NopComponent | 3009 | + | templ_7745c5c3_Var144 = templ.NopComponent |
| 3009 | } | 3010 | } | ||
| 3010 | ctx = templ.ClearChildren(ctx) | 3011 | ctx = templ.ClearChildren(ctx) | ||
| 3011 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 280, "<div id=\"mr-mergeability\" class=\"live-slot\" role=\"status\" data-slot>") | 3012 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 282, "<div id=\"mr-mergeability\" class=\"live-slot\" role=\"status\" data-slot>") |
| 3012 | if templ_7745c5c3_Err != nil { | 3013 | if templ_7745c5c3_Err != nil { | ||
| 3013 | return templ_7745c5c3_Err | 3014 | return templ_7745c5c3_Err | ||
| 3014 | } | 3015 | } | ||
| @@ -3016,7 +3017,7 @@ func mrMergeabilitySlot(v MergeabilityView) templ.Component { | |||||
| 3016 | if templ_7745c5c3_Err != nil { | 3017 | if templ_7745c5c3_Err != nil { | ||
| 3017 | return templ_7745c5c3_Err | 3018 | return templ_7745c5c3_Err | ||
| 3018 | } | 3019 | } | ||
| 3019 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 281, "</div>") | 3020 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 283, "</div>") |
| 3020 | if templ_7745c5c3_Err != nil { | 3021 | if templ_7745c5c3_Err != nil { | ||
| 3021 | return templ_7745c5c3_Err | 3022 | return templ_7745c5c3_Err | ||
| 3022 | } | 3023 | } | ||
| @@ -3041,9 +3042,9 @@ func MRMergeabilityFragment(v MergeabilityView) templ.Component { | |||||
| 3041 | }() | 3042 | }() | ||
| 3042 | } | 3043 | } | ||
| 3043 | ctx = templ.InitializeContext(ctx) | 3044 | ctx = templ.InitializeContext(ctx) | ||
| 3044 | - | templ_7745c5c3_Var146 := templ.GetChildren(ctx) | 3045 | + | templ_7745c5c3_Var145 := templ.GetChildren(ctx) |
| 3045 | - | if templ_7745c5c3_Var146 == nil { | 3046 | + | if templ_7745c5c3_Var145 == nil { |
| 3046 | - | templ_7745c5c3_Var146 = templ.NopComponent | 3047 | + | templ_7745c5c3_Var145 = templ.NopComponent |
| 3047 | } | 3048 | } | ||
| 3048 | ctx = templ.ClearChildren(ctx) | 3049 | ctx = templ.ClearChildren(ctx) | ||
| 3049 | templ_7745c5c3_Err = mrMergeabilitySlot(v).Render(ctx, templ_7745c5c3_Buffer) | 3050 | templ_7745c5c3_Err = mrMergeabilitySlot(v).Render(ctx, templ_7745c5c3_Buffer) | ||
| @@ -3072,66 +3073,66 @@ func moreMenu(p MRPage) templ.Component { | |||||
| 3072 | }() | 3073 | }() | ||
| 3073 | } | 3074 | } | ||
| 3074 | ctx = templ.InitializeContext(ctx) | 3075 | ctx = templ.InitializeContext(ctx) | ||
| 3075 | - | templ_7745c5c3_Var147 := templ.GetChildren(ctx) | 3076 | + | templ_7745c5c3_Var146 := templ.GetChildren(ctx) |
| 3076 | - | if templ_7745c5c3_Var147 == nil { | 3077 | + | if templ_7745c5c3_Var146 == nil { |
| 3077 | - | templ_7745c5c3_Var147 = templ.NopComponent | 3078 | + | templ_7745c5c3_Var146 = templ.NopComponent |
| 3078 | } | 3079 | } | ||
| 3079 | ctx = templ.ClearChildren(ctx) | 3080 | ctx = templ.ClearChildren(ctx) | ||
| 3080 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 282, "<details class=\"menu omenu\"><summary class=\"btn icon\" aria-label=\"More actions\" title=\"more actions\">⋯</summary><div class=\"menu-pop\" role=\"group\" aria-label=\"More actions\">") | 3081 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 284, "<details class=\"menu omenu\"><summary class=\"btn icon\" aria-label=\"More actions\" title=\"more actions\">⋯</summary><div class=\"menu-pop\" role=\"group\" aria-label=\"More actions\">") |
| 3081 | if templ_7745c5c3_Err != nil { | 3082 | if templ_7745c5c3_Err != nil { | ||
| 3082 | return templ_7745c5c3_Err | 3083 | return templ_7745c5c3_Err | ||
| 3083 | } | 3084 | } | ||
| 3084 | if p.Box.CanMarkRead { | 3085 | if p.Box.CanMarkRead { | ||
| 3085 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 283, "<form method=\"post\" action=\"") | 3086 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 285, "<form method=\"post\" action=\"") |
| 3086 | if templ_7745c5c3_Err != nil { | 3087 | if templ_7745c5c3_Err != nil { | ||
| 3087 | return templ_7745c5c3_Err | 3088 | return templ_7745c5c3_Err | ||
| 3088 | } | 3089 | } | ||
| 3089 | - | var templ_7745c5c3_Var148 templ.SafeURL | 3090 | + | var templ_7745c5c3_Var147 templ.SafeURL |
| 3090 | - | templ_7745c5c3_Var148, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadAction)) | 3091 | + | templ_7745c5c3_Var147, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadAction)) |
| 3091 | if templ_7745c5c3_Err != nil { | 3092 | if templ_7745c5c3_Err != nil { | ||
| 3092 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 596, Col: 64} | 3093 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 599, Col: 64} |
| 3093 | } | 3094 | } | ||
| 3094 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var148)) | 3095 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var147)) |
| 3095 | if templ_7745c5c3_Err != nil { | 3096 | if templ_7745c5c3_Err != nil { | ||
| 3096 | return templ_7745c5c3_Err | 3097 | return templ_7745c5c3_Err | ||
| 3097 | } | 3098 | } | ||
| 3098 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 284, "\"><input type=\"hidden\" name=\"head_id\" value=\"") | 3099 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 286, "\"><input type=\"hidden\" name=\"head_id\" value=\"") |
| 3099 | if templ_7745c5c3_Err != nil { | 3100 | if templ_7745c5c3_Err != nil { | ||
| 3100 | return templ_7745c5c3_Err | 3101 | return templ_7745c5c3_Err | ||
| 3101 | } | 3102 | } | ||
| 3102 | - | var templ_7745c5c3_Var149 string | 3103 | + | var templ_7745c5c3_Var148 string |
| 3103 | - | templ_7745c5c3_Var149, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | 3104 | + | templ_7745c5c3_Var148, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) |
| 3104 | if templ_7745c5c3_Err != nil { | 3105 | if templ_7745c5c3_Err != nil { | ||
| 3105 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 597, Col: 59} | 3106 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 600, Col: 59} |
| 3106 | } | 3107 | } | ||
| 3107 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var149) | 3108 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var148) |
| 3108 | if templ_7745c5c3_Err != nil { | 3109 | if templ_7745c5c3_Err != nil { | ||
| 3109 | return templ_7745c5c3_Err | 3110 | return templ_7745c5c3_Err | ||
| 3110 | } | 3111 | } | ||
| 3111 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 285, "\"> <button type=\"submit\" title=\"the next visit can show only what changed after this head\" class=\"btn\" aria-keyshortcuts=\"Shift+R\" data-read>Mark read <kbd aria-hidden=\"true\">R</kbd></button></form>") | 3112 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 287, "\"> <button type=\"submit\" title=\"the next visit can show only what changed after this head\" class=\"btn\" aria-keyshortcuts=\"Shift+R\" data-read>Mark read <kbd aria-hidden=\"true\">R</kbd></button></form>") |
| 3112 | if templ_7745c5c3_Err != nil { | 3113 | if templ_7745c5c3_Err != nil { | ||
| 3113 | return templ_7745c5c3_Err | 3114 | return templ_7745c5c3_Err | ||
| 3114 | } | 3115 | } | ||
| 3115 | } | 3116 | } | ||
| 3116 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 286, "<form method=\"post\" action=\"") | 3117 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 288, "<form method=\"post\" action=\"") |
| 3117 | if templ_7745c5c3_Err != nil { | 3118 | if templ_7745c5c3_Err != nil { | ||
| 3118 | return templ_7745c5c3_Err | 3119 | return templ_7745c5c3_Err | ||
| 3119 | } | 3120 | } | ||
| 3120 | - | var templ_7745c5c3_Var150 templ.SafeURL | 3121 | + | var templ_7745c5c3_Var149 templ.SafeURL |
| 3121 | - | templ_7745c5c3_Var150, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.CloseAction)) | 3122 | + | templ_7745c5c3_Var149, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.CloseAction)) |
| 3122 | if templ_7745c5c3_Err != nil { | 3123 | if templ_7745c5c3_Err != nil { | ||
| 3123 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 601, Col: 64} | 3124 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 604, Col: 64} |
| 3124 | } | 3125 | } | ||
| 3125 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var150)) | 3126 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var149)) |
| 3126 | if templ_7745c5c3_Err != nil { | 3127 | if templ_7745c5c3_Err != nil { | ||
| 3127 | return templ_7745c5c3_Err | 3128 | return templ_7745c5c3_Err | ||
| 3128 | } | 3129 | } | ||
| 3129 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 287, "\"><button type=\"submit\" title=\"close without merging; the branch is kept\" class=\"btn danger\">Close</button></form>") | 3130 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 289, "\"><button type=\"submit\" title=\"close without merging; the branch is kept\" class=\"btn danger\">Close</button></form>") |
| 3130 | if templ_7745c5c3_Err != nil { | 3131 | if templ_7745c5c3_Err != nil { | ||
| 3131 | return templ_7745c5c3_Err | 3132 | return templ_7745c5c3_Err | ||
| 3132 | } | 3133 | } | ||
| 3133 | if !p.Box.HeadGone && p.Box.ReadyAction == "" { | 3134 | if !p.Box.HeadGone && p.Box.ReadyAction == "" { | ||
| 3134 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 288, "<details class=\"d-or\"><summary class=\"mute\">or from a terminal</summary>") | 3135 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 290, "<details class=\"d-or\"><summary class=\"mute\">or from a terminal</summary>") |
| 3135 | if templ_7745c5c3_Err != nil { | 3136 | if templ_7745c5c3_Err != nil { | ||
| 3136 | return templ_7745c5c3_Err | 3137 | return templ_7745c5c3_Err | ||
| 3137 | } | 3138 | } | ||
| @@ -3139,12 +3140,12 @@ func moreMenu(p MRPage) templ.Component { | |||||
| 3139 | if templ_7745c5c3_Err != nil { | 3140 | if templ_7745c5c3_Err != nil { | ||
| 3140 | return templ_7745c5c3_Err | 3141 | return templ_7745c5c3_Err | ||
| 3141 | } | 3142 | } | ||
| 3142 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 289, "</details>") | 3143 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 291, "</details>") |
| 3143 | if templ_7745c5c3_Err != nil { | 3144 | if templ_7745c5c3_Err != nil { | ||
| 3144 | return templ_7745c5c3_Err | 3145 | return templ_7745c5c3_Err | ||
| 3145 | } | 3146 | } | ||
| 3146 | } | 3147 | } | ||
| 3147 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 290, "</div></details>") | 3148 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 292, "</div></details>") |
| 3148 | if templ_7745c5c3_Err != nil { | 3149 | if templ_7745c5c3_Err != nil { | ||
| 3149 | return templ_7745c5c3_Err | 3150 | return templ_7745c5c3_Err | ||
| 3150 | } | 3151 | } | ||
| @@ -3168,12 +3169,12 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 3168 | }() | 3169 | }() | ||
| 3169 | } | 3170 | } | ||
| 3170 | ctx = templ.InitializeContext(ctx) | 3171 | ctx = templ.InitializeContext(ctx) | ||
| 3171 | - | templ_7745c5c3_Var151 := templ.GetChildren(ctx) | 3172 | + | templ_7745c5c3_Var150 := templ.GetChildren(ctx) |
| 3172 | - | if templ_7745c5c3_Var151 == nil { | 3173 | + | if templ_7745c5c3_Var150 == nil { |
| 3173 | - | templ_7745c5c3_Var151 = templ.NopComponent | 3174 | + | templ_7745c5c3_Var150 = templ.NopComponent |
| 3174 | } | 3175 | } | ||
| 3175 | ctx = templ.ClearChildren(ctx) | 3176 | ctx = templ.ClearChildren(ctx) | ||
| 3176 | - | templ_7745c5c3_Var152 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 3177 | + | templ_7745c5c3_Var151 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { |
| 3177 | templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 3178 | templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | ||
| 3178 | templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 3179 | templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | ||
| 3179 | if !templ_7745c5c3_IsBuffer { | 3180 | if !templ_7745c5c3_IsBuffer { | ||
| @@ -3185,263 +3186,263 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 3185 | }() | 3186 | }() | ||
| 3186 | } | 3187 | } | ||
| 3187 | ctx = templ.InitializeContext(ctx) | 3188 | ctx = templ.InitializeContext(ctx) | ||
| 3188 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 291, "<header class=\"show mr-h\"><h1>") | 3189 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 293, "<header class=\"show mr-h\"><h1>") |
| 3189 | if templ_7745c5c3_Err != nil { | 3190 | if templ_7745c5c3_Err != nil { | ||
| 3190 | return templ_7745c5c3_Err | 3191 | return templ_7745c5c3_Err | ||
| 3191 | } | 3192 | } | ||
| 3192 | - | var templ_7745c5c3_Var153 string | 3193 | + | var templ_7745c5c3_Var152 string |
| 3193 | - | templ_7745c5c3_Var153, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | 3194 | + | templ_7745c5c3_Var152, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) |
| 3194 | if templ_7745c5c3_Err != nil { | 3195 | if templ_7745c5c3_Err != nil { | ||
| 3195 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 617, Col: 17} | 3196 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 620, Col: 17} |
| 3196 | } | 3197 | } | ||
| 3197 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var153)) | 3198 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var152)) |
| 3198 | if templ_7745c5c3_Err != nil { | 3199 | if templ_7745c5c3_Err != nil { | ||
| 3199 | return templ_7745c5c3_Err | 3200 | return templ_7745c5c3_Err | ||
| 3200 | } | 3201 | } | ||
| 3201 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 292, " → ") | 3202 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 294, " → ") |
| 3202 | if templ_7745c5c3_Err != nil { | 3203 | if templ_7745c5c3_Err != nil { | ||
| 3203 | return templ_7745c5c3_Err | 3204 | return templ_7745c5c3_Err | ||
| 3204 | } | 3205 | } | ||
| 3205 | - | var templ_7745c5c3_Var154 string | 3206 | + | var templ_7745c5c3_Var153 string |
| 3206 | - | templ_7745c5c3_Var154, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 3207 | + | templ_7745c5c3_Var153, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) |
| 3207 | if templ_7745c5c3_Err != nil { | 3208 | if templ_7745c5c3_Err != nil { | ||
| 3208 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 617, Col: 34} | 3209 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 620, Col: 34} |
| 3209 | } | 3210 | } | ||
| 3210 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var154)) | 3211 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var153)) |
| 3211 | if templ_7745c5c3_Err != nil { | 3212 | if templ_7745c5c3_Err != nil { | ||
| 3212 | return templ_7745c5c3_Err | 3213 | return templ_7745c5c3_Err | ||
| 3213 | } | 3214 | } | ||
| 3214 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 293, "</h1><dl class=\"kv show-kv\"><dt>branch</dt><dd><a href=\"") | 3215 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 295, "</h1><dl class=\"kv show-kv\"><dt>branch</dt><dd><a href=\"") |
| 3215 | if templ_7745c5c3_Err != nil { | 3216 | if templ_7745c5c3_Err != nil { | ||
| 3216 | return templ_7745c5c3_Err | 3217 | return templ_7745c5c3_Err | ||
| 3217 | } | 3218 | } | ||
| 3218 | - | var templ_7745c5c3_Var155 templ.SafeURL | 3219 | + | var templ_7745c5c3_Var154 templ.SafeURL |
| 3219 | - | templ_7745c5c3_Var155, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.SourceHref)) | 3220 | + | templ_7745c5c3_Var154, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.SourceHref)) |
| 3220 | if templ_7745c5c3_Err != nil { | 3221 | if templ_7745c5c3_Err != nil { | ||
| 3221 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 620, Col: 45} | 3222 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 623, Col: 45} |
| 3222 | } | 3223 | } | ||
| 3223 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var155)) | 3224 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var154)) |
| 3224 | if templ_7745c5c3_Err != nil { | 3225 | if templ_7745c5c3_Err != nil { | ||
| 3225 | return templ_7745c5c3_Err | 3226 | return templ_7745c5c3_Err | ||
| 3226 | } | 3227 | } | ||
| 3227 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 294, "\">") | 3228 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 296, "\">") |
| 3228 | if templ_7745c5c3_Err != nil { | 3229 | if templ_7745c5c3_Err != nil { | ||
| 3229 | return templ_7745c5c3_Err | 3230 | return templ_7745c5c3_Err | ||
| 3230 | } | 3231 | } | ||
| 3231 | - | var templ_7745c5c3_Var156 string | 3232 | + | var templ_7745c5c3_Var155 string |
| 3232 | - | templ_7745c5c3_Var156, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | 3233 | + | templ_7745c5c3_Var155, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) |
| 3233 | if templ_7745c5c3_Err != nil { | 3234 | if templ_7745c5c3_Err != nil { | ||
| 3234 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 620, Col: 58} | 3235 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 623, Col: 58} |
| 3235 | } | 3236 | } | ||
| 3236 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var156)) | 3237 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var155)) |
| 3237 | if templ_7745c5c3_Err != nil { | 3238 | if templ_7745c5c3_Err != nil { | ||
| 3238 | return templ_7745c5c3_Err | 3239 | return templ_7745c5c3_Err | ||
| 3239 | } | 3240 | } | ||
| 3240 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 295, "</a></dd><dt>target</dt><dd><a href=\"") | 3241 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 297, "</a></dd><dt>target</dt><dd><a href=\"") |
| 3241 | if templ_7745c5c3_Err != nil { | 3242 | if templ_7745c5c3_Err != nil { | ||
| 3242 | return templ_7745c5c3_Err | 3243 | return templ_7745c5c3_Err | ||
| 3243 | } | 3244 | } | ||
| 3244 | - | var templ_7745c5c3_Var157 templ.SafeURL | 3245 | + | var templ_7745c5c3_Var156 templ.SafeURL |
| 3245 | - | templ_7745c5c3_Var157, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.TargetHref)) | 3246 | + | templ_7745c5c3_Var156, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.TargetHref)) |
| 3246 | if templ_7745c5c3_Err != nil { | 3247 | if templ_7745c5c3_Err != nil { | ||
| 3247 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 622, Col: 45} | 3248 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 625, Col: 45} |
| 3248 | } | 3249 | } | ||
| 3249 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var157)) | 3250 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var156)) |
| 3250 | if templ_7745c5c3_Err != nil { | 3251 | if templ_7745c5c3_Err != nil { | ||
| 3251 | return templ_7745c5c3_Err | 3252 | return templ_7745c5c3_Err | ||
| 3252 | } | 3253 | } | ||
| 3253 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 296, "\">") | 3254 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 298, "\">") |
| 3254 | if templ_7745c5c3_Err != nil { | 3255 | if templ_7745c5c3_Err != nil { | ||
| 3255 | return templ_7745c5c3_Err | 3256 | return templ_7745c5c3_Err | ||
| 3256 | } | 3257 | } | ||
| 3257 | - | var templ_7745c5c3_Var158 string | 3258 | + | var templ_7745c5c3_Var157 string |
| 3258 | - | templ_7745c5c3_Var158, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 3259 | + | templ_7745c5c3_Var157, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) |
| 3259 | if templ_7745c5c3_Err != nil { | 3260 | if templ_7745c5c3_Err != nil { | ||
| 3260 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 622, Col: 58} | 3261 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 625, Col: 58} |
| 3261 | } | 3262 | } | ||
| 3262 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var158)) | 3263 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var157)) |
| 3263 | if templ_7745c5c3_Err != nil { | 3264 | if templ_7745c5c3_Err != nil { | ||
| 3264 | return templ_7745c5c3_Err | 3265 | return templ_7745c5c3_Err | ||
| 3265 | } | 3266 | } | ||
| 3266 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 297, "</a></dd><dt>ahead</dt><dd>") | 3267 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 299, "</a></dd><dt>ahead</dt><dd>") |
| 3267 | if templ_7745c5c3_Err != nil { | 3268 | if templ_7745c5c3_Err != nil { | ||
| 3268 | return templ_7745c5c3_Err | 3269 | return templ_7745c5c3_Err | ||
| 3269 | } | 3270 | } | ||
| 3270 | - | var templ_7745c5c3_Var159 string | 3271 | + | var templ_7745c5c3_Var158 string |
| 3271 | - | templ_7745c5c3_Var159, templ_7745c5c3_Err = templ.JoinStringErrs(p.AheadText) | 3272 | + | templ_7745c5c3_Var158, templ_7745c5c3_Err = templ.JoinStringErrs(p.AheadText) |
| 3272 | if templ_7745c5c3_Err != nil { | 3273 | if templ_7745c5c3_Err != nil { | ||
| 3273 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 624, Col: 21} | 3274 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 627, Col: 21} |
| 3274 | } | 3275 | } | ||
| 3275 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var159)) | 3276 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var158)) |
| 3276 | if templ_7745c5c3_Err != nil { | 3277 | if templ_7745c5c3_Err != nil { | ||
| 3277 | return templ_7745c5c3_Err | 3278 | return templ_7745c5c3_Err | ||
| 3278 | } | 3279 | } | ||
| 3279 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 298, "</dd></dl></header>") | 3280 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 300, "</dd></dl></header>") |
| 3280 | if templ_7745c5c3_Err != nil { | 3281 | if templ_7745c5c3_Err != nil { | ||
| 3281 | return templ_7745c5c3_Err | 3282 | return templ_7745c5c3_Err | ||
| 3282 | } | 3283 | } | ||
| 3283 | if p.Note != "" { | 3284 | if p.Note != "" { | ||
| 3284 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 299, "<p class=\"notice\">") | 3285 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 301, "<p class=\"notice\">") |
| 3285 | if templ_7745c5c3_Err != nil { | 3286 | if templ_7745c5c3_Err != nil { | ||
| 3286 | return templ_7745c5c3_Err | 3287 | return templ_7745c5c3_Err | ||
| 3287 | } | 3288 | } | ||
| 3288 | - | var templ_7745c5c3_Var160 string | 3289 | + | var templ_7745c5c3_Var159 string |
| 3289 | - | templ_7745c5c3_Var160, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | 3290 | + | templ_7745c5c3_Var159, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) |
| 3290 | if templ_7745c5c3_Err != nil { | 3291 | if templ_7745c5c3_Err != nil { | ||
| 3291 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 628, Col: 29} | 3292 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 631, Col: 29} |
| 3292 | } | 3293 | } | ||
| 3293 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var160)) | 3294 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var159)) |
| 3294 | if templ_7745c5c3_Err != nil { | 3295 | if templ_7745c5c3_Err != nil { | ||
| 3295 | return templ_7745c5c3_Err | 3296 | return templ_7745c5c3_Err | ||
| 3296 | } | 3297 | } | ||
| 3297 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 300, "</p>") | 3298 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 302, "</p>") |
| 3298 | if templ_7745c5c3_Err != nil { | 3299 | if templ_7745c5c3_Err != nil { | ||
| 3299 | return templ_7745c5c3_Err | 3300 | return templ_7745c5c3_Err | ||
| 3300 | } | 3301 | } | ||
| 3301 | } | 3302 | } | ||
| 3302 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 301, " ") | 3303 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 303, " ") |
| 3303 | if templ_7745c5c3_Err != nil { | 3304 | if templ_7745c5c3_Err != nil { | ||
| 3304 | return templ_7745c5c3_Err | 3305 | return templ_7745c5c3_Err | ||
| 3305 | } | 3306 | } | ||
| 3306 | if p.Existing != nil { | 3307 | if p.Existing != nil { | ||
| 3307 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 302, "<p class=\"notice\">an open merge request already covers these branches: <a href=\"") | 3308 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 304, "<p class=\"notice\">an open merge request already covers these branches: <a href=\"") |
| 3308 | if templ_7745c5c3_Err != nil { | 3309 | if templ_7745c5c3_Err != nil { | ||
| 3309 | return templ_7745c5c3_Err | 3310 | return templ_7745c5c3_Err | ||
| 3310 | } | 3311 | } | ||
| 3311 | - | var templ_7745c5c3_Var161 templ.SafeURL | 3312 | + | var templ_7745c5c3_Var160 templ.SafeURL |
| 3312 | - | templ_7745c5c3_Var161, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Existing.Href)) | 3313 | + | templ_7745c5c3_Var160, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Existing.Href)) |
| 3313 | if templ_7745c5c3_Err != nil { | 3314 | if templ_7745c5c3_Err != nil { | ||
| 3314 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 631, Col: 114} | 3315 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 634, Col: 114} |
| 3315 | } | 3316 | } | ||
| 3316 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var161)) | 3317 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var160)) |
| 3317 | if templ_7745c5c3_Err != nil { | 3318 | if templ_7745c5c3_Err != nil { | ||
| 3318 | return templ_7745c5c3_Err | 3319 | return templ_7745c5c3_Err | ||
| 3319 | } | 3320 | } | ||
| 3320 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 303, "\">") | 3321 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 305, "\">") |
| 3321 | if templ_7745c5c3_Err != nil { | 3322 | if templ_7745c5c3_Err != nil { | ||
| 3322 | return templ_7745c5c3_Err | 3323 | return templ_7745c5c3_Err | ||
| 3323 | } | 3324 | } | ||
| 3324 | - | var templ_7745c5c3_Var162 string | 3325 | + | var templ_7745c5c3_Var161 string |
| 3325 | - | templ_7745c5c3_Var162, templ_7745c5c3_Err = templ.JoinStringErrs(p.Existing.Label) | 3326 | + | templ_7745c5c3_Var161, templ_7745c5c3_Err = templ.JoinStringErrs(p.Existing.Label) |
| 3326 | if templ_7745c5c3_Err != nil { | 3327 | if templ_7745c5c3_Err != nil { | ||
| 3327 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 631, Col: 135} | 3328 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 634, Col: 135} |
| 3328 | } | 3329 | } | ||
| 3329 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var162)) | 3330 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var161)) |
| 3330 | if templ_7745c5c3_Err != nil { | 3331 | if templ_7745c5c3_Err != nil { | ||
| 3331 | return templ_7745c5c3_Err | 3332 | return templ_7745c5c3_Err | ||
| 3332 | } | 3333 | } | ||
| 3333 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 304, "</a></p>") | 3334 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 306, "</a></p>") |
| 3334 | if templ_7745c5c3_Err != nil { | 3335 | if templ_7745c5c3_Err != nil { | ||
| 3335 | return templ_7745c5c3_Err | 3336 | return templ_7745c5c3_Err | ||
| 3336 | } | 3337 | } | ||
| 3337 | } | 3338 | } | ||
| 3338 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 305, " ") | 3339 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 307, " ") |
| 3339 | if templ_7745c5c3_Err != nil { | 3340 | if templ_7745c5c3_Err != nil { | ||
| 3340 | return templ_7745c5c3_Err | 3341 | return templ_7745c5c3_Err | ||
| 3341 | } | 3342 | } | ||
| 3342 | if p.Create != nil { | 3343 | if p.Create != nil { | ||
| 3343 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 306, "<form class=\"cform create\" method=\"post\" action=\"") | 3344 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 308, "<form class=\"cform create\" method=\"post\" action=\"") |
| 3344 | if templ_7745c5c3_Err != nil { | 3345 | if templ_7745c5c3_Err != nil { | ||
| 3345 | return templ_7745c5c3_Err | 3346 | return templ_7745c5c3_Err | ||
| 3346 | } | 3347 | } | ||
| 3347 | - | var templ_7745c5c3_Var163 templ.SafeURL | 3348 | + | var templ_7745c5c3_Var162 templ.SafeURL |
| 3348 | - | templ_7745c5c3_Var163, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Create.Action)) | 3349 | + | templ_7745c5c3_Var162, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Create.Action)) |
| 3349 | if templ_7745c5c3_Err != nil { | 3350 | if templ_7745c5c3_Err != nil { | ||
| 3350 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 634, Col: 83} | 3351 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 637, Col: 83} |
| 3351 | } | 3352 | } | ||
| 3352 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var163)) | 3353 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var162)) |
| 3353 | if templ_7745c5c3_Err != nil { | 3354 | if templ_7745c5c3_Err != nil { | ||
| 3354 | return templ_7745c5c3_Err | 3355 | return templ_7745c5c3_Err | ||
| 3355 | } | 3356 | } | ||
| 3356 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 307, "\"><input type=\"hidden\" name=\"source\" value=\"") | 3357 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 309, "\"><input type=\"hidden\" name=\"source\" value=\"") |
| 3357 | if templ_7745c5c3_Err != nil { | 3358 | if templ_7745c5c3_Err != nil { | ||
| 3358 | return templ_7745c5c3_Err | 3359 | return templ_7745c5c3_Err | ||
| 3359 | } | 3360 | } | ||
| 3360 | - | var templ_7745c5c3_Var164 string | 3361 | + | var templ_7745c5c3_Var163 string |
| 3361 | - | templ_7745c5c3_Var164, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Source) | 3362 | + | templ_7745c5c3_Var163, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Source) |
| 3362 | if templ_7745c5c3_Err != nil { | 3363 | if templ_7745c5c3_Err != nil { | ||
| 3363 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 635, Col: 62} | 3364 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 638, Col: 62} |
| 3364 | } | 3365 | } | ||
| 3365 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var164) | 3366 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var163) |
| 3366 | if templ_7745c5c3_Err != nil { | 3367 | if templ_7745c5c3_Err != nil { | ||
| 3367 | return templ_7745c5c3_Err | 3368 | return templ_7745c5c3_Err | ||
| 3368 | } | 3369 | } | ||
| 3369 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 308, "\"> <input type=\"hidden\" name=\"target\" value=\"") | 3370 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 310, "\"> <input type=\"hidden\" name=\"target\" value=\"") |
| 3370 | if templ_7745c5c3_Err != nil { | 3371 | if templ_7745c5c3_Err != nil { | ||
| 3371 | return templ_7745c5c3_Err | 3372 | return templ_7745c5c3_Err | ||
| 3372 | } | 3373 | } | ||
| 3373 | - | var templ_7745c5c3_Var165 string | 3374 | + | var templ_7745c5c3_Var164 string |
| 3374 | - | templ_7745c5c3_Var165, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Target) | 3375 | + | templ_7745c5c3_Var164, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Target) |
| 3375 | if templ_7745c5c3_Err != nil { | 3376 | if templ_7745c5c3_Err != nil { | ||
| 3376 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 636, Col: 62} | 3377 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 639, Col: 62} |
| 3377 | } | 3378 | } | ||
| 3378 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var165) | 3379 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var164) |
| 3379 | if templ_7745c5c3_Err != nil { | 3380 | if templ_7745c5c3_Err != nil { | ||
| 3380 | return templ_7745c5c3_Err | 3381 | return templ_7745c5c3_Err | ||
| 3381 | } | 3382 | } | ||
| 3382 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 309, "\"> <label for=\"mr-title\">title</label> <input id=\"mr-title\" name=\"title\" type=\"text\" maxlength=\"120\" required value=\"") | 3383 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 311, "\"> <label for=\"mr-title\">title</label> <input id=\"mr-title\" name=\"title\" type=\"text\" maxlength=\"120\" required value=\"") |
| 3383 | if templ_7745c5c3_Err != nil { | 3384 | if templ_7745c5c3_Err != nil { | ||
| 3384 | return templ_7745c5c3_Err | 3385 | return templ_7745c5c3_Err | ||
| 3385 | } | 3386 | } | ||
| 3386 | - | var templ_7745c5c3_Var166 string | 3387 | + | var templ_7745c5c3_Var165 string |
| 3387 | - | templ_7745c5c3_Var166, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Title) | 3388 | + | templ_7745c5c3_Var165, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Title) |
| 3388 | if templ_7745c5c3_Err != nil { | 3389 | if templ_7745c5c3_Err != nil { | ||
| 3389 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 638, Col: 97} | 3390 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 641, Col: 97} |
| 3390 | } | 3391 | } | ||
| 3391 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var166) | 3392 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var165) |
| 3392 | if templ_7745c5c3_Err != nil { | 3393 | if templ_7745c5c3_Err != nil { | ||
| 3393 | return templ_7745c5c3_Err | 3394 | return templ_7745c5c3_Err | ||
| 3394 | } | 3395 | } | ||
| 3395 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 310, "\" autocomplete=\"off\"> <label for=\"mr-desc\">description</label> <textarea id=\"mr-desc\" name=\"description\" rows=\"4\" maxlength=\"8000\" placeholder=\"Markdown, optional\"></textarea><div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Create merge request</button></div></form>") | 3396 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 312, "\" autocomplete=\"off\"> <label for=\"mr-desc\">description</label> <textarea id=\"mr-desc\" name=\"description\" rows=\"4\" maxlength=\"8000\" placeholder=\"Markdown, optional\"></textarea><div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Create merge request</button></div></form>") |
| 3396 | if templ_7745c5c3_Err != nil { | 3397 | if templ_7745c5c3_Err != nil { | ||
| 3397 | return templ_7745c5c3_Err | 3398 | return templ_7745c5c3_Err | ||
| 3398 | } | 3399 | } | ||
| 3399 | } | 3400 | } | ||
| 3400 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 311, " ") | 3401 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 313, " ") |
| 3401 | if templ_7745c5c3_Err != nil { | 3402 | if templ_7745c5c3_Err != nil { | ||
| 3402 | return templ_7745c5c3_Err | 3403 | return templ_7745c5c3_Err | ||
| 3403 | } | 3404 | } | ||
| 3404 | if p.HasDiff { | 3405 | if p.HasDiff { | ||
| 3405 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 312, "<div class=\"diff-tools\" role=\"group\" aria-label=\"Diff view\"><span class=\"dim\">") | 3406 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 314, "<div class=\"diff-tools\" role=\"group\" aria-label=\"Diff view\"><span class=\"dim\">") |
| 3406 | if templ_7745c5c3_Err != nil { | 3407 | if templ_7745c5c3_Err != nil { | ||
| 3407 | return templ_7745c5c3_Err | 3408 | return templ_7745c5c3_Err | ||
| 3408 | } | 3409 | } | ||
| 3409 | - | var templ_7745c5c3_Var167 string | 3410 | + | var templ_7745c5c3_Var166 string |
| 3410 | - | templ_7745c5c3_Var167, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | 3411 | + | templ_7745c5c3_Var166, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) |
| 3411 | if templ_7745c5c3_Err != nil { | 3412 | if templ_7745c5c3_Err != nil { | ||
| 3412 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 648, Col: 57} | 3413 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 651, Col: 57} |
| 3413 | } | 3414 | } | ||
| 3414 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var167)) | 3415 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var166)) |
| 3415 | if templ_7745c5c3_Err != nil { | 3416 | if templ_7745c5c3_Err != nil { | ||
| 3416 | return templ_7745c5c3_Err | 3417 | return templ_7745c5c3_Err | ||
| 3417 | } | 3418 | } | ||
| 3418 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 313, " · <span class=\"plus\">+") | 3419 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 315, " · <span class=\"plus\">+") |
| 3419 | if templ_7745c5c3_Err != nil { | 3420 | if templ_7745c5c3_Err != nil { | ||
| 3420 | return templ_7745c5c3_Err | 3421 | return templ_7745c5c3_Err | ||
| 3421 | } | 3422 | } | ||
| 3422 | - | var templ_7745c5c3_Var168 string | 3423 | + | var templ_7745c5c3_Var167 string |
| 3423 | - | templ_7745c5c3_Var168, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | 3424 | + | templ_7745c5c3_Var167, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) |
| 3424 | if templ_7745c5c3_Err != nil { | 3425 | if templ_7745c5c3_Err != nil { | ||
| 3425 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 648, Col: 97} | 3426 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 651, Col: 97} |
| 3426 | } | 3427 | } | ||
| 3427 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var168)) | 3428 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var167)) |
| 3428 | if templ_7745c5c3_Err != nil { | 3429 | if templ_7745c5c3_Err != nil { | ||
| 3429 | return templ_7745c5c3_Err | 3430 | return templ_7745c5c3_Err | ||
| 3430 | } | 3431 | } | ||
| 3431 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 314, "</span> <span class=\"minus\">-") | 3432 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 316, "</span> <span class=\"minus\">-") |
| 3432 | if templ_7745c5c3_Err != nil { | 3433 | if templ_7745c5c3_Err != nil { | ||
| 3433 | return templ_7745c5c3_Err | 3434 | return templ_7745c5c3_Err | ||
| 3434 | } | 3435 | } | ||
| 3435 | - | var templ_7745c5c3_Var169 string | 3436 | + | var templ_7745c5c3_Var168 string |
| 3436 | - | templ_7745c5c3_Var169, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | 3437 | + | templ_7745c5c3_Var168, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) |
| 3437 | if templ_7745c5c3_Err != nil { | 3438 | if templ_7745c5c3_Err != nil { | ||
| 3438 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 648, Col: 142} | 3439 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 651, Col: 142} |
| 3439 | } | 3440 | } | ||
| 3440 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var169)) | 3441 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var168)) |
| 3441 | if templ_7745c5c3_Err != nil { | 3442 | if templ_7745c5c3_Err != nil { | ||
| 3442 | return templ_7745c5c3_Err | 3443 | return templ_7745c5c3_Err | ||
| 3443 | } | 3444 | } | ||
| 3444 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 315, "</span></span> <span class=\"grow\"></span>") | 3445 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 317, "</span></span> <span class=\"grow\"></span>") |
| 3445 | if templ_7745c5c3_Err != nil { | 3446 | if templ_7745c5c3_Err != nil { | ||
| 3446 | return templ_7745c5c3_Err | 3447 | return templ_7745c5c3_Err | ||
| 3447 | } | 3448 | } | ||
| @@ -3457,64 +3458,64 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 3457 | if templ_7745c5c3_Err != nil { | 3458 | if templ_7745c5c3_Err != nil { | ||
| 3458 | return templ_7745c5c3_Err | 3459 | return templ_7745c5c3_Err | ||
| 3459 | } | 3460 | } | ||
| 3460 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 316, "</div>") | 3461 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 318, "</div>") |
| 3461 | if templ_7745c5c3_Err != nil { | 3462 | if templ_7745c5c3_Err != nil { | ||
| 3462 | return templ_7745c5c3_Err | 3463 | return templ_7745c5c3_Err | ||
| 3463 | } | 3464 | } | ||
| 3464 | if p.Invisible { | 3465 | if p.Invisible { | ||
| 3465 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 317, "<p class=\"notice\">this diff holds invisible characters (direction controls, zero-width characters). They are shown as <span class=\"inv\"><U+XXXX></span> markers, never applied.</p>") | 3466 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 319, "<p class=\"notice\">this diff holds invisible characters (direction controls, zero-width characters). They are shown as <span class=\"inv\"><U+XXXX></span> markers, never applied.</p>") |
| 3466 | if templ_7745c5c3_Err != nil { | 3467 | if templ_7745c5c3_Err != nil { | ||
| 3467 | return templ_7745c5c3_Err | 3468 | return templ_7745c5c3_Err | ||
| 3468 | } | 3469 | } | ||
| 3469 | } | 3470 | } | ||
| 3470 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 318, " <div id=\"diffs\"") | 3471 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 320, " <div id=\"diffs\"") |
| 3471 | if templ_7745c5c3_Err != nil { | 3472 | if templ_7745c5c3_Err != nil { | ||
| 3472 | return templ_7745c5c3_Err | 3473 | return templ_7745c5c3_Err | ||
| 3473 | } | 3474 | } | ||
| 3474 | if p.Both { | 3475 | if p.Both { | ||
| 3475 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 319, " data-diff=\"") | 3476 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 321, " data-diff=\"") |
| 3476 | if templ_7745c5c3_Err != nil { | 3477 | if templ_7745c5c3_Err != nil { | ||
| 3477 | return templ_7745c5c3_Err | 3478 | return templ_7745c5c3_Err | ||
| 3478 | } | 3479 | } | ||
| 3479 | - | var templ_7745c5c3_Var170 string | 3480 | + | var templ_7745c5c3_Var169 string |
| 3480 | - | templ_7745c5c3_Var170, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 3481 | + | templ_7745c5c3_Var169, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) |
| 3481 | if templ_7745c5c3_Err != nil { | 3482 | if templ_7745c5c3_Err != nil { | ||
| 3482 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 663, Col: 23} | 3483 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 666, Col: 23} |
| 3483 | } | 3484 | } | ||
| 3484 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var170) | 3485 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var169) |
| 3485 | if templ_7745c5c3_Err != nil { | 3486 | if templ_7745c5c3_Err != nil { | ||
| 3486 | return templ_7745c5c3_Err | 3487 | return templ_7745c5c3_Err | ||
| 3487 | } | 3488 | } | ||
| 3488 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 320, "\"") | 3489 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 322, "\"") |
| 3489 | if templ_7745c5c3_Err != nil { | 3490 | if templ_7745c5c3_Err != nil { | ||
| 3490 | return templ_7745c5c3_Err | 3491 | return templ_7745c5c3_Err | ||
| 3491 | } | 3492 | } | ||
| 3492 | } else { | 3493 | } else { | ||
| 3493 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 321, " data-view=\"") | 3494 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 323, " data-view=\"") |
| 3494 | if templ_7745c5c3_Err != nil { | 3495 | if templ_7745c5c3_Err != nil { | ||
| 3495 | return templ_7745c5c3_Err | 3496 | return templ_7745c5c3_Err | ||
| 3496 | } | 3497 | } | ||
| 3497 | - | var templ_7745c5c3_Var171 string | 3498 | + | var templ_7745c5c3_Var170 string |
| 3498 | - | templ_7745c5c3_Var171, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 3499 | + | templ_7745c5c3_Var170, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) |
| 3499 | if templ_7745c5c3_Err != nil { | 3500 | if templ_7745c5c3_Err != nil { | ||
| 3500 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 665, Col: 23} | 3501 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 668, Col: 23} |
| 3501 | } | 3502 | } | ||
| 3502 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var171) | 3503 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var170) |
| 3503 | if templ_7745c5c3_Err != nil { | 3504 | if templ_7745c5c3_Err != nil { | ||
| 3504 | return templ_7745c5c3_Err | 3505 | return templ_7745c5c3_Err | ||
| 3505 | } | 3506 | } | ||
| 3506 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 322, "\"") | 3507 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 324, "\"") |
| 3507 | if templ_7745c5c3_Err != nil { | 3508 | if templ_7745c5c3_Err != nil { | ||
| 3508 | return templ_7745c5c3_Err | 3509 | return templ_7745c5c3_Err | ||
| 3509 | } | 3510 | } | ||
| 3510 | } | 3511 | } | ||
| 3511 | if p.Both && !p.Pinned { | 3512 | if p.Both && !p.Pinned { | ||
| 3512 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 323, " hx-live=\"this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff\"") | 3513 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 325, " hx-live=\"this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff\"") |
| 3513 | if templ_7745c5c3_Err != nil { | 3514 | if templ_7745c5c3_Err != nil { | ||
| 3514 | return templ_7745c5c3_Err | 3515 | return templ_7745c5c3_Err | ||
| 3515 | } | 3516 | } | ||
| 3516 | } | 3517 | } | ||
| 3517 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 324, ">") | 3518 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 326, ">") |
| 3518 | if templ_7745c5c3_Err != nil { | 3519 | if templ_7745c5c3_Err != nil { | ||
| 3519 | return templ_7745c5c3_Err | 3520 | return templ_7745c5c3_Err | ||
| 3520 | } | 3521 | } | ||
| @@ -3524,14 +3525,14 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 3524 | return templ_7745c5c3_Err | 3525 | return templ_7745c5c3_Err | ||
| 3525 | } | 3526 | } | ||
| 3526 | } | 3527 | } | ||
| 3527 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 325, "</div>") | 3528 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 327, "</div>") |
| 3528 | if templ_7745c5c3_Err != nil { | 3529 | if templ_7745c5c3_Err != nil { | ||
| 3529 | return templ_7745c5c3_Err | 3530 | return templ_7745c5c3_Err | ||
| 3530 | } | 3531 | } | ||
| 3531 | } | 3532 | } | ||
| 3532 | return nil | 3533 | return nil | ||
| 3533 | }) | 3534 | }) | ||
| 3534 | - | templ_7745c5c3_Err = Shell(l, compareRail(p)).Render(templ.WithChildren(ctx, templ_7745c5c3_Var152), templ_7745c5c3_Buffer) | 3535 | + | templ_7745c5c3_Err = Shell(l, compareRail(p)).Render(templ.WithChildren(ctx, templ_7745c5c3_Var151), templ_7745c5c3_Buffer) |
| 3535 | if templ_7745c5c3_Err != nil { | 3536 | if templ_7745c5c3_Err != nil { | ||
| 3536 | return templ_7745c5c3_Err | 3537 | return templ_7745c5c3_Err | ||
| 3537 | } | 3538 | } | ||
| @@ -3555,173 +3556,173 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 3555 | }() | 3556 | }() | ||
| 3556 | } | 3557 | } | ||
| 3557 | ctx = templ.InitializeContext(ctx) | 3558 | ctx = templ.InitializeContext(ctx) | ||
| 3558 | - | templ_7745c5c3_Var172 := templ.GetChildren(ctx) | 3559 | + | templ_7745c5c3_Var171 := templ.GetChildren(ctx) |
| 3559 | - | if templ_7745c5c3_Var172 == nil { | 3560 | + | if templ_7745c5c3_Var171 == nil { |
| 3560 | - | templ_7745c5c3_Var172 = templ.NopComponent | 3561 | + | templ_7745c5c3_Var171 = templ.NopComponent |
| 3561 | } | 3562 | } | ||
| 3562 | ctx = templ.ClearChildren(ctx) | 3563 | ctx = templ.ClearChildren(ctx) | ||
| 3563 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 326, "<section aria-labelledby=\"r-ahead\"><h2 id=\"r-ahead\">Commits <span class=\"count\">") | 3564 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 328, "<section aria-labelledby=\"r-ahead\"><h2 id=\"r-ahead\">Commits <span class=\"count\">") |
| 3564 | if templ_7745c5c3_Err != nil { | 3565 | if templ_7745c5c3_Err != nil { | ||
| 3565 | return templ_7745c5c3_Err | 3566 | return templ_7745c5c3_Err | ||
| 3566 | } | 3567 | } | ||
| 3567 | - | var templ_7745c5c3_Var173 string | 3568 | + | var templ_7745c5c3_Var172 string |
| 3568 | - | templ_7745c5c3_Var173, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Ahead))) | 3569 | + | templ_7745c5c3_Var172, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Ahead))) |
| 3569 | if templ_7745c5c3_Err != nil { | 3570 | if templ_7745c5c3_Err != nil { | ||
| 3570 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 681, Col: 67} | 3571 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 684, Col: 67} |
| 3571 | } | 3572 | } | ||
| 3572 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var173)) | 3573 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var172)) |
| 3573 | if templ_7745c5c3_Err != nil { | 3574 | if templ_7745c5c3_Err != nil { | ||
| 3574 | return templ_7745c5c3_Err | 3575 | return templ_7745c5c3_Err | ||
| 3575 | } | 3576 | } | ||
| 3576 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 327, "</span></h2><ul class=\"pcommits\">") | 3577 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 329, "</span></h2><ul class=\"pcommits\">") |
| 3577 | if templ_7745c5c3_Err != nil { | 3578 | if templ_7745c5c3_Err != nil { | ||
| 3578 | return templ_7745c5c3_Err | 3579 | return templ_7745c5c3_Err | ||
| 3579 | } | 3580 | } | ||
| 3580 | for _, c := range p.Ahead { | 3581 | for _, c := range p.Ahead { | ||
| 3581 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 328, "<li><a href=\"") | 3582 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 330, "<li><a href=\"") |
| 3582 | if templ_7745c5c3_Err != nil { | 3583 | if templ_7745c5c3_Err != nil { | ||
| 3583 | return templ_7745c5c3_Err | 3584 | return templ_7745c5c3_Err | ||
| 3584 | } | 3585 | } | ||
| 3585 | - | var templ_7745c5c3_Var174 templ.SafeURL | 3586 | + | var templ_7745c5c3_Var173 templ.SafeURL |
| 3586 | - | templ_7745c5c3_Var174, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.CHref)) | 3587 | + | templ_7745c5c3_Var173, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.CHref)) |
| 3587 | if templ_7745c5c3_Err != nil { | 3588 | if templ_7745c5c3_Err != nil { | ||
| 3588 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 685, Col: 37} | 3589 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 688, Col: 37} |
| 3589 | } | 3590 | } | ||
| 3590 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var174)) | 3591 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var173)) |
| 3591 | if templ_7745c5c3_Err != nil { | 3592 | if templ_7745c5c3_Err != nil { | ||
| 3592 | return templ_7745c5c3_Err | 3593 | return templ_7745c5c3_Err | ||
| 3593 | } | 3594 | } | ||
| 3594 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 329, "\">") | 3595 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 331, "\">") |
| 3595 | if templ_7745c5c3_Err != nil { | 3596 | if templ_7745c5c3_Err != nil { | ||
| 3596 | return templ_7745c5c3_Err | 3597 | return templ_7745c5c3_Err | ||
| 3597 | } | 3598 | } | ||
| 3598 | - | var templ_7745c5c3_Var175 string | 3599 | + | var templ_7745c5c3_Var174 string |
| 3599 | - | templ_7745c5c3_Var175, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | 3600 | + | templ_7745c5c3_Var174, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) |
| 3600 | if templ_7745c5c3_Err != nil { | 3601 | if templ_7745c5c3_Err != nil { | ||
| 3601 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 685, Col: 49} | 3602 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 688, Col: 49} |
| 3602 | } | 3603 | } | ||
| 3603 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var175)) | 3604 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var174)) |
| 3604 | if templ_7745c5c3_Err != nil { | 3605 | if templ_7745c5c3_Err != nil { | ||
| 3605 | return templ_7745c5c3_Err | 3606 | return templ_7745c5c3_Err | ||
| 3606 | } | 3607 | } | ||
| 3607 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 330, "</a> <span class=\"s\">") | 3608 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 332, "</a> <span class=\"s\">") |
| 3608 | if templ_7745c5c3_Err != nil { | 3609 | if templ_7745c5c3_Err != nil { | ||
| 3609 | return templ_7745c5c3_Err | 3610 | return templ_7745c5c3_Err | ||
| 3610 | } | 3611 | } | ||
| 3611 | - | var templ_7745c5c3_Var176 string | 3612 | + | var templ_7745c5c3_Var175 string |
| 3612 | - | templ_7745c5c3_Var176, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | 3613 | + | templ_7745c5c3_Var175, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) |
| 3613 | if templ_7745c5c3_Err != nil { | 3614 | if templ_7745c5c3_Err != nil { | ||
| 3614 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 686, Col: 32} | 3615 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 689, Col: 32} |
| 3615 | } | 3616 | } | ||
| 3616 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var176)) | 3617 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var175)) |
| 3617 | if templ_7745c5c3_Err != nil { | 3618 | if templ_7745c5c3_Err != nil { | ||
| 3618 | return templ_7745c5c3_Err | 3619 | return templ_7745c5c3_Err | ||
| 3619 | } | 3620 | } | ||
| 3620 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 331, "</span> <span class=\"mute\">") | 3621 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 333, "</span> <span class=\"mute\">") |
| 3621 | if templ_7745c5c3_Err != nil { | 3622 | if templ_7745c5c3_Err != nil { | ||
| 3622 | return templ_7745c5c3_Err | 3623 | return templ_7745c5c3_Err | ||
| 3623 | } | 3624 | } | ||
| 3624 | - | var templ_7745c5c3_Var177 string | 3625 | + | var templ_7745c5c3_Var176 string |
| 3625 | - | templ_7745c5c3_Var177, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | 3626 | + | templ_7745c5c3_Var176, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) |
| 3626 | if templ_7745c5c3_Err != nil { | 3627 | if templ_7745c5c3_Err != nil { | ||
| 3627 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 688, Col: 16} | 3628 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 691, Col: 16} |
| 3628 | } | 3629 | } | ||
| 3629 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var177)) | 3630 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var176)) |
| 3630 | if templ_7745c5c3_Err != nil { | 3631 | if templ_7745c5c3_Err != nil { | ||
| 3631 | return templ_7745c5c3_Err | 3632 | return templ_7745c5c3_Err | ||
| 3632 | } | 3633 | } | ||
| 3633 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 332, " ") | 3634 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 334, " ") |
| 3634 | if templ_7745c5c3_Err != nil { | 3635 | if templ_7745c5c3_Err != nil { | ||
| 3635 | return templ_7745c5c3_Err | 3636 | return templ_7745c5c3_Err | ||
| 3636 | } | 3637 | } | ||
| 3637 | if c.WhenAt != "" { | 3638 | if c.WhenAt != "" { | ||
| 3638 | - | var templ_7745c5c3_Var178 string | 3639 | + | var templ_7745c5c3_Var177 string |
| 3639 | - | templ_7745c5c3_Var178, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | 3640 | + | templ_7745c5c3_Var177, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") |
| 3640 | if templ_7745c5c3_Err != nil { | 3641 | if templ_7745c5c3_Err != nil { | ||
| 3641 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 690, Col: 15} | 3642 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 693, Col: 15} |
| 3642 | } | 3643 | } | ||
| 3643 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var178)) | 3644 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var177)) |
| 3644 | if templ_7745c5c3_Err != nil { | 3645 | if templ_7745c5c3_Err != nil { | ||
| 3645 | return templ_7745c5c3_Err | 3646 | return templ_7745c5c3_Err | ||
| 3646 | } | 3647 | } | ||
| 3647 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 333, "<time datetime=\"") | 3648 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 335, "<time datetime=\"") |
| 3648 | if templ_7745c5c3_Err != nil { | 3649 | if templ_7745c5c3_Err != nil { | ||
| 3649 | return templ_7745c5c3_Err | 3650 | return templ_7745c5c3_Err | ||
| 3650 | } | 3651 | } | ||
| 3651 | - | var templ_7745c5c3_Var179 string | 3652 | + | var templ_7745c5c3_Var178 string |
| 3652 | - | templ_7745c5c3_Var179, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | 3653 | + | templ_7745c5c3_Var178, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) |
| 3653 | if templ_7745c5c3_Err != nil { | 3654 | if templ_7745c5c3_Err != nil { | ||
| 3654 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 690, Col: 42} | 3655 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 693, Col: 42} |
| 3655 | } | 3656 | } | ||
| 3656 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var179) | 3657 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var178) |
| 3657 | if templ_7745c5c3_Err != nil { | 3658 | if templ_7745c5c3_Err != nil { | ||
| 3658 | return templ_7745c5c3_Err | 3659 | return templ_7745c5c3_Err | ||
| 3659 | } | 3660 | } | ||
| 3660 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 334, "\">") | 3661 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 336, "\">") |
| 3661 | if templ_7745c5c3_Err != nil { | 3662 | if templ_7745c5c3_Err != nil { | ||
| 3662 | return templ_7745c5c3_Err | 3663 | return templ_7745c5c3_Err | ||
| 3663 | } | 3664 | } | ||
| 3664 | - | var templ_7745c5c3_Var180 string | 3665 | + | var templ_7745c5c3_Var179 string |
| 3665 | - | templ_7745c5c3_Var180, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | 3666 | + | templ_7745c5c3_Var179, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) |
| 3666 | if templ_7745c5c3_Err != nil { | 3667 | if templ_7745c5c3_Err != nil { | ||
| 3667 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 690, Col: 53} | 3668 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 693, Col: 53} |
| 3668 | } | 3669 | } | ||
| 3669 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var180)) | 3670 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var179)) |
| 3670 | if templ_7745c5c3_Err != nil { | 3671 | if templ_7745c5c3_Err != nil { | ||
| 3671 | return templ_7745c5c3_Err | 3672 | return templ_7745c5c3_Err | ||
| 3672 | } | 3673 | } | ||
| 3673 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 335, "</time>") | 3674 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 337, "</time>") |
| 3674 | if templ_7745c5c3_Err != nil { | 3675 | if templ_7745c5c3_Err != nil { | ||
| 3675 | return templ_7745c5c3_Err | 3676 | return templ_7745c5c3_Err | ||
| 3676 | } | 3677 | } | ||
| 3677 | } | 3678 | } | ||
| 3678 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 336, "</span></li>") | 3679 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 338, "</span></li>") |
| 3679 | if templ_7745c5c3_Err != nil { | 3680 | if templ_7745c5c3_Err != nil { | ||
| 3680 | return templ_7745c5c3_Err | 3681 | return templ_7745c5c3_Err | ||
| 3681 | } | 3682 | } | ||
| 3682 | } | 3683 | } | ||
| 3683 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 337, "</ul>") | 3684 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 339, "</ul>") |
| 3684 | if templ_7745c5c3_Err != nil { | 3685 | if templ_7745c5c3_Err != nil { | ||
| 3685 | return templ_7745c5c3_Err | 3686 | return templ_7745c5c3_Err | ||
| 3686 | } | 3687 | } | ||
| 3687 | if len(p.Ahead) == 0 { | 3688 | if len(p.Ahead) == 0 { | ||
| 3688 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 338, "<p class=\"dim\">no commit ahead of ") | 3689 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 340, "<p class=\"dim\">no commit ahead of ") |
| 3689 | if templ_7745c5c3_Err != nil { | 3690 | if templ_7745c5c3_Err != nil { | ||
| 3690 | return templ_7745c5c3_Err | 3691 | return templ_7745c5c3_Err | ||
| 3691 | } | 3692 | } | ||
| 3692 | - | var templ_7745c5c3_Var181 string | 3693 | + | var templ_7745c5c3_Var180 string |
| 3693 | - | templ_7745c5c3_Var181, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 3694 | + | templ_7745c5c3_Var180, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) |
| 3694 | if templ_7745c5c3_Err != nil { | 3695 | if templ_7745c5c3_Err != nil { | ||
| 3695 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 697, Col: 47} | 3696 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 700, Col: 47} |
| 3696 | } | 3697 | } | ||
| 3697 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var181)) | 3698 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var180)) |
| 3698 | if templ_7745c5c3_Err != nil { | 3699 | if templ_7745c5c3_Err != nil { | ||
| 3699 | return templ_7745c5c3_Err | 3700 | return templ_7745c5c3_Err | ||
| 3700 | } | 3701 | } | ||
| 3701 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 339, ".</p>") | 3702 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 341, ".</p>") |
| 3702 | if templ_7745c5c3_Err != nil { | 3703 | if templ_7745c5c3_Err != nil { | ||
| 3703 | return templ_7745c5c3_Err | 3704 | return templ_7745c5c3_Err | ||
| 3704 | } | 3705 | } | ||
| 3705 | } | 3706 | } | ||
| 3706 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 340, "</section>") | 3707 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 342, "</section>") |
| 3707 | if templ_7745c5c3_Err != nil { | 3708 | if templ_7745c5c3_Err != nil { | ||
| 3708 | return templ_7745c5c3_Err | 3709 | return templ_7745c5c3_Err | ||
| 3709 | } | 3710 | } | ||
| 3710 | if p.HasDiff { | 3711 | if p.HasDiff { | ||
| 3711 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 341, "<section aria-labelledby=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") | 3712 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 343, "<section aria-labelledby=\"r-files\"><h2 id=\"r-files\">Files <span class=\"count\">") |
| 3712 | if templ_7745c5c3_Err != nil { | 3713 | if templ_7745c5c3_Err != nil { | ||
| 3713 | return templ_7745c5c3_Err | 3714 | return templ_7745c5c3_Err | ||
| 3714 | } | 3715 | } | ||
| 3715 | - | var templ_7745c5c3_Var182 string | 3716 | + | var templ_7745c5c3_Var181 string |
| 3716 | - | templ_7745c5c3_Var182, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | 3717 | + | templ_7745c5c3_Var181, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) |
| 3717 | if templ_7745c5c3_Err != nil { | 3718 | if templ_7745c5c3_Err != nil { | ||
| 3718 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 702, Col: 66} | 3719 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 705, Col: 66} |
| 3719 | } | 3720 | } | ||
| 3720 | - | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var182)) | 3721 | + | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var181)) |
| 3721 | if templ_7745c5c3_Err != nil { | 3722 | if templ_7745c5c3_Err != nil { | ||
| 3722 | return templ_7745c5c3_Err | 3723 | return templ_7745c5c3_Err | ||
| 3723 | } | 3724 | } | ||
| 3724 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 342, "</span></h2>") | 3725 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 344, "</span></h2>") |
| 3725 | if templ_7745c5c3_Err != nil { | 3726 | if templ_7745c5c3_Err != nil { | ||
| 3726 | return templ_7745c5c3_Err | 3727 | return templ_7745c5c3_Err | ||
| 3727 | } | 3728 | } | ||
| @@ -3729,12 +3730,12 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 3729 | if templ_7745c5c3_Err != nil { | 3730 | if templ_7745c5c3_Err != nil { | ||
| 3730 | return templ_7745c5c3_Err | 3731 | return templ_7745c5c3_Err | ||
| 3731 | } | 3732 | } | ||
| 3732 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 343, "</section>") | 3733 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 345, "</section>") |
| 3733 | if templ_7745c5c3_Err != nil { | 3734 | if templ_7745c5c3_Err != nil { | ||
| 3734 | return templ_7745c5c3_Err | 3735 | return templ_7745c5c3_Err | ||
| 3735 | } | 3736 | } | ||
| 3736 | } | 3737 | } | ||
| 3737 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 344, "<section aria-labelledby=\"r-cli\"><h2 id=\"r-cli\">From a terminal</h2>") | 3738 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 346, "<section aria-labelledby=\"r-cli\"><h2 id=\"r-cli\">From a terminal</h2>") |
| 3738 | if templ_7745c5c3_Err != nil { | 3739 | if templ_7745c5c3_Err != nil { | ||
| 3739 | return templ_7745c5c3_Err | 3740 | return templ_7745c5c3_Err | ||
| 3740 | } | 3741 | } | ||
| @@ -3742,7 +3743,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 3742 | if templ_7745c5c3_Err != nil { | 3743 | if templ_7745c5c3_Err != nil { | ||
| 3743 | return templ_7745c5c3_Err | 3744 | return templ_7745c5c3_Err | ||
| 3744 | } | 3745 | } | ||
| 3745 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 345, "</section>") | 3746 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 347, "</section>") |
| 3746 | if templ_7745c5c3_Err != nil { | 3747 | if templ_7745c5c3_Err != nil { | ||
| 3747 | return templ_7745c5c3_Err | 3748 | return templ_7745c5c3_Err | ||
| 3748 | } | 3749 | } | ||
M internal/adapters/web/static/css/60-mr.css +6 -0
| @@ -50,6 +50,12 @@ | |||
| 50 | 50 | & .kv { margin: 0; } | |
| 51 | 51 | } | |
| 52 | 52 | .mmenu { | |
| 53 | + | & .menu-pop { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; } | |
| 54 | + | & .menu-pop > *, & form, & .d-modes, & .d-btns { min-width: 0; max-width: 100%; box-sizing: border-box; } | |
| 55 | + | & .d-acts { display: grid; gap: var(--s3); } | |
| 56 | + | & .d-modes label, & .d-check { min-width: 0; } | |
| 57 | + | & code { overflow-wrap: anywhere; } | |
| 58 | + | & .d-btns .btn { min-width: 0; max-width: 100%; white-space: normal; } | |
| 53 | 59 | & .d-modes { display: grid; gap: var(--s1); border: 0; padding: 0; margin: 0; } | |
| 54 | 60 | & .d-modes label, & .d-check { | |
| 55 | 61 | display: flex; gap: var(--s2); align-items: center; padding: 4px var(--s2); margin: 0 calc(-1 * var(--s2)); | |
| @@ -50,6 +50,12 @@ | |||||
| 50 | & .kv { margin: 0; } | 50 | & .kv { margin: 0; } | ||
| 51 | } | 51 | } | ||
| 52 | .mmenu { | 52 | .mmenu { | ||
| 53 | + | & .menu-pop { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; } | |||
| 54 | + | & .menu-pop > *, & form, & .d-modes, & .d-btns { min-width: 0; max-width: 100%; box-sizing: border-box; } | |||
| 55 | + | & .d-acts { display: grid; gap: var(--s3); } | |||
| 56 | + | & .d-modes label, & .d-check { min-width: 0; } | |||
| 57 | + | & code { overflow-wrap: anywhere; } | |||
| 58 | + | & .d-btns .btn { min-width: 0; max-width: 100%; white-space: normal; } | |||
| 53 | & .d-modes { display: grid; gap: var(--s1); border: 0; padding: 0; margin: 0; } | 59 | & .d-modes { display: grid; gap: var(--s1); border: 0; padding: 0; margin: 0; } | ||
| 54 | & .d-modes label, & .d-check { | 60 | & .d-modes label, & .d-check { | ||
| 55 | display: flex; gap: var(--s2); align-items: center; padding: 4px var(--s2); margin: 0 calc(-1 * var(--s2)); | 61 | display: flex; gap: var(--s2); align-items: center; padding: 4px var(--s2); margin: 0 calc(-1 * var(--s2)); | ||
M internal/adapters/web/static/js/mr.js +4 -0
| @@ -291,6 +291,10 @@ window.ermiteMR = (() => { | |||
| 291 | 291 | let folded = false; | |
| 292 | 292 | try { folded = localStorage.getItem('mr-files-folded') === '1'; } catch { /* no storage: open */ } | |
| 293 | 293 | if (folded) foldFiles(true); | |
| 294 | + | // The page answers a refused action from the address of the action: show | |
| 295 | + | // the address of the request, so that a reload does not post again. | |
| 296 | + | const canonical = $('#diffs[data-canonical]')?.dataset.canonical; | |
| 297 | + | if (canonical && location.pathname !== canonical) history.replaceState(history.state, '', canonical + location.hash); | |
| 294 | 298 | watch(); | |
| 295 | 299 | // A link to a file or a comment that is not loaded yet. | |
| 296 | 300 | const hash = () => { | |
| @@ -291,6 +291,10 @@ window.ermiteMR = (() => { | |||||
| 291 | let folded = false; | 291 | let folded = false; | ||
| 292 | try { folded = localStorage.getItem('mr-files-folded') === '1'; } catch { /* no storage: open */ } | 292 | try { folded = localStorage.getItem('mr-files-folded') === '1'; } catch { /* no storage: open */ } | ||
| 293 | if (folded) foldFiles(true); | 293 | if (folded) foldFiles(true); | ||
| 294 | + | // The page answers a refused action from the address of the action: show | |||
| 295 | + | // the address of the request, so that a reload does not post again. | |||
| 296 | + | const canonical = $('#diffs[data-canonical]')?.dataset.canonical; | |||
| 297 | + | if (canonical && location.pathname !== canonical) history.replaceState(history.state, '', canonical + location.hash); | |||
| 294 | watch(); | 298 | watch(); | ||
| 295 | // A link to a file or a comment that is not loaded yet. | 299 | // A link to a file or a comment that is not loaded yet. | ||
| 296 | const hash = () => { | 300 | const hash = () => { | ||
M internal/app/web_mr_test.go +4 -1
| @@ -466,6 +466,9 @@ func TestWebMergeRequestDraft(t *testing.T) { | |||
| 466 | 466 | ||
| 467 | 467 | res := b.form("/proj/merge-requests/1/merge", token, url.Values{"mode": {"fast-forward"}, "head_id": {head}}) | |
| 468 | 468 | assert.Equal(t, http.StatusConflict, res.status, "a draft is not merged") | |
| 469 | + | assert.Contains(t, res.body, `data-canonical="/proj/merge-requests/1"`, "the refused page names its own address") | |
| 470 | + | assert.Contains(t, res.body, `class="d-err"`, "the reason stays inline") | |
| 471 | + | assert.NotContains(t, b.get("/proj/merge-requests/1", as(token)).body, "data-canonical", "the plain page has no marker") | |
| 469 | 472 | ||
| 470 | 473 | res = b.form("/proj/merge-requests/1/ready", token, nil) | |
| 471 | 474 | require.Equal(t, http.StatusSeeOther, res.status, res.body) | |
| @@ -775,7 +778,7 @@ func TestWebMergeRequestMergeabilityBadge(t *testing.T) { | |||
| 775 | 778 | assert.Contains(t, body, `name="mode" value="fast-forward" checked`) | |
| 776 | 779 | assert.NotContains(t, body, `value="fast-forward" checked disabled`) | |
| 777 | 780 | assert.Contains(t, body, `id="mr-signing"`, "squash and merge commits say who signs them") | |
| 778 | - | assert.Contains(t, body, "signed with ermite's own key, generated automatically on first start") | |
| 781 | + | assert.Contains(t, body, "signed with ermite's own key (generated on first start)") | |
| 779 | 782 | assert.Contains(t, body, "<code>ermite signing-key show</code>") | |
| 780 | 783 | assert.Contains(t, body, "SHA256:", "the fingerprint of the signing key") | |
| 781 | 784 | assert.Contains(t, body, `:disabled="`, "the controls follow the badge") | |
| @@ -466,6 +466,9 @@ func TestWebMergeRequestDraft(t *testing.T) { | |||||
| 466 | 466 | ||||
| 467 | res := b.form("/proj/merge-requests/1/merge", token, url.Values{"mode": {"fast-forward"}, "head_id": {head}}) | 467 | res := b.form("/proj/merge-requests/1/merge", token, url.Values{"mode": {"fast-forward"}, "head_id": {head}}) | ||
| 468 | assert.Equal(t, http.StatusConflict, res.status, "a draft is not merged") | 468 | assert.Equal(t, http.StatusConflict, res.status, "a draft is not merged") | ||
| 469 | + | assert.Contains(t, res.body, `data-canonical="/proj/merge-requests/1"`, "the refused page names its own address") | |||
| 470 | + | assert.Contains(t, res.body, `class="d-err"`, "the reason stays inline") | |||
| 471 | + | assert.NotContains(t, b.get("/proj/merge-requests/1", as(token)).body, "data-canonical", "the plain page has no marker") | |||
| 469 | 472 | ||||
| 470 | res = b.form("/proj/merge-requests/1/ready", token, nil) | 473 | res = b.form("/proj/merge-requests/1/ready", token, nil) | ||
| 471 | require.Equal(t, http.StatusSeeOther, res.status, res.body) | 474 | require.Equal(t, http.StatusSeeOther, res.status, res.body) | ||
| @@ -775,7 +778,7 @@ func TestWebMergeRequestMergeabilityBadge(t *testing.T) { | |||||
| 775 | assert.Contains(t, body, `name="mode" value="fast-forward" checked`) | 778 | assert.Contains(t, body, `name="mode" value="fast-forward" checked`) | ||
| 776 | assert.NotContains(t, body, `value="fast-forward" checked disabled`) | 779 | assert.NotContains(t, body, `value="fast-forward" checked disabled`) | ||
| 777 | assert.Contains(t, body, `id="mr-signing"`, "squash and merge commits say who signs them") | 780 | assert.Contains(t, body, `id="mr-signing"`, "squash and merge commits say who signs them") | ||
| 778 | - | assert.Contains(t, body, "signed with ermite's own key, generated automatically on first start") | 781 | + | assert.Contains(t, body, "signed with ermite's own key (generated on first start)") |
| 779 | assert.Contains(t, body, "<code>ermite signing-key show</code>") | 782 | assert.Contains(t, body, "<code>ermite signing-key show</code>") | ||
| 780 | assert.Contains(t, body, "SHA256:", "the fingerprint of the signing key") | 783 | assert.Contains(t, body, "SHA256:", "the fingerprint of the signing key") | ||
| 781 | assert.Contains(t, body, `:disabled="`, "the controls follow the badge") | 784 | assert.Contains(t, body, `:disabled="`, "the controls follow the badge") | ||