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,13 +11,7 @@
- Navbar ( a function that renders the navbar, should not be escaped )
- Threads ( a list of Thread Models with the last few replies )
}}
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/static/user.css">
<title>{{board.Board}}</title>
</head>
<body>
<!doctype html><html><head><link rel="stylesheet" href="/static/chen-chan.css"><title>{{board.Board}}</title></head><body>
{{{board.Navbar}}}
{{{form}}}
<dl>
@ -30,5 +24,4 @@
<hr>
{{/board.Threads}}
</dl>
</body>
</html>
</body></html>

View File

@ -5,14 +5,8 @@
- frontend ( the name of the frontend )
- prefix ( the site's prefix )
}}
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/static/user.css">
<title>{{frontend}} boards</title>
</head>
<body>
<table border="1">
<!doctype html><html><head><link rel="stylesheet" type="text/css" href="/static/chen-chan.css"><title>{{frontend}} boards</title></head><body>
<table>
<tr>
<th>board</th>
<th>posts per hour</th>
@ -36,5 +30,4 @@
</tr>
{{/ graph}}
</table>
</body>
</html>
</body></html>

View File

@ -8,4 +8,4 @@
- frontend ( the name of the frontend )
- 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

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

View File

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

View File

@ -6,14 +6,4 @@
- message ( the message returned from the login attempt )
- fail ( present if the login failed ) // not yet added
}}
<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>
<!doctype html><html><head><meta http-equiv="refresh" content="1; {{mod_prefix}}"><title>login</title></head><body><p>{{message}}</p></body></html>

View File

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

View File

@ -1,7 +1,3 @@
<!doctype html>
<html>
<meta http-equiv="refresh" content="1; {{redirect_url}}" />
<body>
<p>fail: {{reason}}</p>
</body>
</html>
<!doctype html><html><head>
<meta http-equiv="refresh" content="1; {{redirect_url}}"></head>
<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 )
- message_id ( the value of the Message-ID header in the post we made, the truncated sha1 of this is the >>posthash )
}}
<!doctype html>
<html>
<head>
<meta http-equiv="refresh" content="2; {{redirect_url}}">
</head>
<body>
<pre>posted as {{message_id}}</pre>
</body>
</html>
<!doctype html><html><head><meta http-equiv="refresh" content="2; {{redirect_url}}"></head><body><pre>posted as {{message_id}}</pre></body></html>

View File

@ -11,11 +11,10 @@
- Board , the name of the Board this thread is on
- 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>
<script type="text/javascript" src="{{thread.Prefix}}static/nntpchan.js"></script>
</head>
<body>
</head><body>
{{{thread.Navbar}}}
{{{form}}}
<dl>

View File

@ -4,13 +4,10 @@
- prefix ( site prefix )
- threads ( a list of Thread Models that represent the latest threads )
}}
<!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>ukko/overboard</title>
</head>
<body>
</head><body>
<a href="/">frontpage</a>
{{#threads}}
<hr>
@ -22,5 +19,4 @@
{{/Truncate.Replies}}
</dl>
{{/threads}}
</body>
</html>
</body></html>