Show the edit date

This commit is contained in:
StevenNMeza 2021-01-10 10:59:04 +01:00
parent f59eb03698
commit cfc6299fb3

View File

@ -35,7 +35,7 @@ module.exports = function() {
ups = `${kFormatter(comments.ups)} points` ups = `${kFormatter(comments.ups)} points`
} }
if(comments.edited) { if(comments.edited) {
edited_span = `<span title="this comment is edited">*</span>` edited_span = `<span title="last edited ${toUTCString(comments.edited)}">*</span>`
} }
if(comments.controversiality > 0) { if(comments.controversiality > 0) {
controversial_span = `<span class="controversial" title="this comment is voted as controversial">†</span>` controversial_span = `<span class="controversial" title="this comment is voted as controversial">†</span>`
@ -75,7 +75,7 @@ module.exports = function() {
} else { } else {
if(!morechildren_ids) { if(!morechildren_ids) {
let load_comms_href = parent_id let load_comms_href = parent_id
comments_html = ` comments_html = `
<div class="load-more-comments"> <div class="load-more-comments">
<a href="${load_comms_href}#c">load more comments (${comments.count})</a> <a href="${load_comms_href}#c">load more comments (${comments.count})</a>
@ -131,7 +131,7 @@ module.exports = function() {
ups = `${kFormatter(comment.ups)} points` ups = `${kFormatter(comment.ups)} points`
} }
if(comment.edited) { if(comment.edited) {
edited_span = `<span title="this comment is edited">*</span>` edited_span = `<span title="last edited ${toUTCString(comments.edited)}">*</span>`
} }
if(comment.controversiality > 0) { if(comment.controversiality > 0) {
controversial_span = `<span class="controversial" title="this comment is voted as controversial">†</span>` controversial_span = `<span class="controversial" title="this comment is voted as controversial">†</span>`
@ -180,7 +180,7 @@ module.exports = function() {
</div> </div>
` `
} else { } else {
let link = comment.parent_id.split('_')[1] let link = comment.parent_id.split('_')[1]
comments_html = ` comments_html = `
<div class="load-more-comments"> <div class="load-more-comments">
<a href="${link}/#c">continue this thread</a> <a href="${link}/#c">continue this thread</a>