feat: add login hint on start page for unauthenticated users

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thibaud-leclere
2026-03-31 21:49:41 +02:00
parent dba9b985ee
commit 2e65b2805a
2 changed files with 22 additions and 0 deletions

View File

@@ -34,6 +34,11 @@
<button type="submit" class="btn btn-primary btn-start">Commencer une partie</button>
</form>
<div class="start-loader" id="start-loader"></div>
{% if not app.user %}
<p class="start-login-hint">
<a href="{{ path('app_login') }}">Connectez-vous</a> pour importer vos propres films
</p>
{% endif %}
<script>
document.getElementById('start-form').addEventListener('submit', function () {
this.style.display = 'none';