User:DreamRimmer/adminnewslettertools.js: Difference between revisions

Content deleted Content added
showButtons: false
Rfc (DR)
Line 57:
max: new Date().getFullYear() + 1,
step: 1,
showButtons: falsetrue
}),
sectionSelect = new OO.ui.DropdownWidget({
Line 926:
function renderRfCTable(filteredRfcs) {
if (filteredRfcs.length > 0) {
let table = '<h4>Current RfCs</h4><table class="wikitable sortable"><thead><tr><th>Topic</th><th>TitleRfC</th><th>Days Old</th><th>Started</th></tr></thead><tbody>';
filteredRfcs.sort((a, b) => a.daysOld - b.daysOld).forEach(rfc => {
table += `<tr><td>${rfc.topic}</td><td><a href="${rfc.url}" target="_blank">${rfc.title}</a></td><td>${rfc.daysOld}</td><td>${rfc.timestamp}</td></tr>`;