Commit 548dec2b authored by Simon Daron's avatar Simon Daron
Browse files

Some css stuff in home news

parent 2cec8070
...@@ -254,7 +254,7 @@ class Home(TemplateView): ...@@ -254,7 +254,7 @@ class Home(TemplateView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(Home, self).get_context_data(**kwargs) context = super(Home, self).get_context_data(**kwargs)
context['newsImaged'] = list(NewsItem.objects.all().exclude(image__isnull=True).exclude(image__exact='').order_by('-datetime')[:3]) context['newsImaged'] = list(NewsItem.objects.all().exclude(image__isnull=True).exclude(image__exact='').order_by('-datetime')[:3])
context['newsImaged2'] = list(NewsItem.objects.all().exclude(image__isnull=True).exclude(image__exact='').order_by('-datetime')[:10]) context['newsImaged2'] = list(NewsItem.objects.all().exclude(image__isnull=True).exclude(image__exact='').order_by('-datetime')[3:15])
context['news'] = list(NewsItem.objects.all().order_by('-datetime')[:36]) context['news'] = list(NewsItem.objects.all().order_by('-datetime')[:36])
context['emissions'] = list(Emission.objects.filter(archived=False).order_by('title')) context['emissions'] = list(Emission.objects.filter(archived=False).order_by('title'))
schedules = Schedule.objects.select_related().order_by('datetime') schedules = Schedule.objects.select_related().order_by('datetime')
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
<hr /> <hr />
<div class="wrapper padded news newsRoll"> <div class="wrapper padded news newsRoll">
<ul class="custom inline ellipsis"> <ul class="custom inline ellipsis center">
{% for content in newsImaged2 %} {% for content in newsImaged2 %}
<li class="item"> <li class="item">
<a class="inBlock news" href="{% url 'news-view' slug=content.slug %}"> <a class="inBlock news" href="{% url 'news-view' slug=content.slug %}">
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
<div class="program padded"> <div class="program padded">
<div class="wrapper"> <div class="wrapper">
<h2>Cette semaine sur Panik</h2> <h2>Cette semaine sur Panik</h2>
{% weekview %} {% weekview %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
......
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