ttvdrops/templates/twitch/organization_detail.html
Joakim Helleśen 428f49879d
All checks were successful
Deploy to Server / deploy (push) Successful in 20s
Add breadcrumb navigation
2026-03-22 05:09:27 +01:00

53 lines
2.2 KiB
HTML

{% extends "base.html" %}
{% block title %}
{{ organization.name }}
{% endblock title %}
{% block extra_head %}
{% if games %}
{% for game in games %}
<link rel="alternate"
type="application/rss+xml"
title="{{ game.display_name|default:game.name|default:game.twitch_id }} campaigns (RSS)"
href="{% url 'core:game_campaign_feed' game.twitch_id %}" />
<link rel="alternate"
type="application/atom+xml"
title="{{ game.display_name|default:game.name|default:game.twitch_id }} campaigns (Atom)"
href="{% url 'core:game_campaign_feed_atom' game.twitch_id %}" />
<link rel="alternate"
type="application/atom+xml"
title="{{ game.display_name|default:game.name|default:game.twitch_id }} campaigns (Discord)"
href="{% url 'core:game_campaign_feed_discord' game.twitch_id %}" />
{% endfor %}
{% endif %}
{% endblock extra_head %}
{% block content %}
<h1>{{ organization.name }}</h1>
<!-- Add breadcrumbs -->
<div>
<a href="{% url 'core:dashboard' %}">Dashboard</a> > <a href="{% url 'twitch:org_list' %}">Organizations</a> > {{ organization.name }}
</div>
<div>
Published
<time datetime="{{ organization.added_at|date:'c' }}"
title="{{ organization.added_at|date:'DATETIME_FORMAT' }}">{{ organization.added_at|date:"M d, Y H:i" }}</time> ({{ organization.added_at|timesince }} ago)
</div>
<div>
Last updated
<time datetime="{{ organization.updated_at|date:'c' }}"
title="{{ organization.updated_at|date:'DATETIME_FORMAT' }}">{{ organization.updated_at|date:"M d, Y H:i" }}</time> ({{ organization.updated_at|timesince }} ago)
</div>
<header>
<h2>Games by {{ organization.name }}</h2>
</header>
<table>
<tbody>
{% for game in games %}
<tr>
<td>
<a href="{% url 'twitch:game_detail' game.twitch_id %}">{{ game }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}