2021-08-18 05:45:44 +00:00
|
|
|
{% extends "_base.html" %}
|
|
|
|
|
|
|
|
{% block title %}Redemptions{% endblock %}
|
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.redemption {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
2021-08-21 00:35:25 +00:00
|
|
|
margin-bottom: 1em;
|
2021-08-18 05:45:44 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
2021-08-20 02:59:12 +00:00
|
|
|
<ul class="breadcrumbs">
|
|
|
|
<li><a href="/">Home</a></li>
|
|
|
|
<li class="current"><a href="/redemptions">Redemptions</a></li>
|
|
|
|
<li class="future"><a href="/redemptions/add">Add</a></li>
|
|
|
|
<li class="future"><a href="/redemptions/list">List</a></li>
|
|
|
|
</ul>
|
2021-08-18 05:45:44 +00:00
|
|
|
|
|
|
|
{% for redemption in redemptions %}
|
|
|
|
<div class="redemption">
|
|
|
|
<strong>{{ redemption.name }}</strong>
|
|
|
|
<em>{{ redemption.twitch_id }}</em>
|
2021-08-21 00:35:25 +00:00
|
|
|
<details>
|
|
|
|
<summary>Script</summary>
|
|
|
|
<pre><code>{{ redemption.rhai }}</code></pre>
|
|
|
|
</details>
|
2021-08-18 05:45:44 +00:00
|
|
|
<form action="/redemptions/delete" method="post">
|
2021-08-20 17:20:53 +00:00
|
|
|
<input type="hidden" name="id" value="{{ redemption.id }}"/>
|
2021-08-18 05:45:44 +00:00
|
|
|
<button type="submit">Delete</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|