Commit ec108fb3 authored by Simon Daron's avatar Simon Daron
Browse files

Add pictos & distinct search results

parent 452008ab
......@@ -99,18 +99,19 @@
content: "\f04a ";
}
.icon-communautaire:before {
content: ""; /* ▴ */
content: ""; /* ▴ */
}
.icon-musique:before {
content: ""; /* ▵ */
content: ""; /* ▵ */
}
.icon-creation:before {
content: "\f04a "; /* ▴ */
content: ""; /* ○ */
}
.icon-agenda-culturel:before {
content: "\f04a "; /* ▴ */
content: ""; /* ● */
}
.icon-infodebats:before {
content: "\f04a "; /* ▴ */
content: "■"; /* ■ */
/*content: "□ "; □ */
}
......@@ -32,9 +32,9 @@
{% endif %}
{% for category in categories %}
{% if class = "grid" %}
<li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}"><span class="icon-{{category|slugify}}"></span>{{ category }}</button></li>
<li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}">{{ category }}&nbsp;<span class="icon-{{category|slugify}}"></span></button></li>
{% else %}
<li><button class="check icon-check" data-about="#Main" data-toggle=".{{ category|slugify }}"><span class="icon-{{category|slugify}}"></span>{{ category }}</button></li>
<li><button class="check icon-check" data-about="#Main" data-toggle=".{{ category|slugify }}">{{ category }}&nbsp;<span class="icon-{{category|slugify}}"></span></button></li>
{% endif %}
{% endfor %}
</ul>
......@@ -50,7 +50,7 @@
{% if emission.categories %}
<div class="categories">
{% for category in emission.categories.all %}
{% if forloop.counter > 1 %} - {% endif %}<span class="icon-{{category|slugify}}"></span><span>{{category}}</span>
<span class="icon-{{category|slugify}}"></span>&nbsp;<span>{{category}}</span>
{% endfor%}
</div>
{% endif %}
......
<a href="{% url 'emission-view' slug=result.object.slug %}">{{ result.object.title }}</a>
<a href="{% url 'emission-view' slug=result.object.slug %}">
<span class="icon-microphone" ></span>
<strong>{{ result.object.title }}</strong>
<br />
<span>{{ result.object.subtitle }}</span>
</a>
<a href="{% url 'episode-view' emission_slug=result.object.emission.slug slug=result.object.slug %}">
{{ result.object.emission.title }}
{{ result.object.title }}
<span class="icon-headphones" ></span>
<strong>{{ result.object.title }}</strong>
<br />
<span class="smooth">{{ result.object.emission.title }}</span>
</a>
......@@ -31,8 +31,12 @@
<div class="item {% if not schedule.emission.categories %}nocat{% endif %} {% for category in schedule.emission.categories.all %} {{ category|slugify }}{% endfor %}">
<strong>
<a href="{% url 'emission-view' slug=schedule.emission.slug %}">{{ schedule.emission.title }}</a>
<a href="{% url 'emission-view' slug=schedule.emission.slug %}">
<span>{{ schedule.emission.title }}</span>
</a>
</strong>
{% if schedule.emission.categories %}<br />{% endif %}
{% for category in schedule.emission.categories.all %}<span class="icon-{{category|slugify}}"></span>{% endfor%}
<br />
{% if schedule.weeks_string or schedule.time_label %}
{% spaceless %}
......@@ -50,6 +54,7 @@
<span>)</span>
{% endspaceless %}
{% endif %}
</div>
{% endfor %}
{% else %}
......
<a href="{% url 'news-view' slug=result.object.slug %}">{{ result.object.title }}</a>
<a href="{% url 'news-view' slug=result.object.slug %}">
<span class="icon-bullhorn" ></span>
<strong>{{ result.object.title }}</strong>
{% if result.object.datetime %}
<div class="smooth">{{ result.object.datetime|date:"D m/M" }}</div>
{% endif %}
</a>
......@@ -55,7 +55,6 @@
{% if query %}
<div class="wrapper">
<div class="padded">
<nav>
{% if not page.object_list %}
<div class="big error padded center">Sorry, no result with your query!</div>
{% endif %}
......@@ -83,7 +82,6 @@
<a class="button big right" href="?q={{ query }}&amp;page={{ page.next_page_number }}">Résultats suivants &raquo;</a>
</div>
{% endif %}
</nav>
</div>
</div>
{% endif %}
......
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