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>
This commit is contained in:
parent
0664623830
commit
101b05a374
@ -19,6 +19,8 @@ function display_activity(result, activity) {
|
|||||||
let link = document.createElement("a");
|
let link = document.createElement("a");
|
||||||
let d = new Date(entry.updated);
|
let d = new Date(entry.updated);
|
||||||
let data = '[' + d.toLocaleDateString() + '] ' + entry.title;
|
let data = '[' + d.toLocaleDateString() + '] ' + entry.title;
|
||||||
|
data = data.replace("Re: ","");
|
||||||
|
data = data.replace("[Buildroot] ","");
|
||||||
let text = document.createTextNode(data);
|
let text = document.createTextNode(data);
|
||||||
link.appendChild(text);
|
link.appendChild(text);
|
||||||
link.title = entry.title;
|
link.title = entry.title;
|
||||||
|
Loading…
Reference in New Issue
Block a user