Archived
1
0

change css filename

This commit is contained in:
chen-chan 2015-12-23 01:33:03 +01:00
parent e545bab034
commit bb1c6890ac
12 changed files with 114 additions and 158 deletions

View File

@ -11,24 +11,17 @@
- Navbar ( 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 )
}} }}
<!doctype html> <!doctype html><html><head><link rel="stylesheet" href="/static/chen-chan.css"><title>{{board.Board}}</title></head><body>
<html> {{{board.Navbar}}}
<head> {{{form}}}
<link rel="stylesheet" type="text/css" href="/static/user.css"> <dl>
<title>{{board.Board}}</title> <hr>
</head>
<body>
{{{board.Navbar}}}
{{{form}}}
<dl>
<hr>
{{#board.Threads}} {{#board.Threads}}
{{{OP.Truncate.RenderPost}}} {{{OP.Truncate.RenderPost}}}
{{#Truncate.Replies}} {{#Truncate.Replies}}
{{{Truncate.RenderPost}}} {{{Truncate.RenderPost}}}
{{/Truncate.Replies}} {{/Truncate.Replies}}
<hr> <hr>
{{/board.Threads}} {{/board.Threads}}
</dl> </dl>
</body> </body></html>
</html>

View File

@ -5,36 +5,29 @@
- frontend ( the name of the frontend ) - frontend ( the name of the frontend )
- prefix ( the site's prefix ) - prefix ( the site's prefix )
}} }}
<!doctype html> <!doctype html><html><head><link rel="stylesheet" type="text/css" href="/static/chen-chan.css"><title>{{frontend}} boards</title></head><body>
<html> <table>
<head> <tr>
<link rel="stylesheet" type="text/css" href="/static/user.css"> <th>board</th>
<title>{{frontend}} boards</title> <th>posts per hour</th>
</head> <th>posts per day</th>
<body> <th>total</th>
<table border="1"> </tr>
{{# graph}}
<tr> <tr>
<th>board</th> <td>
<th>posts per hour</th> <a href="{{prefix}}{{Board}}-0.html">{{Board}}</a>
<th>posts per day</th> </td>
<th>total</th> <td>
{{Hour}}
</td>
<td>
{{Day}}
</td>
<td>
{{All}}
</td>
</tr> </tr>
{{# graph}} {{/ graph}}
<tr> </table>
<td> </body></html>
<a href="{{prefix}}{{Board}}-0.html">{{Board}}</a>
</td>
<td>
{{Hour}}
</td>
<td>
{{Day}}
</td>
<td>
{{All}}
</td>
</tr>
{{/ graph}}
</table>
</body>
</html>

View File

@ -8,4 +8,4 @@
- frontend ( the name of the frontend ) - frontend ( the name of the frontend )
- prefix ( the site's prefix ) - prefix ( the site's prefix )
}} }}
<!doctype html><html><head><link rel="stylesheet" href="/static/user.css"><title>{{frontend}} on nntpchan</title></head><body><p>{{frontend}} on nntpchan</p><p><a href="ukko.html">overboard</a> <a href="{{prefix}}boards.html">boards</a> <a href="{{prefix}}static/faq.html">faq</a></p><dl><dt>last posts:</dt><dd>{{{overview.Render}}}</dd></dl><dl><dt>board stats:</dt><dd><table><tr><th>board</th><th>posts this hour</th><th>posts today</th><th>total</th></tr>{{# boardgraph}}<tr><td><a href="{{prefix}}{{Board}}-0.html">{{Board}}</a></td><td>{{Hour}}</td><td>{{Day}}</td><td>{{All}}</td></tr>{{/ boardgraph}}</table></dd></dl><dl><dt>total stats:</dt><dd>{{{postsgraph.Render}}}</dd></dl><p>{{totalposts}} posts total</p></body></html> <!doctype html><html><head><link rel="stylesheet" href="/static/chen-chan.css"><title>{{frontend}} on nntpchan</title></head><body><p>{{frontend}} on nntpchan</p><p><a href="ukko.html">overboard</a> <a href="{{prefix}}boards.html">boards</a> <a href="{{prefix}}static/faq.html">faq</a></p><dl><dt>last posts:</dt><dd>{{{overview.Render}}}</dd></dl><dl><dt>board stats:</dt><dd><table><tr><th>board</th><th>posts this hour</th><th>posts today</th><th>total</th></tr>{{# boardgraph}}<tr><td><a href="{{prefix}}{{Board}}-0.html">{{Board}}</a></td><td>{{Hour}}</td><td>{{Day}}</td><td>{{All}}</td></tr>{{/ boardgraph}}</table></dd></dl><dl><dt>total stats:</dt><dd>{{{postsgraph.Render}}}</dd></dl><p>{{totalposts}} posts total</p></body></html>

View File

@ -5,9 +5,9 @@
- public ( the public key in hex ) - public ( the public key in hex )
- secret ( the secret key in hex ) - secret ( the secret key in hex )
- tripcode ( html version of the public key ) - tripcode ( html version of the public key )
}} }}
<!doctype html><html><head><title>new tripcode</title></head><body><pre> <!doctype html><html><head><title>new tripcode</title></head><body><pre>
new tripcode: new tripcode
secret: {{secret}} secret: {{secret}}
public: {{public}} public: {{public}}

View File

@ -1,14 +1,10 @@
<html> <!doctype html><html><head>
<head> <link rel="stylesheet" href="{{prefix}}static/chen-chan.css">
<link rel="stylesheet" href="{{prefix}}static/site.css" /> <title>login</title>
<link rel="stylesheet" href="{{prefix}}static/user.css" /> </head><body>
<title>login</title> <form action="login" method="POST" name="modlogin">
</head> <label for="mod_key">secret</label>
<body> <input type="password" id="mod_key" name="privkey">
<form action="login" method="POST" name="modlogin"> <input type="submit" value="login">
<label for="mod_key">secret</label> </form>
<input type="password" id="mod_key" name="privkey" /> </body></html>
<input type="submit" value="login" />
</form>
</body>
</html>

View File

@ -6,14 +6,4 @@
- message ( the message returned from the login attempt ) - message ( the message returned from the login attempt )
- fail ( present if the login failed ) // not yet added - fail ( present if the login failed ) // not yet added
}} }}
<html> <!doctype html><html><head><meta http-equiv="refresh" content="1; {{mod_prefix}}"><title>login</title></head><body><p>{{message}}</p></body></html>
<head>
<link rel="stylesheet" href="{{prefix}}static/site.css" />
<link rel="stylesheet" href="{{prefix}}static/user.css" />
<meta http-equiv="refresh" content="1; {{mod_prefix}}"></meta>
<title>login</title>
</head>
<body>
<p>{{message}}</p>
</body>
</html>

View File

@ -2,33 +2,30 @@
modpage.mustache -- the moderator panel when logged in modpage.mustache -- the moderator panel when logged in
template parameters: template parameters:
- prefix ( the site's prefix ) - prefix ( the site's prefix )
}} }}
<html> <!doctype html><html><head>
<head> <link rel="stylesheet" href="{{prefix}}static/chen-chan.css">
<link rel="stylesheet" href="{{prefix}}static/site.css" />
<link rel="stylesheet" href="{{prefix}}static/user.css" />
<!-- yes it uses js --> <!-- yes it uses js -->
<script type="text/javascript" src="{{prefix}}static/mod.js"></script> <script src="{{prefix}}static/mod.js"></script>
<title> nntpchan mod page </title> <title>nntpchan mod page</title>
</head> </head><body>
<body> <dl>
<div> <dt>post actions</dt>
<div> post actions </div> <dd>
<hr />
<div> <div>
<label for="nntpchan_mod_target">target</label> <label for="nntpchan_mod_target">target</label>
<input id="nntpchan_mod_target" type="text" /> <input id="nntpchan_mod_target" type="text">
</div> </div>
<div> <div>
<button onclick="nntpchan_ban()">ban (url)</button> <button onclick="nntpchan_ban()">ban (url)</button>
<button onclick="nntpchan_delete()">delete (url)</button> <button onclick="nntpchan_delete()">delete (url)</button>
<button onclick="nntpchan_unban()">unban (ip)</button> <button onclick="nntpchan_unban()">unban (ip)</button>
</div> </div>
</div> </dd>
<hr /> </dl>
<div> <dl>
<div> key actions </div> <dt>key actions</dt>
<dd>
<div> <div>
<label for="nntpchan_board_target">pubkey:</label> <label for="nntpchan_board_target">pubkey:</label>
<input type="text" id="nntpchan_key_target" /> <input type="text" id="nntpchan_key_target" />
@ -37,13 +34,14 @@
<button onclick="nntpchan_key_add()">add key</button> <button onclick="nntpchan_key_add()">add key</button>
<button onclick="nntpchan_key_del()">remove key</button> <button onclick="nntpchan_key_del()">remove key</button>
</div> </div>
</div> </dd>
<hr /> </dl>
<div> <dl>
<div> board actions </div> <dt>board actions</dt>
<dd>
<div> <div>
<label for="nntpchan_board_target">board name:</label> <label for="nntpchan_board_target">board name:</label>
<input type="text" id="nntpchan_board_target" /> <input type="text" id="nntpchan_board_target">
</div> </div>
<div> <div>
<button onclick="nntpchan_admin_board('frontend.add')">add board</button> <button onclick="nntpchan_admin_board('frontend.add')">add board</button>
@ -58,27 +56,30 @@
<div> <div>
<button onclick="nntpchan_admin_board('frontend.nuke')">nuke</button> <button onclick="nntpchan_admin_board('frontend.nuke')">nuke</button>
</div> </div>
</div> </dd>
<hr /> </dl>
<div> <dl>
<div> <dt>lightweight actions</dt>
lightweight actions <dd>
</div> <button onclick="nntpchan_admin('template.reload')">reload all templates</button>
<div> </dd>
<button onclick="nntpchan_admin('template.reload')">reload all templates</button> </dl>
</div> <dl>
</div> <dt>very load heavy actions, use with care</dt>
<hr /> <dd>
<div>
<label>very load heavy actions, use with care</label>
<div> <div>
<button onclick="nntpchan_admin('frontend.regen')">regenerate all pages</button> <button onclick="nntpchan_admin('frontend.regen')">regenerate all pages</button>
<button onclick="nntpchan_admin('thumbnail.regen')">regenerate all thumbnails</button> <button onclick="nntpchan_admin('thumbnail.regen')">regenerate all thumbnails</button>
</div> </div>
</div> </dd>
<div id="nntpchan_mod_result"></div> </dl>
<noscript> <dl>
<b>enable js to use the mod panel kthx</b> <dt>status</dt>
</noscript> <dd>
</body> <div id="nntpchan_mod_result"></div>
</html> <noscript>
<b>enable js to use the mod panel kthx</b>
</noscript>
</dd>
</dl>
</body></html>

View File

@ -1,7 +1,3 @@
<!doctype html> <!doctype html><html><head>
<html> <meta http-equiv="refresh" content="1; {{redirect_url}}"></head>
<meta http-equiv="refresh" content="1; {{redirect_url}}" /> <body><p>fail: {{reason}}</p></body></html>
<body>
<p>fail: {{reason}}</p>
</body>
</html>

View File

@ -4,12 +4,4 @@
- redirect_url ( the url of the next page we should redirect to ) - 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 ) - message_id ( the value of the Message-ID header in the post we made, the truncated sha1 of this is the >>posthash )
}} }}
<!doctype html> <!doctype html><html><head><meta http-equiv="refresh" content="2; {{redirect_url}}"></head><body><pre>posted as {{message_id}}</pre></body></html>
<html>
<head>
<meta http-equiv="refresh" content="2; {{redirect_url}}">
</head>
<body>
<pre>posted as {{message_id}}</pre>
</body>
</html>

View File

@ -5,7 +5,7 @@
- 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 )
}} }}
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post" style="overflow:auto"> <form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post" style="overflow:auto">
<input type="hidden" name="reference" value="{{reference}}"> <input type="hidden" name="reference" value="{{reference}}">
<textarea id="postform_message" name="message" placeholder="text" cols="40" rows="10" style="float:left" ></textarea><br> <textarea id="postform_message" name="message" placeholder="text" cols="40" rows="10" style="float:left" ></textarea><br>

View File

@ -10,12 +10,11 @@
- Replies , a list of all the replies or empty if none - Replies , a list of all the replies or empty if none
- Board , the name of the Board this thread is on - Board , the name of the Board this thread is on
- BoardURL , the url that points to the board index page - BoardURL , the url that points to the board index page
}} }}
<!doctype html><html><head><link rel="stylesheet" type="text/css" href="/static/user.css"> <!doctype html><html><head><link rel="stylesheet" href="/static/chen-chan.css">
<title>{{thread.OP.Subject}}</title> <title>{{thread.OP.Subject}}</title>
<script type="text/javascript" src="{{thread.Prefix}}static/nntpchan.js"></script> <script type="text/javascript" src="{{thread.Prefix}}static/nntpchan.js"></script>
</head> </head><body>
<body>
{{{thread.Navbar}}} {{{thread.Navbar}}}
{{{form}}} {{{form}}}
<dl> <dl>

View File

@ -3,24 +3,20 @@
template parameters: template parameters:
- prefix ( site prefix ) - prefix ( site prefix )
- threads ( a list of Thread Models that represent the latest threads ) - threads ( a list of Thread Models that represent the latest threads )
}} }}
<!doctype html> <!doctype html><html><head>
<html> <link rel="stylesheet" href="/static/chen-chan.css">
<head> <title>ukko/overboard</title>
<link rel="stylesheet" type="text/css" href="/static/user.css"> </head><body>
<title>ukko/overboard</title> <a href="/">frontpage</a>
</head> {{#threads}}
<body> <hr>
<a href="/">frontpage</a> <p>posted on <a href="{{{BoardURL}}}">{{OP.Board}}</a></p>
{{#threads}} <dl>
<hr>
<p>posted on <a href="{{{BoardURL}}}">{{OP.Board}}</a></p>
<dl>
{{{OP.Truncate.RenderPost}}} {{{OP.Truncate.RenderPost}}}
{{#Truncate.Replies}} {{#Truncate.Replies}}
{{{Truncate.RenderPost}}} {{{Truncate.RenderPost}}}
{{/Truncate.Replies}} {{/Truncate.Replies}}
</dl> </dl>
{{/threads}} {{/threads}}
</body> </body></html>
</html>