diff --git a/forum.nim b/forum.nim index 4bd503d..ef97f85 100644 --- a/forum.nim +++ b/forum.nim @@ -1042,7 +1042,7 @@ proc selectThread(threadRow: seq[string]): Thread = topic: threadRow[1], category: Category(id: "", color: "#ff0000"), # TODO users: @[], - replies: posts[0].parseInt, + replies: posts[0].parseInt-1, views: threadRow[2].parseInt, activity: threadRow[3].parseInt, creation: posts[1].parseInt, diff --git a/redesign/forum.nim b/redesign/forum.nim index f24cfc7..8aaa425 100644 --- a/redesign/forum.nim +++ b/redesign/forum.nim @@ -28,7 +28,7 @@ proc genHeader(): VNode = result = buildHtml(header(id="main-navbar")): tdiv(class="navbar container grid-xl"): section(class="navbar-section"): - a(href="/"): + a(href=makeUri("/")): img(src="images/crown.png", id="img-logo") # TODO: Customisation. section(class="navbar-section"): tdiv(class="input-group input-inline"): diff --git a/redesign/nimforum.scss b/redesign/nimforum.scss index 7ed37ed..80fe4c1 100644 --- a/redesign/nimforum.scss +++ b/redesign/nimforum.scss @@ -94,6 +94,17 @@ $logo-height: $navbar-height - 20px; } // - Thread table +.thread-title { + a, a:visited, a:hover { + color: $body-font-color; + text-decoration: none; + } + + a.visited { + color: lighten($body-font-color, 40%); + } +} + $super-popular-color: #f86713; $popular-color: darken($super-popular-color, 25%); $views-color: #545d70; @@ -212,7 +223,12 @@ $views-color: #545d70; .post-title { margin-bottom: $control-padding-y*2; - color: lighten($body-font-color, 20%); + + &, a, a:visited, a:hover { + color: lighten($body-font-color, 20%); + text-decoration: none; + } + .post-username { font-weight: bold; display: inline-block; @@ -253,7 +269,7 @@ $views-color: #545d70; box-shadow: inset 0 0 .4rem .01rem darken($secondary-btn-color, 80%); } - .like-button i { + .like-button i:hover, .like-button i.fas { color: #f783ac; } } diff --git a/redesign/threadlist.nim b/redesign/threadlist.nim index 3dfab50..58094be 100644 --- a/redesign/threadlist.nim +++ b/redesign/threadlist.nim @@ -96,7 +96,7 @@ when defined(js): proc genThread(thread: Thread, isNew: bool, noBorder: bool): VNode = result = buildHtml(): tr(class=class({"no-border": noBorder})): - td(): + td(class="thread-title"): if thread.isLocked: italic(class="fas fa-lock fa-xs") a(href=makeUri("/t/" & $thread.id), onClick=anchorCB): text thread.topic