Add chips to channel page

This commit is contained in:
2026-01-06 15:51:06 +01:00
parent bbe1b51aa5
commit bce24514dc
2 changed files with 29 additions and 2 deletions

View File

@@ -70,8 +70,9 @@ public class ViewController {
} }
@org.springframework.web.bind.annotation.GetMapping("/channels") @org.springframework.web.bind.annotation.GetMapping("/channels")
public String channelDirectory() { public String channelDirectory(Model model) {
LOG.info("Rendering channel directory"); LOG.info("Rendering channel directory");
addVersionAttributes(model);
return "channels"; return "channels";
} }

View File

@@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en" xmlns:th="http://www.thymeleaf.org">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>Browse channels - Imgfloat</title> <title>Browse channels - Imgfloat</title>
@@ -39,6 +39,32 @@
</form> </form>
</section> </section>
</main> </main>
<footer class="landing-meta">
<div class="build-chip">
<span class="muted">License</span>
<span class="version-badge">MIT</span>
</div>
<div class="build-chip">
<span class="muted">Version</span>
<span class="version-badge" th:text="${version}">unknown</span>
</div>
<div class="build-chip">
<span class="muted">Build</span>
<a
class="version-badge version-link"
th:if="${buildCommitUrl}"
th:href="${buildCommitUrl}"
th:text="${buildCommitShort}"
rel="noreferrer"
target="_blank"
>unknown</a
>
<span class="version-badge" th:unless="${buildCommitUrl}" th:text="${buildCommitShort}"
>unknown</span
>
</div>
</footer>
</div> </div>
<script src="/js/cookie-consent.js"></script> <script src="/js/cookie-consent.js"></script>
</body> </body>