Archived
1
0

improve templates

This commit is contained in:
jeff 2015-08-05 08:25:33 -04:00
parent 7b286140b3
commit 9a0c2e3b88
3 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,7 @@
board has the properties: board has the properties:
- Prefix ( absolute path like //site.tld/ or /path/ ) - Prefix ( absolute path like //site.tld/ or /path/ )
- Board ( the name of the board ) - Board ( the name of the board )
- Navar ( a function that renders the navbar, should not be escaped ) - Navbar ( a function that renders the navbar, should not be escaped )
- Threads ( a list of Thread Models with the last few replies ) - Threads ( a list of Thread Models with the last few replies )
}} }}
<html> <html>
@ -19,9 +19,9 @@
<title>{{board.Board}}</title> <title>{{board.Board}}</title>
</head> </head>
<body> <body>
<!-- begin header --> <!-- begin navbar -->
{{{board.Navbar}}} {{{board.Navbar}}}
<!-- end header --> <!-- end navbar -->
<!-- postform --> <!-- postform -->
<div id="postform_container"> <div id="postform_container">

View File

@ -14,4 +14,9 @@
on on
<span class="frontend_title">{{frontend}}</span> <span class="frontend_title">{{frontend}}</span>
</div> </div>
<div class="links">
{{# links }}
<span class="link"><a href="{{LinkURL}}">{{Text}}</a></span>
{{/ links }}
</div>
<hr /> <hr />

View File

@ -6,7 +6,6 @@
- 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 )
}} }}
<h1> posting </h1>
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post"> <form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post">
<input type="hidden" name="reference" value="{{reference}}" /> <input type="hidden" name="reference" value="{{reference}}" />
<input type="hidden" name="captcha" value="" id="captcha_input" /> <input type="hidden" name="captcha" value="" id="captcha_input" />