Project

General

Profile

Download (865 Bytes) Statistics
| Branch: | Tag: | Revision:

theme / ckanext / ozwillo_theme / templates / home / snippets / search.html @ 1cc843b5

1
{% set tags = h.get_facet_items_dict('tags', limit=3) %}
2
{% set placeholder = _('eg. Gold Prices') %}
3

    
4
<div class="module module-search module-narrow module-shallow box">
5
  <form class="module-content search-form" method="get" action="{% url_for controller='package', action='search' %}">
6
    <div class="search-input control-group search-giant">
7
      <input type="text" class="search" name="q" value="" autocomplete="off" placeholder="{{ _("Search Your Data") }}" />
8
      <button type="submit">
9
        <i class="icon-search"></i>
10
        <span>{{ _('Search') }}</span>
11
      </button>
12
    </div>
13
  </form>
14
  <div class="tags">
15
    <h3>{{ _('Popular Tags') }}</h3>
16
    {% for tag in tags %}
17
      <a class="tag" href="{% url_for controller='package', action='search', tags=tag.name %}">{{ h.truncate(tag.display_name, 22) }}</a>
18
    {% endfor %}
19
  </div>
20
</div>
    (1-1/1)