mirror of https://github.com/kiwix/libkiwix.git
Rename `hasResult` to `hasResults`
This commit is contained in:
parent
78dbd66522
commit
a13244dc0e
|
@ -130,7 +130,7 @@ std::string SearchRenderer::getHtml()
|
||||||
kainjow::mustache::data allData;
|
kainjow::mustache::data allData;
|
||||||
allData.set("results", results);
|
allData.set("results", results);
|
||||||
allData.set("pages", pages);
|
allData.set("pages", pages);
|
||||||
allData.set("hasResult", estimatedResultCount != 0);
|
allData.set("hasResults", estimatedResultCount != 0);
|
||||||
allData.set("hasPages", pageStart != pageEnd);
|
allData.set("hasPages", pageStart != pageEnd);
|
||||||
allData.set("count", kiwix::beautifyInteger(estimatedResultCount));
|
allData.set("count", kiwix::beautifyInteger(estimatedResultCount));
|
||||||
allData.set("searchPattern", kiwix::encodeDiples(this->searchPattern));
|
allData.set("searchPattern", kiwix::encodeDiples(this->searchPattern));
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body bgcolor="white">
|
<body bgcolor="white">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
{{#hasResult}}
|
{{#hasResults}}
|
||||||
Results
|
Results
|
||||||
<b>
|
<b>
|
||||||
{{resultStart}}-{{resultEnd}}
|
{{resultStart}}-{{resultEnd}}
|
||||||
|
@ -104,10 +104,10 @@
|
||||||
</b> for <b>
|
</b> for <b>
|
||||||
{{searchPattern}}
|
{{searchPattern}}
|
||||||
</b>
|
</b>
|
||||||
{{/hasResult}}
|
{{/hasResults}}
|
||||||
{{^hasResult}}
|
{{^hasResults}}
|
||||||
No results were found for <b>{{searchPattern}}</b>
|
No results were found for <b>{{searchPattern}}</b>
|
||||||
{{/hasResult}}
|
{{/hasResults}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="results">
|
<div class="results">
|
||||||
|
|
Loading…
Reference in New Issue