Ajout d'un contenu fixe en première page de modération

This commit is contained in:
Jean-Marie Favreau 2024-12-14 13:13:56 +01:00
parent cc0c798f5a
commit d770cf23f0
2 changed files with 42 additions and 34 deletions

View File

@ -1684,15 +1684,7 @@ label.required::after {
background: rgb(178, 0, 178); background: rgb(178, 0, 178);
} }
} }
@media only screen and (min-width: 550px) { @media only screen and (min-width: 1800px) {
font-size: 90%;
.ratio {
a, .a {
width: 5em;
height: 3.2em;
line-height: 3.2em;
}
}
.total, .month { .total, .month {
display: inline; display: inline;
opacity: .35; opacity: .35;
@ -1700,6 +1692,15 @@ label.required::after {
.label { .label {
display: table-cell; display: table-cell;
} }
}
@media only screen and (min-width: 1600px) {
.ratio {
a, .a {
width: 5em;
height: 3.2em;
line-height: 3.2em;
}
}
font-size: 100%; font-size: 100%;
} }
} }

View File

@ -18,6 +18,8 @@
<div class="grid two-columns"> <div class="grid two-columns">
<div id="contenu-principal"> <div id="contenu-principal">
<div> <div>
<article> <article>
<header> <header>
<div class="slide-buttons"> <div class="slide-buttons">
@ -25,33 +27,38 @@
</div> </div>
<h2>Modération à venir</h2> <h2>Modération à venir</h2>
</header> </header>
<div class="grid">
<div class="moderation_heatmap"> <div>
{% for w in nb_not_moderated %} {% url 'administration' as local_url %}
<table> {% include "agenda_culturel/static_content.html" with name="administration" url_path=local_url %}
<thead> </div>
<th class="label"></th> <div class="moderation_heatmap">
{% for m in w %} {% for w in nb_not_moderated %}
<th><a href="{% url 'day_view' m.start_day.year m.start_day.month m.start_day.day %}">{{ m.start_day|date:"d" }}<span class="month"> {{ m.start_day|date:"M"|lower }}</span></a></th> <table>
{% endfor %} <thead>
</thead> <th class="label"></th>
<tbody>
<tr>
<th class="label">reste à modérer</h>
{% for m in w %} {% for m in w %}
<td class="ratio score_{{ m.note }}"> <th><a href="{% url 'day_view' m.start_day.year m.start_day.month m.start_day.day %}">{{ m.start_day|date:"d" }}<span class="month"> {{ m.start_day|date:"M"|lower }}</span></a></th>
<{% if m.not_moderated > 0 %}a href="{% if m.is_today %}
{% url 'moderate' %}
{% else %}
{% url 'moderate_from_date' m.start_day.year m.start_day.month m.start_day.day %}
{% endif %}"{% else %}span class="a"{% endif %}>
{{ m.not_moderated }}<span class="total"> / {{ m.nb_events }}</span></{% if m.not_moderated > 0 %}a{% else %}span{% endif %}>
</td>
{% endfor %} {% endfor %}
</tr> </thead>
</tbody> <tbody>
</table> <tr>
{% endfor %} <th class="label">reste à modérer</h>
{% for m in w %}
<td class="ratio score_{{ m.note }}">
<{% if m.not_moderated > 0 %}a href="{% if m.is_today %}
{% url 'moderate' %}
{% else %}
{% url 'moderate_from_date' m.start_day.year m.start_day.month m.start_day.day %}
{% endif %}"{% else %}span class="a"{% endif %}>
{{ m.not_moderated }}<span class="total"> / {{ m.nb_events }}</span></{% if m.not_moderated > 0 %}a{% else %}span{% endif %}>
</td>
{% endfor %}
</tr>
</tbody>
</table>
{% endfor %}
</div>
</div> </div>
</article> </article>