summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-01-18 19:36:38 -0700
committernavanchauhan <navanchauhan@gmail.com>2023-01-18 19:36:38 -0700
commit708066b7998a43ca47f6537a1208492efed4e99c (patch)
tree6897f9fd68032e5798c5f906ce28eb678796e4dc /templates
parent2d88576b4085b8226be11b412c979a6ccdd5cdb3 (diff)
added support for sorting
Diffstat (limited to 'templates')
-rw-r--r--templates/search_results.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/search_results.html b/templates/search_results.html
index 4e9b9a4..9060025 100644
--- a/templates/search_results.html
+++ b/templates/search_results.html
@@ -37,11 +37,11 @@
</section>
<div class="container is-fluid">
<a href="#" class="button is-link" disabled>Export Results</a>
- <a href="#" class="button is-link" disabled>Sort by Decision Date (ASC) </a>
- <a href="#" class="button is-link" disabled>Sort by Decision Date (DESC) </a>
- <a href="#" class="button is-link" disabled>Sort by Submission Date (ASC) </a>
- <a href="#" class="button is-link" disabled>Sort by Submission Date (DESC) </a>
- <a href="#" class="button is-link" disabled>Sort by Relevancy (Default) </a>
+ <a href="/search?query={{.OriginalQuery.Query}}&maxHits={{.MaxResults}}&sort=subasc" class="button is-link">Sort by Submission Date (ASC) </a>
+ <a href="/search?query={{.OriginalQuery.Query}}&maxHits={{.MaxResults}}&sort=subdesc" class="button is-link">Sort by Submission Date (DESC) </a>
+ <a href="/search?query={{.OriginalQuery.Query}}&maxHits={{.MaxResults}}&sort=decasc" class="button is-link">Sort by Decision Date (ASC) </a>
+ <a href="/search?query={{.OriginalQuery.Query}}&maxHits={{.MaxResults}}&sort=decdesc" class="button is-link">Sort by Decision Date (DESC) </a>
+ <a href="/search?query={{.OriginalQuery.Query}}&maxHits={{.MaxResults}}" class="button is-link">Sort by Relevancy (Default) </a>
</div>
<section class="section">
@@ -81,7 +81,7 @@
<div class="column">
<div class="field has-addons">
- <a class="button is-primary is-light is-medium is-fullwidth" href="/search?query={{.OriginalQuery.Query}}&page={{.PrevPage}}&maxHits={{.MaxResults}}" title="Previous Page">
+ <a class="button is-primary is-light is-medium is-fullwidth" href="/search?query={{.OriginalQuery.Query}}&page={{.PrevPage}}&maxHits={{.MaxResults}}&sort={{.Sort}}" title="Previous Page">
<span class="icon is-small">
<i class="fa-solid fa-left-long"></i>
@@ -94,7 +94,7 @@
{{ if .MoreResults }}
<div class="column">
<div class="field has-addons">
- <a class="button is-primary is-medium is-fullwidth" href="/search?query={{.OriginalQuery.Query}}&page={{.NextPage}}&maxHits={{.MaxResults}}" title="Next Page">
+ <a class="button is-primary is-medium is-fullwidth" href="/search?query={{.OriginalQuery.Query}}&page={{.NextPage}}&maxHits={{.MaxResults}}&sort={{.Sort}}" title="Next Page">
<span>
Next Page
</span>