Archived
1
0

update templates

This commit is contained in:
Jeff Becker 2016-02-21 16:51:56 -05:00
parent f91bd642a5
commit d2b9e76389
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
4 changed files with 5 additions and 3 deletions

View File

@ -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">

View File

@ -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>

View File

@ -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">

View File

@ -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}}">