update templates, add docs to some
This commit is contained in:
parent
9f370d3985
commit
7b286140b3
@ -1,3 +1,16 @@
|
|||||||
|
{{!
|
||||||
|
board.mustache, displays the contents of page N of the board
|
||||||
|
|
||||||
|
template parameters:
|
||||||
|
- board ( the model of the current page )
|
||||||
|
- page ( the page number of the current page )
|
||||||
|
|
||||||
|
board has the properties:
|
||||||
|
- Prefix ( absolute path like //site.tld/ or /path/ )
|
||||||
|
- Board ( the name of the board )
|
||||||
|
- Navar ( a function that renders the navbar, should not be escaped )
|
||||||
|
- Threads ( a list of Thread Models with the last few replies )
|
||||||
|
}}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@ -7,7 +20,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- begin header -->
|
<!-- begin header -->
|
||||||
{{{board.RenderNavbar}}}
|
{{{board.Navbar}}}
|
||||||
<!-- end header -->
|
<!-- end header -->
|
||||||
|
|
||||||
<!-- postform -->
|
<!-- postform -->
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
{{!
|
||||||
|
keygen.mustache -- page containing a newly generated tripcode
|
||||||
|
template parameters:
|
||||||
|
- prefix ( the site prefix )
|
||||||
|
- public ( the public key in hex )
|
||||||
|
- secret ( the secret key in hex )
|
||||||
|
- tripcode ( html version of the public key )
|
||||||
|
}}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"></meta>
|
<meta charset="utf-8"></meta>
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
{{!
|
||||||
|
modlogin_result.mustache -- shows the result of a login attempt
|
||||||
|
template parameters:
|
||||||
|
- prefix ( the site prefix )
|
||||||
|
- mod_prefix ( the prefix to the mod panel, could be something like https://mod.site.tld/ or /mod/ )
|
||||||
|
- message ( the message returned from the login attempt )
|
||||||
|
- fail ( present if the login failed )
|
||||||
|
}}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link ref="stylesheet" href="{{prefix}}static/site.css"></link>
|
<link ref="stylesheet" href="{{prefix}}static/site.css"></link>
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
{{!
|
||||||
|
modpage.mustache -- the moderator panel when logged in
|
||||||
|
template parameters:
|
||||||
|
- prefix ( the site's prefix )
|
||||||
|
|
||||||
|
}}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="{{prefix}}static/site.css"></link>
|
<link rel="stylesheet" href="{{prefix}}static/site.css"></link>
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
<hr />
|
{{!
|
||||||
|
navbar.mustache -- element on the top of each nod-mod page
|
||||||
|
|
||||||
|
TODO: make this not suck, have a board list, have board page list
|
||||||
|
|
||||||
|
template parameters:
|
||||||
|
- name ( the name of whatever resource we are on, board/thread )
|
||||||
|
- frontend ( the name of the frontend we are on )
|
||||||
|
- links ( a list of Link Models to display )
|
||||||
|
|
||||||
|
}}
|
||||||
<div>
|
<div>
|
||||||
<span class="board_title">{{{board.Name}}}</span>
|
<span class="board_title">{{name}}</span>
|
||||||
on
|
on
|
||||||
<span class="frontend_title">{{{board.Frontend}}}</span>
|
<span class="frontend_title">{{frontend}}</span>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
@ -1,5 +1,11 @@
|
|||||||
|
{{!
|
||||||
|
post_success.mustache -- shown when we do a successful post
|
||||||
|
template parameters:
|
||||||
|
- redirect_url ( the url of the next page we should redirect to )
|
||||||
|
- message_id ( the value of the Message-ID header in the post we made, the truncated sha1 of this is the >>posthash )
|
||||||
|
}}
|
||||||
<html>
|
<html>
|
||||||
<meta http-equiv="refresh" content="5; {{{redirect_url}}}" />
|
<meta http-equiv="refresh" content="2; {{redirect_url}}" />
|
||||||
<body>
|
<body>
|
||||||
<pre>posted as {{message_id}}</pre>
|
<pre>posted as {{message_id}}</pre>
|
||||||
</body>
|
</body>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{{!
|
{{!
|
||||||
postform.mustache
|
postform.mustache -- the form for posting
|
||||||
template parameters:
|
|
||||||
|
template parameters:
|
||||||
- post_url ( the url of the post form )
|
- post_url ( the url of the post form )
|
||||||
- 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 )
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>{{title}}</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{{{content}}}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,3 +1,16 @@
|
|||||||
|
{{!
|
||||||
|
thread.mustache -- renders to a thread-*.html page, shows the entire thread
|
||||||
|
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
|
||||||
|
- Replies , a list of all the replies or empty if none
|
||||||
|
- Board , the name of the Board this thread is on
|
||||||
|
- BoardURL , the url that points to the board index page
|
||||||
|
}}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@ -6,6 +19,11 @@
|
|||||||
<title> {{thread.OP.Subject}} </title>
|
<title> {{thread.OP.Subject}} </title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<!-- begin navbar -->
|
||||||
|
{{{thread.Navbar}}}
|
||||||
|
<!-- end navbar -->
|
||||||
|
|
||||||
<!-- postform -->
|
<!-- postform -->
|
||||||
<div id="postform_container">
|
<div id="postform_container">
|
||||||
{{{form}}}
|
{{{form}}}
|
||||||
@ -15,10 +33,10 @@
|
|||||||
<div class="thread_header">
|
<div class="thread_header">
|
||||||
</div>
|
</div>
|
||||||
{{{thread.OP.RenderPost}}}
|
{{{thread.OP.RenderPost}}}
|
||||||
{{# repls}}
|
{{# thread.Replies}}
|
||||||
{{{RenderPost}}}
|
{{{RenderPost}}}
|
||||||
<br/>
|
<br/>
|
||||||
{{/ repls}}
|
{{/ thread.Replies}}
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
|
{{!
|
||||||
|
ukko.mustache -- overboard, contains the last threads posted regardless of newsgroup
|
||||||
|
template parameters:
|
||||||
|
- prefix ( site prefix )
|
||||||
|
- threads ( a list of Thread Models that represent the latest threads )
|
||||||
|
}}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title> ukko </title>
|
<title> ukko / overboard </title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="{{prefix}}static/site.css"></link>
|
<link rel="stylesheet" href="{{prefix}}static/site.css"></link>
|
||||||
</head>
|
</head>
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" href="{{prefix}}static/site.css"></link>
|
|
||||||
<title> here is a new tripcode </title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<pre>New Tripcode:
|
|
||||||
<b id="secret_key">secret: {{secret}}</b>
|
|
||||||
<b id="public_key">public: {{public}}</b>
|
|
||||||
<b id="capcode_key">tripcode: {{tripcode}}</b>
|
|
||||||
</pre>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Reference in New Issue
Block a user