Nimrod -> Nim
This commit is contained in:
parent
57ee631735
commit
8d800c753b
1 changed files with 10 additions and 10 deletions
20
forum.nim
20
forum.nim
|
|
@ -1,6 +1,6 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# The Nimrod Forum
|
# The Nim Forum
|
||||||
# (c) Copyright 2012 Andreas Rumpf, Dominik Picheta
|
# (c) Copyright 2012 Andreas Rumpf, Dominik Picheta
|
||||||
# Look at license.txt for more info.
|
# Look at license.txt for more info.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
|
@ -867,12 +867,12 @@ routes:
|
||||||
body = genFormPost(c, "doedit", "Edit", header, content, true)
|
body = genFormPost(c, "doedit", "Edit", header, content, true)
|
||||||
title = "Editing post"
|
title = "Editing post"
|
||||||
else: discard
|
else: discard
|
||||||
resp c.genMain(body, title & " - Nimrod Forum")
|
resp c.genMain(body, title & " - Nim Forum")
|
||||||
else:
|
else:
|
||||||
incrementViews(c)
|
incrementViews(c)
|
||||||
let posts = genPostsList(c, $c.threadId, count)
|
let posts = genPostsList(c, $c.threadId, count)
|
||||||
cond count != 0
|
cond count != 0
|
||||||
resp genMain(c, posts, pSubject & " - Nimrod Forum")
|
resp genMain(c, posts, pSubject & " - Nim Forum")
|
||||||
|
|
||||||
get "/page/?@page?/?":
|
get "/page/?@page?/?":
|
||||||
createTFD()
|
createTFD()
|
||||||
|
|
@ -884,7 +884,7 @@ routes:
|
||||||
let list = genThreadsList(c, count)
|
let list = genThreadsList(c, count)
|
||||||
if count == 0:
|
if count == 0:
|
||||||
pass()
|
pass()
|
||||||
resp genMain(c, list, "Page " & $c.pageNum & " - Nimrod Forum",
|
resp genMain(c, list, "Page " & $c.pageNum & " - Nim Forum",
|
||||||
genRSSHeaders(c), showRssLinks = true)
|
genRSSHeaders(c), showRssLinks = true)
|
||||||
|
|
||||||
get "/profile/@nick/?":
|
get "/profile/@nick/?":
|
||||||
|
|
@ -893,13 +893,13 @@ routes:
|
||||||
var userinfo: TUserInfo
|
var userinfo: TUserInfo
|
||||||
if gatherUserInfo(c, @"nick", userinfo):
|
if gatherUserInfo(c, @"nick", userinfo):
|
||||||
resp genMain(c, c.genProfile(userinfo),
|
resp genMain(c, c.genProfile(userinfo),
|
||||||
@"nick" & "'s profile - Nimrod Forum")
|
@"nick" & "'s profile - Nim Forum")
|
||||||
else:
|
else:
|
||||||
halt()
|
halt()
|
||||||
|
|
||||||
get "/login/?":
|
get "/login/?":
|
||||||
createTFD()
|
createTFD()
|
||||||
resp genMain(c, genFormLogin(c), "Log in - Nimrod Forum")
|
resp genMain(c, genFormLogin(c), "Log in - Nim Forum")
|
||||||
|
|
||||||
get "/logout/?":
|
get "/logout/?":
|
||||||
createTFD()
|
createTFD()
|
||||||
|
|
@ -908,7 +908,7 @@ routes:
|
||||||
|
|
||||||
get "/register/?":
|
get "/register/?":
|
||||||
createTFD()
|
createTFD()
|
||||||
resp genMain(c, genFormRegister(c), "Register - Nimrod Forum")
|
resp genMain(c, genFormRegister(c), "Register - Nim Forum")
|
||||||
|
|
||||||
template readIDs(): stmt =
|
template readIDs(): stmt =
|
||||||
# Retrieve the threadid, postid and pagenum
|
# Retrieve the threadid, postid and pagenum
|
||||||
|
|
@ -926,7 +926,7 @@ routes:
|
||||||
body.add genPostPreview(c, @"subject", @"content",
|
body.add genPostPreview(c, @"subject", @"content",
|
||||||
c.userName, $getGMTime(getTime()))
|
c.userName, $getGMTime(getTime()))
|
||||||
body.add genFormPost(c, action, topText, reuseText, reuseText, isEdit)
|
body.add genFormPost(c, action, topText, reuseText, reuseText, isEdit)
|
||||||
resp genMain(c, body(), "Nimrod Forum - " &
|
resp genMain(c, body(), "Nim Forum - " &
|
||||||
(if c.isPreview: "Preview" else: "Error"))
|
(if c.isPreview: "Preview" else: "Error"))
|
||||||
|
|
||||||
post "/dologin":
|
post "/dologin":
|
||||||
|
|
@ -982,7 +982,7 @@ routes:
|
||||||
get "/newthread/?":
|
get "/newthread/?":
|
||||||
createTFD()
|
createTFD()
|
||||||
resp genMain(c, genFormPost(c, "donewthread", "New thread", "", "", false),
|
resp genMain(c, genFormPost(c, "donewthread", "New thread", "", "", false),
|
||||||
"New Thread - Nimrod Forum")
|
"New Thread - Nim Forum")
|
||||||
|
|
||||||
get "/setUserStatus/?":
|
get "/setUserStatus/?":
|
||||||
createTFD()
|
createTFD()
|
||||||
|
|
@ -1045,7 +1045,7 @@ routes:
|
||||||
const licenseRst = slurp("static/license.rst")
|
const licenseRst = slurp("static/license.rst")
|
||||||
get "/license":
|
get "/license":
|
||||||
createTFD()
|
createTFD()
|
||||||
resp genMain(c, rstToHtml(licenseRst), "Content license - Nimrod Forum")
|
resp genMain(c, rstToHtml(licenseRst), "Content license - Nim Forum")
|
||||||
|
|
||||||
post "/search/?@page?":
|
post "/search/?@page?":
|
||||||
cond isFTSAvailable
|
cond isFTSAvailable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue