Some work

This commit is contained in:
2024-04-08 23:23:23 +02:00
parent 01e96380a4
commit c60dd3357f
15 changed files with 407 additions and 23 deletions

17
view/timers_list.templ Normal file
View File

@ -0,0 +1,17 @@
package view
import (
"stevenlr.com/timer/model"
"fmt"
)
templ timer(t model.Timer) {
<p><a href={ templ.URL(fmt.Sprintf("/timer/%s", t.Id)) }>{ t.Name }</a></p>
}
templ TimersList(timers []model.Timer) {
<h1>Timers</h1>
for _, t := range timers {
@timer(t)
}
}