From 573d7fe5f07b91dad9513e4fe858cb9f3b63aa21 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Wed, 19 Sep 2012 17:47:22 +0300 Subject: [PATCH] Change rendering of links in recent comments list. Let links be blue as they should be. Hide the member type info from link - it's not that important. --- template/app/view/Comments.js | 7 ++++++- template/resources/sass/_comments.scss | 4 +--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/template/app/view/Comments.js b/template/app/view/Comments.js index 83dcf1dc..94e8aac9 100644 --- a/template/app/view/Comments.js +++ b/template/app/view/Comments.js @@ -132,7 +132,12 @@ Ext.define('Docs.view.Comments', { urlPrefix = '#!/guide/'; } else if (target[2] != '') { url += '-' + target[2]; - title += ' ' + target[2]; + if (target[0] == "class") { + title += '#' + target[2].replace(/^.*-/, ""); + } + else { + title += ' ' + target[2]; + } } return '' + title + ''; diff --git a/template/resources/sass/_comments.scss b/template/resources/sass/_comments.scss index 7d759cf7..e83772ac 100644 --- a/template/resources/sass/_comments.scss +++ b/template/resources/sass/_comments.scss @@ -198,9 +198,7 @@ .target { color: #666; font-size: 90%; - font-weight: normal; - a { - color: #666; } } + font-weight: normal; } .com-meta { position: relative; text-size: 13px; -- GitLab