mirror of https://github.com/kiwix/libkiwix.git
[HTML Rendering] Do not render page navigation buttons if only one page.
This commit is contained in:
parent
fdc291b7c2
commit
78dbd66522
|
@ -131,6 +131,7 @@ std::string SearchRenderer::getHtml()
|
|||
allData.set("results", results);
|
||||
allData.set("pages", pages);
|
||||
allData.set("hasResult", estimatedResultCount != 0);
|
||||
allData.set("hasPages", pageStart != pageEnd);
|
||||
allData.set("count", kiwix::beautifyInteger(estimatedResultCount));
|
||||
allData.set("searchPattern", kiwix::encodeDiples(this->searchPattern));
|
||||
allData.set("searchPatternEncoded", urlEncode(this->searchPattern));
|
||||
|
|
|
@ -129,6 +129,7 @@
|
|||
</div>
|
||||
|
||||
<div class="footer">
|
||||
{{#hasPages}}
|
||||
<ul>
|
||||
{{#resultLastPageStart}}
|
||||
<li>
|
||||
|
@ -153,6 +154,7 @@
|
|||
</li>
|
||||
{{/resultLastPageStart}}
|
||||
</ul>
|
||||
{{/hasPages}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue