add title attr for daggers

This commit is contained in:
teddit 2021-01-05 01:26:25 +01:00
parent 448a6798e9
commit 8cdce383bc
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ module.exports = function() {
edited_span = `<span title="this comment is edited">*</span>` edited_span = `<span title="this comment is edited">*</span>`
} }
if(comments.controversiality > 0) { if(comments.controversiality > 0) {
controversial_span = `<span class="controversial">†</span>` controversial_span = `<span class="controversial" title="this comment is voted as controversial">†</span>`
} }
comments_html = ` comments_html = `
<div class="comment ${comments.depth % 2 === 0 ? 'even-depth' : 'odd-depth'}" id="${comments.id}"> <div class="comment ${comments.depth % 2 === 0 ? 'even-depth' : 'odd-depth'}" id="${comments.id}">
@ -134,7 +134,7 @@ module.exports = function() {
edited_span = `<span title="this comment is edited">*</span>` edited_span = `<span title="this comment is edited">*</span>`
} }
if(comment.controversiality > 0) { if(comment.controversiality > 0) {
controversial_span = `<span class="controversial">†</span>` controversial_span = `<span class="controversial" title="this comment is voted as controversial">†</span>`
} }
comments_html += ` comments_html += `
<div class="comment ${comment.depth % 2 === 0 ? 'even-depth' : 'odd-depth'}" id="${comment.id}"> <div class="comment ${comment.depth % 2 === 0 ? 'even-depth' : 'odd-depth'}" id="${comment.id}">