2017-01-29 18:54:55 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<h2>Toi aussi, joue au rézoman !</h2>
|
|
|
|
<p>
|
|
|
|
La rezo-roulette metzquetaire vous offre un répit temporaire. Profite bien {{ user['firstname']+' '+user['name'] }} ;-)
|
|
|
|
</p>
|
2017-01-30 08:51:21 +00:00
|
|
|
|
2017-02-03 01:01:47 +00:00
|
|
|
<p>
|
|
|
|
Rétablissement de la roulette vers midi.
|
|
|
|
</p>
|
|
|
|
|
2017-01-30 08:51:21 +00:00
|
|
|
<div id="container" style="min-width: 310px; max-width: 600px; margin: 0 auto"></div>
|
2017-01-29 18:54:55 +00:00
|
|
|
<h2>Historique personnel</h2>
|
|
|
|
|
|
|
|
{% if bans_hist != [] %}
|
|
|
|
<ul id="history">
|
|
|
|
{% for entry in bans_hist %}
|
|
|
|
<li class="{{ entry[0] }}" class="events">
|
|
|
|
<span class="normal"> {{ entry[1] }}</span>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
Rien pour l'instant
|
|
|
|
</p>
|
2017-01-30 08:16:36 +00:00
|
|
|
|
|
|
|
{% endif %}
|
2017-01-30 07:47:32 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
Highcharts.chart('container', {
|
|
|
|
chart: {
|
|
|
|
plotBackgroundColor: null,
|
|
|
|
plotBorderWidth: 0,
|
|
|
|
plotShadow: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
text: 'Etat du Rezo',
|
|
|
|
align: 'center',
|
|
|
|
verticalAlign: 'middle',
|
2017-01-30 10:12:24 +00:00
|
|
|
y: 60
|
2017-01-30 07:47:32 +00:00
|
|
|
},
|
|
|
|
tooltip: {
|
|
|
|
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
|
|
|
},
|
|
|
|
plotOptions: {
|
|
|
|
pie: {
|
|
|
|
dataLabels: {
|
|
|
|
enabled: true,
|
|
|
|
distance: -50,
|
|
|
|
style: {
|
|
|
|
fontWeight: 'bold',
|
|
|
|
color: 'white'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
startAngle: -90,
|
|
|
|
endAngle: 90,
|
|
|
|
center: ['50%', '75%']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
series: [{
|
|
|
|
type: 'pie',
|
2017-01-30 08:37:54 +00:00
|
|
|
name: 'Pourcentage',
|
2017-01-30 07:47:32 +00:00
|
|
|
innerSize: '50%',
|
|
|
|
data: [
|
2017-01-30 08:37:54 +00:00
|
|
|
{
|
|
|
|
name: 'Tranchés',
|
|
|
|
y: {{ stats[0] }},
|
|
|
|
color: '#FF0000',
|
|
|
|
},{
|
|
|
|
name: 'Vivants',
|
|
|
|
y: {{ stats[1] }},
|
|
|
|
color: '#FFCC00',
|
|
|
|
}
|
2017-01-30 07:47:32 +00:00
|
|
|
]
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-01-29 18:54:55 +00:00
|
|
|
{% endblock %}
|