-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from tanderegg/master
Final changes before end of Phase 1 Development
- Loading branch information
Showing
11 changed files
with
225 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
ckanext/cfpb_extrafields/templates/home/snippets/search.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% set tags = h.get_facet_items_dict('tags', limit=3) %} | ||
{% set placeholder = _('E.g. mortgage') %} | ||
|
||
<div class="module module-search module-narrow module-shallow box"> | ||
<form class="module-content search-form" method="get" action="{% url_for controller='package', action='search' %}"> | ||
<h3 class="heading">{{ _("Search data") }}</h3> | ||
<div class="search-input control-group search-giant"> | ||
<input type="text" class="search" name="q" value="" autocomplete="off" placeholder="{% block search_placeholder %}{{ placeholder }}{% endblock %}" /> | ||
<button type="submit"> | ||
<i class="icon-search"></i> | ||
<span>{{ _('Search') }}</span> | ||
</button> | ||
</div> | ||
</form> | ||
<div class="tags"> | ||
<h3>{{ _('Popular tags') }}</h3> | ||
{% for tag in tags %} | ||
<a class="tag" href="{% url_for controller='package', action='search', tags=tag.name %}">{{ h.truncate(tag.display_name, 22) }}</a> | ||
{% endfor %} | ||
</div> | ||
</div> |
Oops, something went wrong.