ui: Avoid some hard coded strings

This commit is contained in:
nemunaire 2024-03-17 17:07:25 +01:00
commit b3c207d07d
2 changed files with 8 additions and 3 deletions

View file

@ -50,8 +50,8 @@
<div style="background-image: url({heading_image})" class="page-header">
<Container class="text-primary">
<h1 class="display-2">
{#if $current_theme.urlid == "_"}
<a href="{$current_theme.urlid}">{#if $current_exercice}{$current_exercice.title}{:else}Défis indépendants{/if}</a>
{#if $current_theme.urlid == "_" && $current_exercice}
<a href="{$current_theme.urlid}">{$current_exercice.title}</a>
{:else}
<a href="{$current_theme.urlid}">{$current_theme.name}</a>
{/if}