10 items per page on search

This commit is contained in:
Las Zenow 2012-07-30 23:59:55 +02:00
parent c64226ffb9
commit b70ddd81ab
2 changed files with 40 additions and 1 deletions

View file

@ -4,6 +4,8 @@
<input type="submit" value="Search">
</form>
<p>Found {{.Found}} books. Page {{.Page}}</p>
<ul>
{{with .Books}}
{{range .}}
@ -11,3 +13,7 @@
{{end}}
{{end}}
</ul>
<p>
{{if .Prev}}<a href="{{.Prev}}">&lt;Prev</a> {{end}}
{{if .Next}}<a href="{{.Next}}">Next&gt;</a>{{end}}</p>