Add some cosmetics
This commit is contained in:
parent
768a502b58
commit
f81c7d1924
|
@ -56,7 +56,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
</head>
|
</head>
|
||||||
<body class="d-flex w-100 h-100 flex-column">
|
<body class="d-flex w-100 h-100 flex-column">
|
||||||
<main class="mb-auto">
|
<main class="mb-auto">
|
||||||
<div class="container-fluid my-3" style="max-width: 1600px;">
|
<div class="container-fluid my-3" style="width: 100%;">
|
||||||
{% block contenttitle %}<h1>{{ title }}</h1>{% endblock %}
|
{% block contenttitle %}<h1>{{ title }}</h1>{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<p>Default content...</p>
|
<p>Default content...</p>
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div style="">
|
<div style="width: 100%;">
|
||||||
<div class="alert alert-danger" style="width: 15%; float: left; margin: 1%;">
|
<div class="alert alert-danger" style="width: 17%; float: left; margin: 0.5%;">
|
||||||
<strong>Lots déjà offerts :</strong>
|
<h3>Lots déjà offerts :</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{% for reward in old_rewards %}
|
{% for reward in old_rewards %}
|
||||||
<li><strong>{{ reward.name }} :</strong> remporté par {{ reward.rewarded_by.note }} (ticket n° {{ reward.rewarded_by.number }})</li>
|
<li><strong>{{ reward.name }} :</strong> remporté par {{ reward.rewarded_by.note }} (ticket n° {{ reward.rewarded_by.number }})</li>
|
||||||
|
@ -24,23 +24,30 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-warning" style="width: 30%; float: left; margin: 1%;">
|
<div class="alert alert-warning" style="width: 31%; float: left; margin: 0.5%;">
|
||||||
<strong>Lot précédent :</strong><br />
|
<h3>Lot précédent :</h3><br />
|
||||||
<strong>{{ previous_reward.name }} :</strong> remporté par {{ previous_reward.rewarded_by.note }}
|
{% if previous_reward %}
|
||||||
|
<strong>• {{ previous_reward.name }} :</strong> remporté par {{ previous_reward.rewarded_by.note }}
|
||||||
(ticket n° {{ previous_reward.rewarded_by.number }})<br />
|
(ticket n° {{ previous_reward.rewarded_by.number }})<br />
|
||||||
|
{% else %}
|
||||||
|
<h5>• <img src="https://cdn.pixabay.com/photo/2012/04/16/13/51/triangle-36068_960_720.png" style="height: 24px;" /> Aucun lot n'a encore été remporté.</h5>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<img src="{{ previous_reward.image.url }}" alt="{{ previous_reward.name }}" style="width: 100%;" />
|
<img src="{{ previous_reward.image.url }}" alt="{{ previous_reward.name }}" style="width: 100%;" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-info" style="width: 30%; float: left; margin: 1%;">
|
<div class="alert alert-info" style="width: 31%; float: left; margin: 0.5%;">
|
||||||
<strong>Lot suivant :</strong><br />
|
<h3>Lot suivant :</h3><br />
|
||||||
<strong>{{ current_reward.name }}</strong><br />
|
{% if current_reward %}
|
||||||
|
<h5>• {{ current_reward.name }}</h5><br />
|
||||||
<img src="{{ current_reward.image.url }}" alt="{{ previous_reward.name }}" style="width: 100%;" />
|
<img src="{{ current_reward.image.url }}" alt="{{ previous_reward.name }}" style="width: 100%;" />
|
||||||
|
{% else %}
|
||||||
|
<h5>• <img src="https://cdn.pixabay.com/photo/2012/04/16/13/51/triangle-36068_960_720.png" style="height: 24px;" /> Tous les lots ont déjà été distribués !</h5>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-success" style="width: 15%; float: left; margin: 1%;">
|
<div class="alert alert-success" style="width: 17%; float: left; margin: 0.5%;">
|
||||||
<strong>Lots à venir :</strong>
|
<h3>Lots à venir :</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{% for reward in next_rewards %}
|
{% for reward in next_rewards %}
|
||||||
<li><strong>{{ reward.name }}</strong></li>
|
<li><strong>{{ reward.name }}</strong></li>
|
||||||
|
|
Loading…
Reference in New Issue