Explorar o código

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>
Angelo Compagnucci %!s(int64=2) %!d(string=hai) anos
pai
achega
101b05a374
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      docs/website/js/buildroot.js

+ 2 - 0
docs/website/js/buildroot.js

@@ -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;