Commit 461d9231 authored by sberna's avatar sberna

Message on focus facet if empty

parent f4cb6877
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-22 20:04+0200\n"
"POT-Creation-Date: 2020-06-04 10:28+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -1465,10 +1465,8 @@ msgstr "Search for territories"
#: templates/includes/search_bar.html:88
#, python-format
msgid ""
"Messaggio con data %(data_aggiornamento)s volendo anche un po' lunghetto, "
"che va su più righe."
msgstr ""
msgid "In corso di aggiornamento con i dati riferiti al %(data_aggiornamento)s"
msgstr "Update undergoing on data at %(data_aggiornamento)s"
#: templates/includes/totali.html:5
msgid "Progetti conclusi"
......
# -*- coding: utf-8 -*-
import datetime
import zipfile
from collections import OrderedDict
from django import forms
......@@ -317,6 +318,8 @@ class ProgettoSearchView(OCMultiSelectWithRangeFacetedSearchViewSearchView):
context['metadata_file'] = OpenDataFile.objects.get(slug='progetti_metadata')
context['data_aggiornamento'] = datetime.datetime.strptime(settings.DATA_AGGIORNAMENTO, '%Y-%m-%d')
return context
......
......@@ -1539,6 +1539,10 @@ ul.paginator li .active {
padding: 4px 0;
color: #A8A8A8;
}
.search-filter .panel .panel-collapse p {
margin: 0;
padding: 4px 14px 14px 14px;
}
#indicators {
margin-top: 40px;
}
......
This diff is collapsed.
......@@ -1913,6 +1913,11 @@ ul.paginator {
color: #A8A8A8;
}
}
p {
margin: 0;
padding: 4px @filterbarpadding @filterbarpadding @filterbarpadding;
}
}
}
}
......
......@@ -71,17 +71,25 @@
<h3 class="panel-title"><a data-toggle="collapse" href="#{{ id }}" class="collapsed">{{ facet_info.label }}</a></h3>
</div>
<div id="{{ id }}" class="panel-collapse collapse">
<ul>
{% for v in facet_info.values %}
<li>
{% if v.urls.add_filter %}
<a href="?{{ v.urls.add_filter }}"{% if v.label != v.short_label %} title="{{ v.label }}"{% endif %}>{{ v.short_label }} ({{ v.count|default_if_none:0 }})</a>
{% else %}
<span{% if v.label != v.short_label %} title="{{ v.label }}"{% endif %}>{{ v.short_label }} ({{ v.count|default_if_none:0 }})</span>
{% endif %}
</li>
{% endfor %}
</ul>
{% if facet_info.values %}
<ul>
{% for v in facet_info.values %}
<li>
{% if v.urls.add_filter %}
<a href="?{{ v.urls.add_filter }}"{% if v.label != v.short_label %} title="{{ v.label }}"{% endif %}>{{ v.short_label }} ({{ v.count|default_if_none:0 }})</a>
{% else %}
<span{% if v.label != v.short_label %} title="{{ v.label }}"{% endif %}>{{ v.short_label }} ({{ v.count|default_if_none:0 }})</span>
{% endif %}
</li>
{% endfor %}
</ul>
{% elif facet_name == 'focus' %}
<p>
{% blocktrans trimmed with data_aggiornamento=data_aggiornamento|date:'d/m/Y' %}
In corso di aggiornamento con i dati riferiti al {{ data_aggiornamento }}
{% endblocktrans %}
</p>
{% endif %}
</div>
</div>
{% endwith %}
......
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