refactor(komoot): gate Komoot integration behind feature flag

Signed-off-by: Marcus Fihlon <marcus@fihlon.swiss>
This commit is contained in:
Marcus Fihlon 2026-04-30 12:25:51 +02:00
parent 0663ca407f
commit 98be2cfada
Signed by: McPringle
GPG key ID: C6B7F469EE363E1F
7 changed files with 107 additions and 1 deletions

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout}">
<head>
<title th:text="${pageTitle}">Feature Unavailable</title>
</head>
<body>
<div layout:fragment="content">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="text-center mb-4">
<h2 class="mb-3">
<i th:class="${featureIcon != null ? featureIcon : 'bi bi-slash-circle text-secondary'}"></i>
<span th:text="${featureName != null ? featureName : 'Feature'}">Feature</span>
</h2>
<p class="text-muted mb-0"
th:text="${featureMessage != null ? featureMessage : 'This feature is currently unavailable on this FitPub instance.'}">
This feature is currently unavailable on this FitPub instance.
</p>
</div>
</div>
</div>
</div>
</body>
</html>

View file

@ -97,7 +97,7 @@
<i class="bi bi-file-earmark-zip"></i> Batch Import
</a>
</li>
<li>
<li th:if="${komootSupportEnabled}">
<a class="dropdown-item" th:href="@{/komoot-import}">
<i class="bi bi-signpost-split"></i> Komoot Import
</a>