From 555f3c986760fe68d0996d1862ffbec05a5fbc70 Mon Sep 17 00:00:00 2001 From: milky Date: Sun, 9 Feb 2014 07:00:15 +1100 Subject: [PATCH] Clearer when archive links are N/A. Conflicts: src/General/Header.coffee src/General/css/style.css --- src/General/Header.coffee | 8 ++++++-- src/General/css/style.css | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/General/Header.coffee b/src/General/Header.coffee index 4ed907365..0b2d2f1d6 100755 --- a/src/General/Header.coffee +++ b/src/General/Header.coffee @@ -214,8 +214,12 @@ Header = a.href = CatalogLinks[m[1]] boardID $.addClass a, 'catalog' if m[1] is 'catalog' - if /-archive/.test(t) and href = Redirect.to 'board', {boardID} - a.href = href + if /-archive/.test(t) + if href = Redirect.to 'board', {boardID} + a.href = href + else + $.addClass a, 'inactive' + a.removeAttribute 'href' $.addClass a, 'navSmall' if boardID is '@' return a diff --git a/src/General/css/style.css b/src/General/css/style.css index aa200f194..41f723265 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -235,6 +235,9 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) { .fixed.bottom-header #header-bar #scroll-marker { bottom: 100%; } +#header-bar a.inactive { + color: inherit !important; +} #header-bar a:not(.entry):not(.close) { text-decoration: none; padding: 1px;