Skip to content

Commit

Permalink
refactor(search): Reformat code #284
Browse files Browse the repository at this point in the history
  • Loading branch information
plutonik-a committed Nov 13, 2017
1 parent 289ebf5 commit 174c2c4
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions pages/search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ <h1>Search</h1>
<section class="hsg-search-section">
<p>Read these <a href="$app/search/tips">tips and caveats</a> to understand the
limitations of this search engine and how to make the most of its scope,
phrase, boolean, wildcard, and proximity options.</p>
phrase, boolean, wildcard, and proximity options.
</p>
<form method="get" action="$app/search">
<p class="form-group">
<input type="text" name="q" placeholder="Search..." class="form-control"
Expand Down Expand Up @@ -55,7 +56,8 @@ <h1>Search</h1>
<a href="$app/search">Clear this search</a>, or <a
href="$app/search/select-volumes"
data-template="search:select-volumes-link"> change selection</a>
of <em>Foreign Relations</em> volumes within which to search</p>
of <em>Foreign Relations</em> volumes within which to search
</p>
</div>
<div data-template="app:if-parameter-unset" data-template-param="volume-id">
<div data-template="app:if-parameter-set" data-template-param="q">
Expand Down Expand Up @@ -90,13 +92,15 @@ <h1>Search</h1>
</button>
</form>
</section>

<section class="hsg-search-section">
<div data-template="app:if-parameter-set" data-template-param="q">
<div data-template="search:load-results">
<h1 class="hsg-search-result-message">Results for keyword search <span
class="hsg-search-query"><span data-template="search:q"
/></span>, sorted by relevance.</h1>
<h1 class="hsg-search-result-message">Results for keyword search
<span class="hsg-search-query">
<span data-template="search:q"/>
</span>, sorted by relevance.
</h1>
<p data-template="search:result-count-summary"/>
<nav>
<ul class="pagination" data-template="search:paginate"
Expand Down Expand Up @@ -126,4 +130,4 @@ <h3 class="hsg-search-result-heading">
</div>
</div>
</div>
</div>
</div>

0 comments on commit 174c2c4

Please sign in to comment.