Small fixes for styling and reply button presence.
This commit is contained in:
parent
b5f6d8fa8b
commit
7b6e629bfc
4 changed files with 8 additions and 3 deletions
|
|
@ -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> >
|
||||
<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:
|
||||
|
|
|
|||
|
|
@ -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] = @[]
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue