Commit 3ab695f5 authored by fred's avatar fred
Browse files

relayout main news page

parent f330539b
......@@ -346,6 +346,14 @@ body{
#Emissions div.mainSub ul li {
}
#News .news.wrapper {
padding: 0;
}
#News .news.wrapper li a {
margin-left: 0;
padding-left: 0;
}
}
......
......@@ -8,10 +8,11 @@
{% news_nav %}
{% endblock %}
{% block main %}
<div class="news">
<div class="news wrapper navigation">
<div class="leftPart">
{% with news|slice:"0:3" as news %}
<div class="wrapper">
<ul class="custom columns news newsSpecial cf by3">
<ul class="custom columns news newsSpecial cf by2">
{% for content in news %}
<li class="item">
{% news_inline klass="special"%}
......@@ -31,6 +32,30 @@
</ul>
</div>
{% endwith %}
</div>
<div class="rightPart">
<div class="sub">
{% if newsitem.emission %}
<h5 class="sectionLabel">proposé par</h5>
{% with newsitem.emission as emission %}
<div class="">{% emission_resume %}</div>
{% endwith %}
{% endif %}
<h5 class="sectionLabel right">
<a href="{% url 'newsArchives' %}">
<span class="iconLabel">Toutes</span>
</a>
</h5>
<h5 class="sectionLabel">
<span class="iconLabel">Dernières actus</span>
</h5>
<ul class="custom list">
{% for content in news %}
{% if content != newsitem %}<li>{% news_inline %}</li>{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %}
{% block links %}
......@@ -46,5 +71,6 @@
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %}
<div class="mainSub">
<div class="mainSub" style="display: none">
<div class="wrapper">
<nav>
<form method="get" action="{% url 'newsArchives' %}" class="big marged" id="search-form">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment