diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-15 23:59:00 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-15 23:59:00 +0200 |
commit | 9da246e91e7143536973bd9cfd1f11f4a6578f3b (patch) | |
tree | 88a269dc1c7583729ec3cd9269f9a83b3da22b35 /view/timer_templ.go | |
parent | 3d507d36ea2c7955d98a16b85cb7bc02c8923caa (diff) |
Protect timer operations with session
Diffstat (limited to 'view/timer_templ.go')
-rw-r--r-- | view/timer_templ.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/view/timer_templ.go b/view/timer_templ.go index 1cafffd..1dbf58c 100644 --- a/view/timer_templ.go +++ b/view/timer_templ.go @@ -28,20 +28,20 @@ func TimerView(timer model.Timer) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"timer\"><h1>This is timer ") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"timer\"><h1>Timer \"") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(timer.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `view\timer.templ`, Line: 10, Col: 32} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `view\timer.templ`, Line: 10, Col: 25} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</h1><p><a href=\"/\">Back to list</a></p><p>Start time: <local-date>") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"</h1><p><a href=\"/\">Back to list</a></p><p>Start time: <local-date>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } |