Update YouTube credentials handling to include channel title in home template

This commit is contained in:
Edgar P. Burkhart 2025-06-15 10:17:08 +02:00
parent aafb7817c2
commit da29634e57
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 11 additions and 1 deletions

View file

@ -11,6 +11,8 @@
<p>
{% if not user.youtubecredentials.credentials %}
<a href="{% url "youtube_login" %}" role="button"><i class="ri-youtube-fill"></i> Me connecter au compte Youtube</a>
{% else %}
<i class="ri-youtube-fill"></i> Connecté au compte Youtube <strong>{{ user.youtubecredentials.credentials.channel_title }}</strong>.
{% endif %}
</p>
{% if user.owned_group_set.exists or user.group_set.exists %}