From: David ‘Bombe’ Roden Date: Fri, 6 May 2011 20:44:56 +0000 (+0200) Subject: Show arrow before links in notifications that link to the current page. X-Git-Tag: 0.6.4^2~18 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a6c5169b296db74bc7181e29818fa0068c535584;p=Sone.git Show arrow before links in notifications that link to the current page. This fixes #145. --- diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 2621b50..80054a8 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -89,6 +89,10 @@ textarea { content: '★ '; } +#sone a.in-page-link:before { + content: '↓ '; +} + #sone a img { border: none; } diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index e300214..d21e6c6 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -878,7 +878,7 @@ function ajaxifyNotification(notification) { if (linkElement.is("[href^='viewPost']")) { id = linkElement.attr("class").substr(5); if (hasPost(id)) { - linkElement.attr("href", "#post-" + id); + linkElement.attr("href", "#post-" + id).addClass("in-page-link"); } } });