Small fixes for styling and reply button presence.

This commit is contained in:
Dominik Picheta 2014-11-04 13:52:48 +00:00
commit 7b6e629bfc
4 changed files with 8 additions and 3 deletions

View file

@ -112,13 +112,13 @@
# count = 0
# let posts = getAllRows(db, query, threadId, $((c.pageNum-1) * PostsPerPage), $PostsPerPage)
<div id="talk-head">
<div class="info">
<div class="info-post">
<div>
<a href="${c.req.makeUri("/")}"><b>forum index</b></a> &gt;
<a href="${c.req.makeUri("/t/" & $threadId)}">${posts[0][postHeader]}</a>
</div>
</div>
<div class="user detail"><div><div>???</div></div><div><div>?</div></div></div>
<div class="user-post detail"><div><div>???</div></div><div><div>?</div></div></div>
</div>
<div id="talk-thread">
# for row in posts:

View file

@ -427,6 +427,10 @@ proc login(c: var TForumData, name, pass: string): bool =
else:
return c.setError("password", "Login failed!")
proc hasReplyBtn(c: var TForumData): bool =
result = c.req.pathInfo != "/donewthread" and c.req.pathInfo != "/doreply"
return c.threadId >= 0 and result
proc genActionMenu(c: var TForumData): string =
result = ""
var btns: seq[TStyledButton] = @[]

View file

@ -82,7 +82,7 @@
<div id="talk-nav">
${genPagenumNav(c, stats)}
</div>
#else:
#elif hasReplyBtn(c):
<div id="talk-info">
<div class="info-post">
<div>

View file

@ -469,6 +469,7 @@ pre .end { background:url("/images/tabEnd.png") no-repeat left bottom; }
#talk-info > .info-post { width: 85%; }
#talk-head > .user,
#talk-info > .user { width:20%; background:rgba(0,0,0,.2); }
#talk-head > .user-post,
#talk-info > .user-post { width: 15%; background:rgba(0,0,0,.2); }
#talk-info > .user-post > div > .reply { font-weight:bold; padding-left:22px; background:url("/images/forum-reply.png") no-repeat left; }
#talk-head > div > div,