Commit 5fa05d70 authored by fred's avatar fred
Browse files

remove nocat support

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