summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCamil Staps2026-01-23 13:41:25 +0100
committerCamil Staps2026-01-23 13:41:25 +0100
commitd6de229150395db256695232d468282919d1c670 (patch)
tree4c38f7195c507f53f03ca36bbf1ad0a7271f6d73
parentUpdate NLLT review stats (diff)
Add SLE review statsHEADmaster
-rw-r--r--resources/pug/finals/publications.pug11
1 files changed, 9 insertions, 2 deletions
diff --git a/resources/pug/finals/publications.pug b/resources/pug/finals/publications.pug
index f669e17..86aad1d 100644
--- a/resources/pug/finals/publications.pug
+++ b/resources/pug/finals/publications.pug
@@ -179,7 +179,7 @@ block content
radius: 10,
symbol: 'circle',
},
- data: data.map(entry => [Date.parse(entry[0]), entry[1]]),
+ data: data.map(entry => ({x: Date.parse(entry[0]), y: entry[1], name: entry[2]})),
};
}
@@ -206,7 +206,11 @@ block content
},
tooltip: {
pointFormatter: function(){
- return `Review ${this.y < 0 ? 'declined' : 'performed'} in ${Math.abs(this.y)} day(s)`;
+ let label = 'Review';
+ if (typeof this.name != 'undefined')
+ label = `${this.name} reviews`;
+ let days = Math.abs(this.y) == 1 ? 'day' : 'days';
+ return `${label} ${this.y < 0 ? 'declined' : 'performed'} in ${Math.abs(this.y)} ${days}`;
},
},
series: [
@@ -231,6 +235,9 @@ block content
['2025-08-29', 3],
['2025-10-10', 4],
]),
+ makeSeries('SLE (conference)', '#8b8baf', [
+ ['2026-01-08', 1, 8],
+ ]),
makeSeries('The New Scholar', '#dbbe9e', [
['2023-05-05', 1],
]),