aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-01-24 17:58:40 +0100
committer0neGal <mail@0negal.com>2024-01-24 17:59:08 +0100
commit7c2e3977a45a372ce4ebd08faf2a8c6a82cebec0 (patch)
tree24b2635c6493df88b703ee1ccb8a4fb5615f292e /src
parentef40ec3a7748f6a186a04bd80c39bb1ea193ca65 (diff)
downloadViper-7c2e3977a45a372ce4ebd08faf2a8c6a82cebec0.tar.gz
Viper-7c2e3977a45a372ce4ebd08faf2a8c6a82cebec0.zip
added release date to release notes
Diffstat (limited to 'src')
-rw-r--r--src/app/css/launcher.css10
-rw-r--r--src/app/js/launcher.js14
2 files changed, 23 insertions, 1 deletions
diff --git a/src/app/css/launcher.css b/src/app/css/launcher.css
index e14efea..19cffb3 100644
--- a/src/app/css/launcher.css
+++ b/src/app/css/launcher.css
@@ -160,6 +160,16 @@
margin-bottom: var(--padding);
}
+.section .release-block p:nth-child(1) {
+ opacity: 0.8;
+ margin-top: 0px;
+ margin-bottom: 0px;
+}
+
+.section .release-block h1:nth-child(2) {
+ margin-top: 0px;
+}
+
.contentBody img {max-width: 100%}
.contentBody .img {text-align: center}
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" +