Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Commit

Permalink
Add RTD Versions and Search
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Jan 22, 2012
1 parent db681bd commit a32137e
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions doctrine/layout.html
Expand Up @@ -72,19 +72,25 @@ <h3>{{ _('This Page') }}</h3>
{%- endif %}
{%- block sidebarsearch %}
{%- if pagename != "search" %}
<div id="searchbox" style="display: none">
<h3>{{ _('Quick search') }}</h3>
<form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" size="18" />
<input type="submit" value="{{ _('Go') }}" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
{{ _('Enter search terms or a module, class or function name.') }}
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
{% if versions %}
<h3>Project Versions</h3>
<ul id="sidebar_versions">
{% for slug, url in versions %}
<li><a href="http://readthedocs.org{{ url }}">{{ slug }}</a></li>
{% endfor %}
</ul>
{% endif %}
<div id="searchbox" style="">
<h3>Search</h3>
<form class="search" action="http://readthedocs.org/search/project/" method="get">
<input type="text" name="q" size="18">
<input type="submit" value="Go">
<input type="hidden" name="selected_facets" value="project:{{ name }}">
</form>
<p class="searchtip" style="font-size: 90%">
Full-text doc search.
</p>
</div>
{%- endif %}
{%- endblock %}
</div>
Expand Down

0 comments on commit a32137e

Please sign in to comment.