summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html4
-rw-r--r--script.js14
2 files changed, 12 insertions, 6 deletions
diff --git a/index.html b/index.html
index 5521bc3..2b414bd 100644
--- a/index.html
+++ b/index.html
@@ -6,10 +6,8 @@
<table border=1>
<thead>
<th>Status</th>
+ <th>Date</th>
<th>Name</th>
- <th>Draft start</th>
- <th>RFC start</th>
- <th>Vote start</th>
<th>Authors</th>
</thead>
<tbody id=tbody>
diff --git a/script.js b/script.js
index b202914..0c17abf 100644
--- a/script.js
+++ b/script.js
@@ -17,12 +17,20 @@ function newEl(tagname, content) {
const statusCell = newEl('td', proposal.status);
statusCell.className = 'status-' + proposal.status;
row.appendChild(statusCell);
+
+ let date = '???';
+ if (proposal.status == 'voting' || proposal.status == 'approved' || proposal.status == 'rejected') {
+ date = proposal.vote_start;
+ } else if (proposal.status == 'proposed') {
+ date = proposal.rfc_start;
+ } else {
+ date = proposal.draft_start;
+ }
+ row.appendChild(newEl('td', date));
+
const link = newEl('a', proposal.name);
link.href = 'https://wiki.openstreetmap.org/wiki/' + proposal.page_title.replaceAll(' ', '_');
row.appendChild(newEl('td', link));
- row.appendChild(newEl('td', proposal.draft_start));
- row.appendChild(newEl('td', proposal.rfc_start));
- row.appendChild(newEl('td', proposal.vote_start));
row.appendChild(newEl('td', proposal.authors));
tbody.appendChild(row);