summaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-06-23 10:13:54 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-06-23 10:16:37 -0400
commit5ffbadc163e63fc3a06992813fea6ebcd3c91a80 (patch)
treec57f0adf06c5f484176a2c8e9f930313c1b8a91f /org
parentmakefile add gitZip, git archive (diff)
search form, "next ❯❯" removed for initial state
Diffstat (limited to 'org')
-rw-r--r--org/cgi_spine_search.org24
1 files changed, 16 insertions, 8 deletions
diff --git a/org/cgi_spine_search.org b/org/cgi_spine_search.org
index 6b7d29d..561cba8 100644
--- a/org/cgi_spine_search.org
+++ b/org/cgi_spine_search.org
@@ -703,7 +703,11 @@ if (auto m = _url.matchFirst(rgx.track_offset)) {
_url_previous = _url.replace(rgx.track_offset, _set_offset_previous);
}
} else { // _current_offset_value = 0;
- _url_next = _url ~= "&smo=" ~ cv.sql_match_limit.to!string;
+ if ("query_string" in cgi.post) {
+ _url_next = _url ~= "&smo=" ~ cv.sql_match_limit.to!string;
+ } else {
+ _url_next = "";
+ }
}
if (_url_previous.empty) {
arrow_previous = "";
@@ -716,13 +720,17 @@ if (_url_previous.empty) {
~ "❮❮ prev"
~ "</a> || </font>";
}
-arrow_next =
- "<font-size=\"1.8rem\" color=\"#666666\">"
- ~ "<a href=\""
- ~ _url_next
- ~ "\">"
- ~ "next ❯❯"
- ~ "</a></font>";
+if (_url_next.empty) {
+ arrow_next = "";
+} else {
+ arrow_next =
+ "<font-size=\"1.8rem\" color=\"#666666\">"
+ ~ "<a href=\""
+ ~ _url_next
+ ~ "\">"
+ ~ "next ❯❯"
+ ~ "</a></font>";
+}
_previous_next = "<hr>" ~ arrow_previous ~ arrow_next;
return _previous_next;
#+END_SRC