Skip to content

Commit

Permalink
Make it clearer which articles are searched
Browse files Browse the repository at this point in the history
Differentiate between full search or hierarchical search
  • Loading branch information
duvholt committed Dec 14, 2017
1 parent ee141d7 commit 167b901
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/wiki/templates/wiki/base_site.html
Expand Up @@ -48,7 +48,13 @@
{% endspaceless %}"
>
<div class="input-group">
<input type="search" class="form-control search-query" name="q" placeholder="{% trans "Search..." %}" />
<input type="search" class="form-control search-query" name="q" placeholder="{% spaceless %}
{% if article or urlpath %}
{% trans "Search from current article..." %}
{% else %}
{% trans "Search whole wiki..." %}
{% endif %}
{% endspaceless %}" />
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="fa fa-search"></span>
Expand Down
5 changes: 5 additions & 0 deletions src/wiki/templates/wiki/search.html
Expand Up @@ -12,6 +12,11 @@ <h1 class="page-header">{% trans "Search results for:" %} {{ search_query }}</h1
<p class="lead">
<div class="pull-right">
<div class="input-group">
{% if urlpath %}
<p>{% trans "Searching in" %} {{ urlpath.article }}</p>
{% else %}
<p>{% trans "Searching whole wiki" %}</p>
{% endif %}
<input type="search" class="form-control search-query" name="q" value="{{ search_query }}" />
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
Expand Down

0 comments on commit 167b901

Please sign in to comment.