Commit bb38dac0 authored by Simon Daron's avatar Simon Daron

Small fixes

parent da894426
......@@ -160,7 +160,7 @@ class Home(TemplateView):
def get_context_data(self, **kwargs):
context = super(Home, self).get_context_data(**kwargs)
context['news'] = NewsItem.objects.all().exclude(image__isnull=True).exclude(image__exact='').order_by('-datetime')[:5]
context['emissions'] = Emission.objects.filter(archived=False).order_by('?')
context['emissions'] = Emission.objects.filter(archived=False).order_by('title')
context['player'] = audioPlayer()
return context
......
{% extends "base.html" %}
{% block bodyID %}Emissions{% endblock %}
{% block listen %}{% endblock %}
{% block main %}
<div id="Emission" class="wrapper futurtabs">
<!--
......
......@@ -13,7 +13,7 @@
<button class="control symbol add">B</button>
</div>
{% endif %}
<a class="link" href="#">
<a class="link" href="{% url 'emission-view' slug=emission.slug %}">
<h5 class="title ellipsis">{{ emission.title }}</h5>
{% if emission.description %}
......
......@@ -31,7 +31,9 @@
<div class="wrapper">
<ul class="custom list columns">
{% for emission in emissions %}
<li class="item">{% include "emissions/inline.html" %} </li>
<li class="item">
<a href="{% url 'emission-view' slug=emission.slug %}">{{ emission.title }}</a>
</li>
{% endfor %}
</ul>
</div>
......
Markdown is supported
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