Added Board Rules

This commit is contained in:
Tim Schuster committed 2017-03-15 14:14:35 +01:00
1 parent 19d0e9282d
commit 477d3477df
6 files changed
+114 -6

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ func handleNewThread(w http.ResponseWriter, r *http.Request) {
var mainReply = &resources.Reply{}
thread.Board = chi.URLParam(r, "board")
thread.Metadata = map[string]string{}
err = parseReply(r, mainReply)
if err == trollThrottle {
+10
View File
@@ -103,6 +103,16 @@
<input type="submit" value="Post" />
</td>
</tr>
{{ if .Board.Metadata.rules }}
<tr>
<td class="postblock">
Rules
</td>
<td class="rules">
{{ renderText .Board.Metadata.rules }}
</td>
</tr>
{{ end }}
</tbody>
</table>
</form>