diff options
author | 0neGal <mail@0negal.com> | 2024-01-24 17:58:40 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-01-24 17:59:08 +0100 |
commit | 7c2e3977a45a372ce4ebd08faf2a8c6a82cebec0 (patch) | |
tree | 24b2635c6493df88b703ee1ccb8a4fb5615f292e /src/app/js/launcher.js | |
parent | ef40ec3a7748f6a186a04bd80c39bb1ea193ca65 (diff) | |
download | Viper-7c2e3977a45a372ce4ebd08faf2a8c6a82cebec0.tar.gz Viper-7c2e3977a45a372ce4ebd08faf2a8c6a82cebec0.zip |
added release date to release notes
Diffstat (limited to 'src/app/js/launcher.js')
-rw-r--r-- | src/app/js/launcher.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/app/js/launcher.js b/src/app/js/launcher.js index c1901f3..98f16dc 100644 --- a/src/app/js/launcher.js +++ b/src/app/js/launcher.js @@ -31,7 +31,19 @@ function formatRelease(notes) { } else { for (let release of notes) { if (release.prerelease) {continue} - let new_content = "# " + release.name + "\n\n" + release.body + "\n\n\n"; + let new_content = + // release date + new Date(release.published_at).toLocaleString() + + "\n" + + + // release name + `# ${release.name}` + + "\n\n" + + + // actual release text/body + release.body + + "\n\n\n"; + content += "<div class='release-block'>\n" + markdown(new_content, {breaks: true}) + "\n" + |