Skip to content

Commit

Permalink
Tweak search guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
seav committed Mar 1, 2017
1 parent 62976fb commit 98b50bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions cadasta/core/static/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions cadasta/core/static/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ a {
}
}

kbd {
background: $gray-light;
color: $gray-dark;
}

/* =Page Content
-------------------------------------------------------------- */

Expand Down
7 changes: 3 additions & 4 deletions cadasta/templates/search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ <h2>{% trans "Search" %}</h2>
<button class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
<p class="small help-block">
{% blocktrans %}
e.g., Parcel”, “John White”, <a id="search-guidelines-link">more search guidelines</a>
e.g., <kbd>Parcel</kbd>, <kbd>John White</kbd>; <a id="search-guidelines-link">more search guidelines</a>
{% endblocktrans %}
</p>
<div id="search-guidelines" class="hidden">
<div id="search-guidelines" class="hidden small">
{% blocktrans %}
<ul>
<li>Review your wording, make sure that there aren’t any typos in your search query</li>
<li>If no results match your query, try removing some search terms (“John”, instead of “John White”)</li>
<li>Search results are currently capped to 10 matches. If you want to narrow down your results, try including additional search terms or making the existing ones more restrictive (“John White Kansas”, instead of “John White”)</li>
<li>If no results match your query, try removing some search terms (<kbd>John</kbd>, instead of <kbd>John White</kbd>)</li>
</ul>
{% endblocktrans%}
</div>
Expand Down

0 comments on commit 98b50bf

Please sign in to comment.