Small code cleanup

This commit is contained in:
Dominic Ferrando
2025-04-18 12:48:18 -04:00
parent d57a83dedc
commit dc104b55e1
6 changed files with 49 additions and 44 deletions
+2 -2
View File
@@ -10,11 +10,11 @@ import (
templ Thread(board database.Board, thread database.Thread, posts []database.Post) {
@shared.Layout() {
@BoardHeader(board)
<div class="new-thread-container">
<div class="new-post-container">
<form id="newPostForm" hx-swap="none" hx-post={ fmt.Sprintf("/%s/threads/%d", board.Slug, thread.Id) }>
<table>
<tbody>
<tr class="new-thread-form-field">
<tr class="new-post-form-field">
<th>Comment</th>
<td><textarea name="body" required></textarea></td>
</tr>