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): def get_context_data(self, **kwargs):
context = super().get_context_data() context = super().get_context_data()
context['title'] = "Tombola Saper[list]popette"
next_rewards = Reward.objects.filter(rewarded_by__isnull=True).order_by('order').reverse() 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() old_reward = Reward.objects.filter(rewarded_by__isnull=False).order_by('order').reverse()
context['old_rewards'] = old_reward.all() context['old_rewards'] = old_reward.all()

View File

@ -64,6 +64,28 @@ SPDX-License-Identifier: GPL-3.0-or-later
</div> </div>
</main> </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 %} {% block extrajavascript %}
{% endblock extrajavascript %} {% endblock extrajavascript %}
</body> </body>

View File

@ -6,6 +6,13 @@
<meta name="turbolinks-cache-control" content="no-preview"> <meta name="turbolinks-cache-control" content="no-preview">
{% endblock %} {% 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 %} {% block content %}
<div style=""> <div style="">
<div class="alert alert-danger" style="width: 15%; float: left; margin: 1%;"> <div class="alert alert-danger" style="width: 15%; float: left; margin: 1%;">