Add allowed channels section to campaign detail view
This commit is contained in:
parent
c8cc6d83df
commit
162d752a22
2 changed files with 22 additions and 1 deletions
|
|
@ -77,6 +77,26 @@
|
|||
target="_blank">Connect Account</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
<!-- Allowed Channels -->
|
||||
{% if allowed_channels %}
|
||||
<h5>Allowed Channels</h5>
|
||||
<div id="allowed-channels" style="margin-bottom: 20px;">
|
||||
{% for channel in allowed_channels %}
|
||||
<a href="{% url 'twitch:channel_detail' channel.id %}"
|
||||
style="display: inline-block;
|
||||
margin: 2px 5px 2px 0;
|
||||
padding: 3px 8px;
|
||||
background-color: #9146ff;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
font-size: 0.9em">{{ channel.display_name }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<h5>Allowed Channels</h5>
|
||||
<p style="color: #666; font-style: italic;">All channels allowed or no channel restrictions specified.</p>
|
||||
{% endif %}
|
||||
<h5>Campaign Info</h5>
|
||||
{% if drops %}
|
||||
<table id="drops-table" style="border-collapse: collapse; width: 100%;">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue