view static/tpl/search-results.html @ 89:b03f083c3a29

Lots of HTML/JS/Less changes: - more semantic and simple markup, no useless grid. - simpler colour schemes (TODO: colours are ugly, tune them). - better error handling in Backbone views. - fixed some view bugs. - changed new/modified page alert to a ribbon with tooltip.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 06 Apr 2013 18:07:31 -0700
parents 8250c977bc50
children 827e236aa7c6
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="/#/read/{{url}}">{{title}}</a></h3>
            <div class="highlighted"><pre><code>{{{content_highlights}}}</code></pre></div>
            </li>
            {{/each}}
        </ul>
        {{else}}
        <p>No matches found.</p>
        {{/if}}
    </section>
</article>