Commit 49c37110 authored by Simon Daron's avatar Simon Daron
Browse files

tag in search

parent f1d62126
......@@ -97,7 +97,7 @@ button.tag, a.tag {
-moz-border-radius: 0.7em;
-webkit-border-radius: 0.7em;
}
button.check {
button.check, a.check {
font-size:0.9em;
background:white;
text-transform: none;
......@@ -110,7 +110,7 @@ button.check {
-moz-border-radius: 0.7em;
-webkit-border-radius: 0.7em;
}
button.check:before {
button.check:before, a.check:before {
display:inline-block;
width:1.5em;
}
......@@ -629,7 +629,9 @@ body{
}*/
#Search a.check.count-0{
display:none;
}
ul#search-results li.previous-page {
......
{% extends 'panikdb/base.html' %}
{% load paniktags %}
{% load highlight %}
{% block bodyID %}Search{% endblock %}
{% block player-class %}{% endblock %}
{% block title %}Recherche{% endblock %}
......@@ -12,17 +13,16 @@
{% if query %}
<nav id="gridNav">
{% if facets.fields.categories %}
<ul class="custom distributed">
<ul class="custom">
{# Provide only the top 5 categories #}
{% for category in facets.fields.categories|slice:":5" %}
<li>
{% if category.0 in selected_categories %}
<a class="active" href="{{ request.get_full_path|remove_category_facet:category.0 }}">
<span class="icon-ok"></span>
<a class="check icon-check" href="{{ request.get_full_path|remove_category_facet:category.0 }}">
{{ category.0 }} | {{ category.1 }}
</a>
{% else %}
<a href="{{ request.get_full_path|append_category_facet:category.0 }}">{{ category.0 }} | {{ category.1 }}</a></span>
<a class="check icon-check-empty count-{{ category.1 }}" href="{{ request.get_full_path|append_category_facet:category.0 }}">{{ category.0 }} | {{ category.1 }}</a></span>
{% endif %}
</li>
{% endfor %}
......@@ -36,12 +36,11 @@
{% for tag in facets.fields.tags|slice:":20" %}
<li>
{% if tag.0 in selected_tags %}
<a class="tag active" href="{{ request.get_full_path|remove_tag_facet:tag.0 }}">
<span class="icon-ok"></span>
<a class="check icon-check" href="{{ request.get_full_path|remove_tag_facet:tag.0 }}">
{{ tag.0 }} | {{ tag.1 }}
</a>
{% else %}
<a class="tag" href="{{ request.get_full_path|append_tag_facet:tag.0 }}">{{ tag.0 }} | {{ tag.1 }}</a>
<a class="check icon-check-empty count-{{ tag.1 }}" href="{{ request.get_full_path|append_tag_facet:tag.0 }}">{{ tag.0 }} | {{ tag.1 }}</a>
{% endif %}
</li>
{% endfor %}
......
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