diff --git a/extensions/tags/js/src/components/discussion-tagged-post.js b/extensions/tags/js/src/components/discussion-tagged-post.js index f67954051..0bf37f2d0 100644 --- a/extensions/tags/js/src/components/discussion-tagged-post.js +++ b/extensions/tags/js/src/components/discussion-tagged-post.js @@ -12,7 +12,7 @@ export default class DiscussionTaggedPost extends EventPost { var total = added.concat(removed); var build = function(verb, tags, only) { - return tags.length ? [verb, ' ', only && tags.length == 1 ? 'the ' : '', tagsLabel(tags)] : ''; + return tags.length ? [verb, ' ', only && tags.length == 1 ? 'the ' : '', tagsLabel(tags, {link: true})] : ''; }; return super.view('tag', [ diff --git a/extensions/tags/js/src/helpers/tag-label.js b/extensions/tags/js/src/helpers/tag-label.js index c49ef2eb3..11c401267 100644 --- a/extensions/tags/js/src/helpers/tag-label.js +++ b/extensions/tags/js/src/helpers/tag-label.js @@ -16,6 +16,10 @@ export default function tagsLabel(tag, attrs) { attrs.style.backgroundColor = attrs.style.color = color; attrs.className += ' colored'; } + + if (link) { + attrs.title = tag.description() || ''; + } } else { attrs.className += ' untagged'; }