Add some cosmetics

This commit is contained in:
Yohann D'ANELLO 2020-03-02 20:33:24 +01:00
parent a7df2411e0
commit 768a502b58
3 changed files with 29 additions and 2 deletions

View File

@ -11,8 +11,6 @@ class TombolaView(TemplateView):
def get_context_data(self, **kwargs):
context = super().get_context_data()
context['title'] = "Tombola Saper[list]popette"
next_rewards = Reward.objects.filter(rewarded_by__isnull=True).order_by('order').reverse()
old_reward = Reward.objects.filter(rewarded_by__isnull=False).order_by('order').reverse()
context['old_rewards'] = old_reward.all()

View File

@ -64,6 +64,28 @@ SPDX-License-Identifier: GPL-3.0-or-later
</div>
</main>
<footer class="bg-light mt-auto py-2">
<div class="container-fluid">
<div class="row">
<div class="col-sm">
<form action="{% url 'set_language' %}" method="post"
class="form-inline">
<span class="text-muted mr-1">
Tombola Saper[list]popette <span style="color: red;"></span>️♠️<span style="color: red;"></span>️♣
</span>
{% csrf_token %}
<noscript>
<input type="submit">
</noscript>
</form>
</div>
<div class="col-sm text-right">
<a href="#" class="text-muted">Retour en haut</a>
</div>
</div>
</div>
</footer>
{% block extrajavascript %}
{% endblock extrajavascript %}
</body>

View File

@ -6,6 +6,13 @@
<meta name="turbolinks-cache-control" content="no-preview">
{% endblock %}
{% block contenttitle %}
<h1>
<img style="width: 200px;" src="https://perso.crans.org/ynerant/Saperlistpopette.jpeg" />
Tombola Saper[list]popette <span style="color: red;"></span>️♠️<span style="color: red;"></span>️♣
</h1>
{% endblock %}
{% block content %}
<div style="">
<div class="alert alert-danger" style="width: 15%; float: left; margin: 1%;">