forked from rc/aircox
update home page + sidebar items sizing
This commit is contained in:
@ -14,10 +14,10 @@
|
||||
|
||||
{% block pages_list %}
|
||||
{% if page and page.content %}<hr/>{% endif %}
|
||||
{% if top_diffs %}
|
||||
{% if next_diffs %}
|
||||
<div class="columns">
|
||||
{% with render_card=True %}
|
||||
{% for object in top_diffs %}
|
||||
{% for object in next_diffs %}
|
||||
{% with is_primary=object.is_now %}
|
||||
<div class="column is-relative">
|
||||
<h4 class="card-super-title" title="{{ object.start }}">
|
||||
@ -40,16 +40,16 @@
|
||||
{% endfor %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
<h4 class="title is-4">{% translate "Last publications" %}</h4>
|
||||
{% with has_headline=True %}
|
||||
{{ block.super }}
|
||||
{% endwith %}
|
||||
{% if object_list %}
|
||||
<h4 class="title is-4">{% translate "Today" %}</h4>
|
||||
<section role="list">
|
||||
{% include 'aircox/widgets/diffusion_list.html' %}
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block pagination %}
|
||||
<ul class="pagination-list">
|
||||
<li>
|
||||
@ -65,25 +65,20 @@
|
||||
{% block sidebar %}
|
||||
<section>
|
||||
<h4 class="title is-4">{% translate "Previously on air" %}</h4>
|
||||
{% with has_cover=False %}
|
||||
{% with logs as object_list %}
|
||||
{% include "aircox/widgets/log_list.html" %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h4 class="title is-4">{% translate "Today" %}</h4>
|
||||
{% with is_thin=True %}
|
||||
<h4 class="title is-4">{% translate "Last publications" %}</h4>
|
||||
{% with hide_schedule=True %}
|
||||
{% with has_headline=False %}
|
||||
<table class="table is-fullwidth has-background-transparent">
|
||||
{% for object in sidebar_object_list %}
|
||||
<tr {% if object.is_now %}class="is-selected"{% endif %}>
|
||||
<td>{{ object.start|date:"H:i" }}</td>
|
||||
<td>{% include "aircox/widgets/diffusion_item.html" %}</td>
|
||||
</tr>
|
||||
{% for object in last_publications %}
|
||||
{% include object.item_template_name|default:'aircox/widgets/page_item.html' %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user