From d6de229150395db256695232d468282919d1c670 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 23 Jan 2026 13:41:25 +0100 Subject: Add SLE review stats --- resources/pug/finals/publications.pug | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'resources/pug') 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], ]), -- cgit v1.2.3