Skip to content

Commit

Permalink
Merge pull request #1132 from Metro-Records/patch/manual-broadcasts
Browse files Browse the repository at this point in the history
Handle proper broadcast becoming avail while there's a manual one
  • Loading branch information
xmedr authored Jul 15, 2024
2 parents 04df15e + fda2e47 commit d629af8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lametro/templates/event/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ <h1>
</div>
{% elif event.status != 'cancelled' %}
<div class="well" style="margin-top: 20px">
{% if event.media.all.exists %}
{% if event.has_manual_broadcast and event.media.all.exists %}
<p>
This event now has a proper broadcast link, and the previous manual broadcast can now be unpublished.
Please unpublish the manual link.
</p>
<a href="{% url 'manual_event_live_link' event.slug %}" class="btn btn-teal"><i class= "fa fa-headphones" aria-hidden="true"></i> Unpublish Watch Live Link</a>
{% elif event.media.all.exists %}
<p>This event has a proper broadcast link, and cannot have a manual broadcast published.</p>
{% elif not event.has_manual_broadcast and manual_events|length >= 1 %}
<p>
Expand Down

0 comments on commit d629af8

Please sign in to comment.