docs/website: better recent commits/discussions output

Removing the "[Buildroot]" and the "Re:" from messages title to have a
cleaner look on the "news" boxes.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023.02.x
Angelo Compagnucci 2023-02-06 11:45:59 +01:00 committed by Thomas Petazzoni
parent 0664623830
commit 101b05a374
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@ function display_activity(result, activity) {
let link = document.createElement("a");
let d = new Date(entry.updated);
let data = '[' + d.toLocaleDateString() + '] ' + entry.title;
data = data.replace("Re: ","");
data = data.replace("[Buildroot] ","");
let text = document.createTextNode(data);
link.appendChild(text);
link.title = entry.title;