update templates
This commit is contained in:
parent
f91bd642a5
commit
d2b9e76389
@ -32,7 +32,7 @@
|
||||
<div class="board_header_catalog"><a href="{{board.Prefix}}catalog-{{board.Name}}.html"> Catalog </a></div>
|
||||
<!-- postform -->
|
||||
<div id="postform_container">
|
||||
{{{form}}}
|
||||
{{{board.PostForm}}}
|
||||
</div>
|
||||
<hr />
|
||||
<div id="threads_container">
|
||||
|
@ -9,6 +9,7 @@
|
||||
<label for="mod_key">secret</label>
|
||||
<input type="password" id="mod_key" name="privkey" />
|
||||
<input type="submit" value="login" />
|
||||
{{{csrfField}}}
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -6,8 +6,10 @@
|
||||
- reference ( the post we are replying to, or empty string if it's an op )
|
||||
- button ( the text for the reply button )
|
||||
- files ( bool, do we allow attachments ? )
|
||||
- csrf ( csrf token )
|
||||
}}
|
||||
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post">
|
||||
{{{csrf}}}
|
||||
<input type="hidden" name="reference" value="{{reference}}" />
|
||||
<div id="postform-outer">
|
||||
<div id="postform-inner">
|
||||
|
@ -3,7 +3,6 @@
|
||||
template parameters:
|
||||
- board ( the Board Model of the board this thread was posted in )
|
||||
- thread ( the Thread Model of the current thread being rendered )
|
||||
- form ( the post form markup )
|
||||
|
||||
Thread Model attributes:
|
||||
- OP , the Post Model of the original poster
|
||||
@ -32,7 +31,7 @@
|
||||
<div class="board_header">{{thread.Board}}</div>
|
||||
<!-- postform -->
|
||||
<div id="postform_container">
|
||||
{{{form}}}
|
||||
{{{thread.PostForm}}}
|
||||
</div>
|
||||
<hr />
|
||||
<div class="thread" id="thread_{{thread.OP.PostHash}}">
|
||||
|
Reference in New Issue
Block a user