Reorganize YouTube credentials display in home and form templates for consistency
This commit is contained in:
parent
da29634e57
commit
28203bd630
2 changed files with 10 additions and 3 deletions
|
@ -5,9 +5,6 @@
|
|||
<i class="ri-music-ai-fill"></i> Musik
|
||||
</h1>
|
||||
<p>Bienvenue {{ user.username }} !</p>
|
||||
<h2>
|
||||
<i class="ri-group-2-fill"></i> Mes groupes
|
||||
</h2>
|
||||
<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>
|
||||
|
@ -15,6 +12,9 @@
|
|||
<i class="ri-youtube-fill"></i> Connecté au compte Youtube <strong>{{ user.youtubecredentials.credentials.channel_title }}</strong>.
|
||||
{% endif %}
|
||||
</p>
|
||||
<h2>
|
||||
<i class="ri-group-2-fill"></i> Mes groupes
|
||||
</h2>
|
||||
{% if user.owned_group_set.exists or user.group_set.exists %}
|
||||
{% for group in user.owned_group_set.all %}
|
||||
<a class="group" href="{{ group.get_absolute_url }}">
|
||||
|
|
|
@ -4,5 +4,12 @@
|
|||
<h1>
|
||||
<i class="ri-group-2-fill"></i> {{ group.name }}
|
||||
</h1>
|
||||
<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> Une playlist sera générée automatiquement sur le compte Youtube <strong>{{ user.youtubecredentials.credentials.channel_title }}</strong>.
|
||||
{% endif %}
|
||||
</p>
|
||||
{% form form %}
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue