docs: set main tag on whats new

This commit is contained in:
raoulvdberge
2024-01-13 12:36:47 +01:00
parent 052f776612
commit b802513c48

View File

@@ -5,55 +5,58 @@
</head> </head>
<body> <body>
<div layout:fragment="content"> <div layout:fragment="content">
<main th:if="${currentRelease != null}" class="card"> <main>
<div class="card-body"> <div th:if="${currentRelease != null}" class="card">
<h2 class="card-title"> <div class="card-body">
In version <span th:text="${currentRelease.release.getName()}" th:remove="tag"></span> <h2 class="card-title">
In version <span th:text="${currentRelease.release.getName()}" th:remove="tag"></span>
<span class="badge bg-primary" th:if="${currentRelease.release.type.name() == 'BETA'}">Beta</span> <span class="badge bg-primary" th:if="${currentRelease.release.type.name() == 'BETA'}">Beta</span>
<span class="badge bg-warning text-dark" <span class="badge bg-warning text-dark"
th:if="${currentRelease.release.type.name() == 'ALPHA'}">Alpha</span> th:if="${currentRelease.release.type.name() == 'ALPHA'}">Alpha</span>
</h2> </h2>
<div class="text-muted d-flex gap-3 mb-2"> <div class="text-muted d-flex gap-3 mb-2">
<span> <span>
<i class="bi bi-calendar"></i> <i class="bi bi-calendar"></i>
<span <span
th:text="${#dates.format(currentRelease.release.createdAt, 'yyyy-MM-dd')}" th:text="${#dates.format(currentRelease.release.createdAt, 'yyyy-MM-dd')}"
th:remove="tag"></span> th:remove="tag"></span>
</span> </span>
<span> <span>
<i class="bi bi-download"></i> <i class="bi bi-download"></i>
<span th:remove="tag" <span th:remove="tag"
th:text="${currentRelease.release.stats.totalDownloads}"></span> th:text="${currentRelease.release.stats.totalDownloads}"></span>
</span> </span>
</div> </div>
<div th:utext="${currentRelease.changelogHtml}"></div> <div th:utext="${currentRelease.changelogHtml}"></div>
<div class="d-flex flex-wrap gap-1"> <div class="d-flex flex-wrap gap-1">
<a th:href="${currentRelease.curseforgeUrl}" th:if="${currentRelease.curseforgeUrl != null}" <a th:href="${currentRelease.curseforgeUrl}" th:if="${currentRelease.curseforgeUrl != null}"
class="btn btn-primary"> class="btn btn-primary">
<svg class="distribution-platform-logo" xm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.6c0,0.2,0,0.5,0.1,0.7c0.4,0.6,1.2,0,1.4-0.5c0.3-0.6,0.2-1.3-0.2-1.9c0,0,0.7,0.4,1.2,1.8 C-1987.4,866.2-1988.1,867.6-1988.9,868.1z"></path>
</svg> </svg>
Download on CurseForge Download on CurseForge
</a> </a>
<a th:href="${currentRelease.modrinthUrl}" th:if="${currentRelease.modrinthUrl != null}" <a th:href="${currentRelease.modrinthUrl}" th:if="${currentRelease.modrinthUrl != null}"
class="btn btn-primary"> class="btn btn-primary">
<svg class="distribution-platform-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 514"> <svg class="distribution-platform-logo" xmlns="http://www.w3.org/2000/svg"
<path fill-rule="evenodd" clip-rule="evenodd" viewBox="0 0 512 514">
d="M503.16 323.56C514.55 281.47 515.32 235.91 503.2 190.76C466.57 54.2299 326.04 -26.8001 189.33 9.77991C83.8101 38.0199 11.3899 128.07 0.689941 230.47H43.99C54.29 147.33 113.74 74.7298 199.75 51.7098C306.05 23.2598 415.13 80.6699 453.17 181.38L411.03 192.65C391.64 145.8 352.57 111.45 306.3 96.8198L298.56 140.66C335.09 154.13 364.72 184.5 375.56 224.91C391.36 283.8 361.94 344.14 308.56 369.17L320.09 412.16C390.25 383.21 432.4 310.3 422.43 235.14L464.41 223.91C468.91 252.62 467.35 281.16 460.55 308.07L503.16 323.56Z"/> <path fill-rule="evenodd" clip-rule="evenodd"
<path d="M321.99 504.22C185.27 540.8 44.7501 459.77 8.11011 323.24C3.84011 307.31 1.17 291.33 0 275.46H43.27C44.36 287.37 46.4699 299.35 49.6799 311.29C53.0399 323.8 57.45 335.75 62.79 347.07L101.38 323.92C98.1299 316.42 95.39 308.6 93.21 300.47C69.17 210.87 122.41 118.77 212.13 94.7601C229.13 90.2101 246.23 88.4401 262.93 89.1501L255.19 133C244.73 133.05 234.11 134.42 223.53 137.25C157.31 154.98 118.01 222.95 135.75 289.09C136.85 293.16 138.13 297.13 139.59 300.99L188.94 271.38L174.07 231.95L220.67 184.08L279.57 171.39L296.62 192.38L269.47 219.88L245.79 227.33L228.87 244.72L237.16 267.79C237.16 267.79 253.95 285.63 253.98 285.64L277.7 279.33L294.58 260.79L331.44 249.12L342.42 273.82L304.39 320.45L240.66 340.63L212.08 308.81L162.26 338.7C187.8 367.78 226.2 383.93 266.01 380.56L277.54 423.55C218.13 431.41 160.1 406.82 124.05 361.64L85.6399 384.68C136.25 451.17 223.84 484.11 309.61 461.16C371.35 444.64 419.4 402.56 445.42 349.38L488.06 364.88C457.17 431.16 398.22 483.82 321.99 504.22Z"/> d="M503.16 323.56C514.55 281.47 515.32 235.91 503.2 190.76C466.57 54.2299 326.04 -26.8001 189.33 9.77991C83.8101 38.0199 11.3899 128.07 0.689941 230.47H43.99C54.29 147.33 113.74 74.7298 199.75 51.7098C306.05 23.2598 415.13 80.6699 453.17 181.38L411.03 192.65C391.64 145.8 352.57 111.45 306.3 96.8198L298.56 140.66C335.09 154.13 364.72 184.5 375.56 224.91C391.36 283.8 361.94 344.14 308.56 369.17L320.09 412.16C390.25 383.21 432.4 310.3 422.43 235.14L464.41 223.91C468.91 252.62 467.35 281.16 460.55 308.07L503.16 323.56Z"/>
</svg> <path d="M321.99 504.22C185.27 540.8 44.7501 459.77 8.11011 323.24C3.84011 307.31 1.17 291.33 0 275.46H43.27C44.36 287.37 46.4699 299.35 49.6799 311.29C53.0399 323.8 57.45 335.75 62.79 347.07L101.38 323.92C98.1299 316.42 95.39 308.6 93.21 300.47C69.17 210.87 122.41 118.77 212.13 94.7601C229.13 90.2101 246.23 88.4401 262.93 89.1501L255.19 133C244.73 133.05 234.11 134.42 223.53 137.25C157.31 154.98 118.01 222.95 135.75 289.09C136.85 293.16 138.13 297.13 139.59 300.99L188.94 271.38L174.07 231.95L220.67 184.08L279.57 171.39L296.62 192.38L269.47 219.88L245.79 227.33L228.87 244.72L237.16 267.79C237.16 267.79 253.95 285.63 253.98 285.64L277.7 279.33L294.58 260.79L331.44 249.12L342.42 273.82L304.39 320.45L240.66 340.63L212.08 308.81L162.26 338.7C187.8 367.78 226.2 383.93 266.01 380.56L277.54 423.55C218.13 431.41 160.1 406.82 124.05 361.64L85.6399 384.68C136.25 451.17 223.84 484.11 309.61 461.16C371.35 444.64 419.4 402.56 445.42 349.38L488.06 364.88C457.17 431.16 398.22 483.82 321.99 504.22Z"/>
Download on Modrinth </svg>
</a> Download on Modrinth
<a th:href="${currentRelease.githubUrl}" th:if="${currentRelease.githubUrl != null}" </a>
class="btn btn-primary"> <a th:href="${currentRelease.githubUrl}" th:if="${currentRelease.githubUrl != null}"
<i class="bi bi-github"></i> class="btn btn-primary">
Download on GitHub <i class="bi bi-github"></i>
</a> Download on GitHub
</a>
</div>
</div> </div>
</div> </div>
</main> </main>