+
}
@@ -245,7 +245,7 @@ templ head() {
templ header() {
")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -792,7 +808,7 @@ func header() templ.Component {
templ_7745c5c3_Var37 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -872,3 +888,13 @@ func formatDuration(d time.Duration) string {
second := int(d.Seconds()) % 60
return fmt.Sprintf("%02dH:%02dM:%02dS", hour, minute, second)
}
+
+func txLinkAttrs(txID string) templ.Attributes {
+ return templ.Attributes{
+ "href": "/tx/" + txID,
+ "hx-trigger": "click",
+ "hx-get": "/tx/" + txID,
+ "hx-swap": "outerHTML",
+ "hx-target": "#table",
+ }
+}
diff --git a/integrationtests/integration_test.go b/integrationtests/integration_test.go
index 1b3ca6b..111de70 100644
--- a/integrationtests/integration_test.go
+++ b/integrationtests/integration_test.go
@@ -74,7 +74,7 @@ func receiveFirstEvent(t *testing.T) {
select {
case e := <-events:
- expected := `
`
+ expected := `
`
require.Equal(t, expected, string(e.Data))
case <-time.After(time.Second * 5):
t.Fatal("timeout")
@@ -103,8 +103,8 @@ func receiveEventsFromBuffer(t *testing.T) {
for i := 0; i < expectedEvents; i++ {
select {
case e := <-events:
- expected := `
`
- assert.Equal(t, fmt.Sprintf(expected, i, i, i, i), string(e.Data))
+ expected := `
`
+ assert.Equal(t, fmt.Sprintf(expected, i, i, i, i, i, i, i, i, i), string(e.Data))
case <-time.After(time.Second * 5):
t.Fatal("timeout")
}