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
|
<i class="ri-music-ai-fill"></i> Musik
|
||||||
</h1>
|
</h1>
|
||||||
<p>Bienvenue {{ user.username }} !</p>
|
<p>Bienvenue {{ user.username }} !</p>
|
||||||
<h2>
|
|
||||||
<i class="ri-group-2-fill"></i> Mes groupes
|
|
||||||
</h2>
|
|
||||||
<p>
|
<p>
|
||||||
{% if not user.youtubecredentials.credentials %}
|
{% if not user.youtubecredentials.credentials %}
|
||||||
<a href="{% url "youtube_login" %}" role="button"><i class="ri-youtube-fill"></i> Me connecter au compte Youtube</a>
|
<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>.
|
<i class="ri-youtube-fill"></i> Connecté au compte Youtube <strong>{{ user.youtubecredentials.credentials.channel_title }}</strong>.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
<h2>
|
||||||
|
<i class="ri-group-2-fill"></i> Mes groupes
|
||||||
|
</h2>
|
||||||
{% if user.owned_group_set.exists or user.group_set.exists %}
|
{% if user.owned_group_set.exists or user.group_set.exists %}
|
||||||
{% for group in user.owned_group_set.all %}
|
{% for group in user.owned_group_set.all %}
|
||||||
<a class="group" href="{{ group.get_absolute_url }}">
|
<a class="group" href="{{ group.get_absolute_url }}">
|
||||||
|
|
|
@ -4,5 +4,12 @@
|
||||||
<h1>
|
<h1>
|
||||||
<i class="ri-group-2-fill"></i> {{ group.name }}
|
<i class="ri-group-2-fill"></i> {{ group.name }}
|
||||||
</h1>
|
</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 %}
|
{% form form %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue