Skip to content

Commit

Permalink
[#788] Improve no facet message
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes authored and kindly committed Apr 23, 2013
1 parent a4721b2 commit 97a544b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ckan/templates/snippets/facet_list.html
Expand Up @@ -40,7 +40,8 @@
<section class="{{ wrapper_class or 'module module-narrow module-shallow' }}">
<h2 class="module-heading">
<i class="icon-medium icon-filter"></i>
{{ title or h.get_facet_title(name) }}
{% set title = title or h.get_facet_title(name) %}
{{ title }}
<a href="{{ h.remove_url_param(name, extras=extras, alternative_url=alternative_url) }}" class="action">{{ _('Clear All') }}</a>
</h2>
{% if items %}
Expand All @@ -60,13 +61,13 @@ <h2 class="module-heading">
</nav>
<p class="module-footer">
{% if h.get_param_int('_%s_limit' % name) %}
<a href="{{ h.remove_url_param('_%s_limit' % name, replace=0, extras=extras, alternative_url=alternative_url) }}" class="read-more">{{ _('Show More {facet}').format(facet=title) }}</a>
<a href="{{ h.remove_url_param('_%s_limit' % name, replace=0, extras=extras, alternative_url=alternative_url) }}" class="read-more">{{ _('Show More {facet_type}').format(facet_type=title) }}</a>
{% else %}
<a href="{{ h.remove_url_param('_%s_limit' % name, extras=extras, alternative_url=alternative_url) }}" class="read-more">{{ _('Show Only Popular {facet}').format(facet=title) }}</a>
<a href="{{ h.remove_url_param('_%s_limit' % name, extras=extras, alternative_url=alternative_url) }}" class="read-more">{{ _('Show Only Popular {facet_type}').format(facet_type=title) }}</a>
{% endif %}
</p>
{% else %}
<p class="module-content empty">{{ _('There are no filters for this search') }}</p>
<p class="module-content empty">{{ _('There are no {facet_type} that match this search').format(facet_type=title) }}</p>
{% endif %}
</section>
{% endwith %}

0 comments on commit 97a544b

Please sign in to comment.