Improve HTML on profile and game details

This commit is contained in:
Joakim Hellsén 2025-08-04 00:01:34 +02:00
commit 2ff314ecc8
10 changed files with 60 additions and 16 deletions

View file

@ -26,4 +26,19 @@
</tr>
</table>
<a href="{% url 'accounts:logout' %}">Logout</a>
<h2>Will get notifications to:</h2>
<ul>
{% for subscription in subscriptions %}
<li>
{% if subscription.game_id %}
<a href="{% url 'twitch:game_detail' subscription.game_id %}">{{ subscription.game.display_name }}</a>
{% endif %}
{% if subscription.organization_id %}
<a href="{% url 'twitch:organization_detail' subscription.organization_id %}">{{ subscription.organization.name }}</a>
{% endif %}
</li>
{% empty %}
<li>You have no subscriptions yet.</li>
{% endfor %}
</ul>
{% endblock content %}