Commit 5fa05d70 authored by fred's avatar fred

remove nocat support

parent 9a41f9ad
......@@ -99,9 +99,6 @@
content: "\f056 ";
}
.icon-nocat:before {
content: "\f04a ";
}
.icon-communautaire:before {
content: "▲"; /* ▴ */
}
......
......@@ -13,7 +13,7 @@
<div class="wrapper">
<ul class="custom list columns padded">
{% for emission in emissions %}
<li class="item {% if emission.categories.all.count = 0 %}nocat{% endif %} {% for category in emission.categories.all %} {{ category|slugify }}{% endfor %}{% if emission.archived %} archived{% endif %}"
<li class="item {% for category in emission.categories.all %} {{ category|slugify }}{% endfor %}{% if emission.archived %} archived{% endif %}"
>{% emission_resume %}</li>
{% endfor %}
</ul>
......
......@@ -14,7 +14,7 @@
{% if search_query and episodes or episodes.count <= 24 %}
<ul class="custom columns list">
{% for episode in episodes %}
<li class="item {% if episode.emission.categories.all.count = 0 %}nocat{% endif %} {% for category in episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
<li class="item {% for category in episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
{% episode_resume model="inline"%}
</li>
{% endfor %}
......
......@@ -23,9 +23,6 @@
<div class="wrapper">
<nav id="gridNav" class="checkable">
<ul class="by{{ categories.count }}">
{% if class = "emissions" or class = "archives" %}
<li><button class="check icon-check-empty" data-about="#Main" data-toggle=".nocat"><span class="category">?</span></button></li>
{% endif %}
{% for category in categories %}
{% if class = "grid" %}
<li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}"><span class="category">{{ category }}</span></button></li>
......
......@@ -31,7 +31,7 @@
{% if cell.schedules %}
{% for schedule in cell.schedules %}
{% if forloop.first == False and cell.schedules|length > 1 %}<hr />{% endif %}
<div class="item {% if not schedule.emission.categories %}nocat{% endif %} {% for category in schedule.emission.categories.all %} {{ category|slugify }}{% endfor %}">
<div class="item {% for category in schedule.emission.categories.all %} {{ category|slugify }}{% endfor %}">
<strong>
<a href="{% url 'emission-view' slug=schedule.emission.slug %}">
......
......@@ -52,7 +52,7 @@
<h3 class="sectionLabel">Derniers sons&nbsp;<a class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h3>
<ul class="custom list">
{% for soundfile in soundfiles %}
<li class="item {% if soundfile.episode.emission.categories.all.count = 0 %}nocat{% endif %} {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
<li class="item {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
{% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}
</li>
{% endfor %}
......
......@@ -11,7 +11,7 @@
<div class="wrapper">
<ul class="padded custom list">
{% for soundfile in soundfiles %}
<li class="item {% if soundfile.episode.emission.categories.all.count = 0 %}nocat{% endif %} {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
<li class="item {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
{% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}
</li>
{% endfor %}
......
......@@ -19,7 +19,6 @@
{% if categories and class != "archives" %}
<nav id="gridNav" class="checkable">
<ul class="by{{ categories.count }}">
<li><button class="check icon-check-empty" data-about="#Main" data-toggle=".nocat">?</button></li>
{% for category in categories %}
<li><button class="check icon-check-empty" data-about="#Main" data-toggle=".{{ category|slugify }}">{{ category }}</button></li>
......
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