package routes import ( "github.com/LazyBachelor/LazyPM/internal/models" "github.com/LazyBachelor/LazyPM/pkg/web/components" ) type IssueDetailProps struct { Issue models.Issue DisplayOwner string DisplayAssignee string Comments []*models.Comment } templ IssueDetailContent(props IssueDetailProps) {
@components.IconBack() Back to Issues
@components.IssueDetailCard(components.IssueDetailCardProps{Issue: props.Issue, DisplayOwner: props.DisplayOwner, DisplayAssignee: props.DisplayAssignee})
@components.CommentSection(components.CommentSectionProps{ IssueID: props.Issue.ID, Comments: props.Comments, })
} templ IssueDetail(props IssueDetailProps) { @BaseLayout(BaseLayoutProps{SearchQuery: ""}) { @IssueDetailContent(props) } }