diff --git a/game/templates/game/home.html b/game/templates/game/home.html index eb7e220..27511b5 100644 --- a/game/templates/game/home.html +++ b/game/templates/game/home.html @@ -5,9 +5,6 @@ Musik

Bienvenue {{ user.username }} !

-

- Mes groupes -

{% if not user.youtubecredentials.credentials %} Me connecter au compte Youtube @@ -15,6 +12,9 @@ Connecté au compte Youtube {{ user.youtubecredentials.credentials.channel_title }}. {% endif %}

+

+ Mes groupes +

{% if user.owned_group_set.exists or user.group_set.exists %} {% for group in user.owned_group_set.all %} diff --git a/game/templates/game/musikgame_form.html b/game/templates/game/musikgame_form.html index 3e6d4ed..03820a3 100644 --- a/game/templates/game/musikgame_form.html +++ b/game/templates/game/musikgame_form.html @@ -4,5 +4,12 @@

{{ group.name }}

+

+ {% if not user.youtubecredentials.credentials %} + Me connecter au compte Youtube + {% else %} + Une playlist sera générée automatiquement sur le compte Youtube {{ user.youtubecredentials.credentials.channel_title }}. + {% endif %} +

{% form form %} {% endblock content %}