diff --git a/forms.tmpl b/forms.tmpl
index 7a0f9a8..4419486 100644
--- a/forms.tmpl
+++ b/forms.tmpl
@@ -68,30 +68,30 @@
#end proc
#
#
-#proc genPostPreview(c: var TForumData,
+#proc genPostPreview(c: var TForumData,
# title, content, author, date: string): string =
# result = ""
-
-
- |
- ${xmlEncode(title)}
- ${xmlEncode(date)}
- |
-
-
- |
- ${xmlEncode(author)}
- |
-
- #try:
- ${content.rstToHtml}
- #except EParseError:
- # c.errorMsg = getCurrentExceptionMsg()
- #end
- |
-
-
+
diff --git a/forum.nim b/forum.nim
index dc32cfb..42da8f2 100644
--- a/forum.nim
+++ b/forum.nim
@@ -464,6 +464,7 @@ proc login(c: var TForumData, name, pass: string): bool =
proc hasReplyBtn(c: var TForumData): bool =
result = c.req.pathInfo != "/donewthread" and c.req.pathInfo != "/doreply"
+ result = result and c.req.params["action"] != "reply"
return c.threadId >= 0 and result
proc genActionMenu(c: var TForumData): string =
diff --git a/public/css/style.css b/public/css/style.css
index 1f27869..2f48282 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -246,7 +246,7 @@ pre .end { background:url("/images/tabEnd.png") no-repeat left bottom; }
#talk-threads > div > .detail > div:first-child > div { background:url("/images/forum-views.png") no-repeat left; cursor: help; }
#talk-threads > div > .detail > div:last-child > div { background:url("/images/forum-posts.png") no-repeat left; cursor: help; }
- #talk-thread > div { margin:20px 0; min-height:150px; box-shadow:1px 3px 12px rgba(0,0,0,.4) }
+ #talk-thread > div { margin:20px 0; min-height:150px; box-shadow:1px 3px 12px rgba(0,0,0,.4); padding-bottom: 10pt; }
#talk-thread > div > .author > div > .avatar { margin-top:20px; }
#talk-thread > div > .author > div > .name { }
#talk-thread > div > .author > div > .date { font-size: 8pt; color: white; }
@@ -475,13 +475,20 @@ div#sidebar .content span.error
article#content form
{
-
border-right: 8px solid rgba(0, 0, 0, 0.2);
-
background-color: rgba(255, 255, 255, 0.1);
-
+ padding: 10pt 20pt;
}
+article#content form > input, article#content form > textarea
+{
+ border: 1px solid #6D6D6D;
+}
+
+article#content form > input:focus, article#content form > textarea:focus
+{
+ border: 1px solid #1cb3ec;
+}
hr
{