implement proper sever route handling

This commit is contained in:
Robin Olsen
2026-02-02 14:16:08 +01:00
parent 622e830f6e
commit c69fd84fdd
10 changed files with 290 additions and 35 deletions

View File

@@ -0,0 +1,19 @@
package components
import "github.com/LazyBachelor/LazyPM/internal/models"
type IssueListProps struct {
Issues []*models.Issue
}
templ IssueList(props IssueListProps) {
<ul>
for _, issue := range props.Issues {
@IssueListItem(issue)
}
</ul>
}
templ IssueListItem(issue *models.Issue) {
<li>Issue ID: { issue.ID }, Title: { issue.Title } </li>
}