User:DreamRimmer/adminnewslettertools.js: Difference between revisions

Content deleted Content added
fix (DR)
specific to ArbCom topics only
Line 319:
 
const headerLabel = title.includes('ArbCom topics') ? 'Topic' : 'Comment';
letconst htmluserLabel = `<h4>${title}</h4><table.includes('ArbCom class="wikitabletopics') sortable"><thead><tr><th>Timestamp</th><th>? 'Arbitrator/Clerk</th><th>${headerLabel}</th></tr></thead><tbody>`' : 'User';
const dateLabel = title.includes('ArbCom topics') ? 'Timestamp' : 'Date';
let html = `<h4>${title}</h4><table class="wikitable sortable"><thead><tr><th>${dateLabel}</th><th>${userLabel}</th><th>${headerLabel}</th></tr></thead><tbody>`;
 
data.forEach(item => {