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