Fix: restore retention help link text

This commit is contained in:
Hanna Nilsén 2025-09-11 14:48:13 +02:00
parent 3ee673eb9c
commit 3929df8962
4 changed files with 5 additions and 7 deletions

View file

@ -2,8 +2,8 @@
## Header/footer
# Field for linking to more manual details
help-for-more-info = ​
# Link to more detailed information in the manual
help-for-more-info = For more information, see { $link } in the manual.
# Tooltip for links to the manual
help-open-manual-chapter = Open { $name } in the manual

View file

@ -22,7 +22,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { type HelpItem, HelpItemScheduler } from "./types";
export let title: string;
export let url: string;
export let url: string | undefined;
export let startIndex = 0;
export let helpSections: HelpItem[];
export let fsrs = false;

View file

@ -42,9 +42,7 @@
<div class="chapter-redirect">
{@html renderMarkdown(
tr.helpForMoreInfo({
link: `<a href="${item.url}" title="${tr.helpOpenManualChapter({
name: item.title,
})}">${item.title}</a>`,
link: `<a href="${item.url}" title="${tr.helpOpenManualChapter({ name: item.title })}">${item.title}</a>`,
}),
)}
</div>

View file

@ -5,7 +5,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<script lang="ts">
import type { GraphsResponse } from "@generated/anki/stats_pb";
import * as tr from "@generated/ftl";
import { HelpPage } from "@tslib/help-page";
import HelpModal from "$lib/components/HelpModal.svelte";
import type Carousel from "bootstrap/js/dist/carousel";
import type Modal from "bootstrap/js/dist/modal";
@ -72,6 +71,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
>
<HelpModal
title={tr.statisticsTrueRetentionTitle()}
url=""
{helpSections}
on:mount={(e) => {
modal = e.detail.modal;