Skip to content

Commit

Permalink
Merge branch 'master' of github.com:okfn/ckan
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 6, 2013
2 parents f88e8c0 + c7d503b commit 544b9ca
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions ckan/templates/package/snippets/search_form.html
Expand Up @@ -15,13 +15,12 @@
</form>
<div class="results">
<strong>
{% if request.params and c.page.item_count %}
{{ c.page.item_count }} datasets{% if c.q %} found for &#147;{{ c.q }}&#148;{% endif %}
{% elif request.params and c.page.item_count == 0 %}
Sorry no datasets found{% if c.q %} for &#147;{{ c.q }}&#148;{% endif %}
{% if c.q %}
{{ _('{number} datasets found for "{query}"').format(query=c.q, number=c.page.item_count) }}
{% else %}
All datasets
{{ _('{number} datasets found').format(number=c.page.item_count) }}
{% endif %}

</strong>
<div class="filter-list">
{% for field in c.fields_grouped %}
Expand All @@ -37,15 +36,13 @@
</span>
{% endfor %}
{% endfor %}
{% if request.params and c.q and c.page.item_count == 0 %}
<p class="extra">Try another search term,
browse the datasets below or <a href="{{ h.url_for(action='new', id=None) }}">add your own data</a>.</p>
{% endif %}
</div>
</div>

{% if c.query_error %}
<p><strong>There was an error while searching.</strong> Please try again.</p>
{% else %}
{% if c.page.items %}
{{ h.snippet('snippets/package_list.html', packages=c.page.items, bulk_processing=c.bulk_processing) }}
{% endif %}
{% endif %}

{{ h.snippet('snippets/package_list.html', packages=c.page.items, bulk_processing=c.bulk_processing) }}

0 comments on commit 544b9ca

Please sign in to comment.