view static/tpl/search-results.html @ 151:f32af0888382

Added support for ElasticSearch indexing: - More configurable setup for wiki providers (SCM, indexing, etc.). - Lazy importing of provider specific packages. - Nicer search results.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 16 Dec 2013 20:59:42 -0800
parents 74eb145eb839
children
line wrap: on
line source

<article>
    <header>
        <h1>Search Results</h1>
    </header>
    <section>
        {{#if is_instant}}
        <p><small>Press <code>Escape</code> to cancel.</small></p>
        {{/if}}
        {{#if hits}}
        <ul class="search-results">
            {{#each hits}}
            <li>
            <h3><a href="{{get_read_url url}}">{{title}}</a></h3>
            <div class="highlighted">{{{text}}}</div>
            </li>
            {{/each}}
        </ul>
        {{else}}
        <p>No matches found.</p>
        {{/if}}
    </section>
</article>