Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 4e0e5c44f6
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (57 sloc) 1.833 kB
#! stdtmpl
#proc genMain(c: var TForumData, content: string): string =
# result = ""
# var stats: TForumStats
# if c.isThreadsList: stats = c.getStats(false)
# else:
# stats = c.getStats(true)
# end if
<!doctype html>
<html lang="en">
<title>Nimrod Forum</title>
<link rel="stylesheet" href="${c.req.makeUri("css/normalize.css", absolute = false)}">
<link rel="stylesheet" href="${c.req.makeUri("css/style.css", absolute = false)}">
<div id="wrapper">
<div id="nimbtn">
<a href="">Homepage</a>
<div id="header">
#let frontQuery = c.req.makeUri("/")
<span><a href="${frontQuery}">Nimrod's Forum</a></span>
#if c.loggedIn:
<a href="${frontQuery}logout" class="right">Logout</a>
<span id="welcome">$c.username</span>
${genGravatar(, 26)}
<a href="${frontQuery}register" class="right">Register</a>
<a href="${frontQuery}login" class="right">Login</a>
#end if
<div id="topbar">
<div id="content">
<span style="color:red">$c.errorMsg</span>
#if c.req.pathInfo.normalizeUri notin noPageNums:
#end if
<div id="topbar">
#if c.isThreadsList:
#end if
<div id="footerPush"></div>
<div id="footer">
<span>Written in <a href="">Nimrod</a> using <a href="">Jester</a></span>
<span> | <a href="">Fork on Github</a></span>
<span style="float:right;">Generated in ${int((epochTime()-c.startTime)*1000.0)}ms</span>
Jump to Line
Something went wrong with that request. Please try again.