Go back to cookies :(
This commit is contained in:
@ -18,9 +18,7 @@
|
||||
<!-- Insert nice buttons -->
|
||||
</div>
|
||||
{% for campaign in game.drop_campaigns.all %}
|
||||
{% if not forloop.first %}<br>{% endif %}
|
||||
<div class="mt-3">
|
||||
<h3 class="h6">{{ campaign.name }}</h3>
|
||||
{% if campaign.details_url == campaign.account_link_url %}
|
||||
<a href="{{ campaign.details_url }}" class="text-decoration-none">Details</a>
|
||||
{% else %}
|
||||
@ -31,26 +29,7 @@
|
||||
<p class="mb-2 text-muted">
|
||||
Ends in: <abbr title="{{ campaign.starts_at|date:'l d F H:i' }} - {{ campaign.ends_at|date:'l d F H:i e' }}">{{ campaign.ends_at|timeuntil }}</abbr>
|
||||
</p>
|
||||
{% if campaign.description != campaign.name %}
|
||||
{% if campaign.description|length > 300 %}
|
||||
<p>
|
||||
<a class="btn btn-link p-0 text-muted"
|
||||
data-bs-toggle="collapse"
|
||||
href="#collapseDescription{{ campaign.id }}"
|
||||
role="button"
|
||||
aria-expanded="false"
|
||||
aria-controls="collapseDescription{{ campaign.id }}"
|
||||
aria-label="Show Description">Show Description</a>
|
||||
</p>
|
||||
<div class="collapse" id="collapseDescription{{ campaign.id }}">
|
||||
<div class="card card-body">{{ campaign.description }}</div>
|
||||
<br>
|
||||
</div>
|
||||
{% else %}
|
||||
<p>{{ campaign.description }}</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-2">
|
||||
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3">
|
||||
{% for drop in campaign.drops.all %}
|
||||
{% for benefit in drop.benefits.all %}
|
||||
<div class="col d-flex align-items-center position-relative">
|
||||
|
@ -1,4 +1,3 @@
|
||||
{% load socialaccount %}
|
||||
<header class="d-flex justify-content-between align-items-center py-3 border-bottom">
|
||||
<h1 class="h2">
|
||||
<a href='{% url "index" %}' class="text-decoration-none nav-title">Twitch drops</a>
|
||||
@ -17,18 +16,9 @@
|
||||
<li class="nav-item d-none d-sm-block">
|
||||
<a class="nav-link" href="https://github.com/sponsors/TheLovinator1">Donate</a>
|
||||
</li>
|
||||
{% if not user.is_authenticated %}
|
||||
<li>
|
||||
<a class="nav-link" href="{% provider_login_url 'twitch' %}">Login with Twitch</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
<form action="{% url 'account_logout' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-link nav-link">Logout</button>
|
||||
</form>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="nav-item d-none d-sm-block">
|
||||
<a class="nav-link" href='{% url "webhooks" %}'>Webhooks</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
@ -24,5 +24,27 @@
|
||||
</form>
|
||||
</div>
|
||||
<h2 class="mt-5">Webhooks</h2>
|
||||
{% if webhooks %}
|
||||
<div class="list-group">
|
||||
{% for webhook in webhooks %}
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span>
|
||||
{% if webhook.avatar %}
|
||||
<img src="https://cdn.discordapp.com/avatars/{{ webhook.id }}/a_{{ webhook.avatar }}.png"
|
||||
alt="Avatar of {{ webhook.name }}"
|
||||
class="rounded-circle"
|
||||
height="32"
|
||||
width="32">
|
||||
{% endif %}
|
||||
<a href="https://discord.com/api/webhooks/{{ webhook.id }}/{{ webhook.token }}"
|
||||
target="_blank"
|
||||
class="text-decoration-none">{{ webhook.name }}</a>
|
||||
</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-info">No webhooks added</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user