This repository has been archived on 2025-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
trantor/templates/search.html

46 lines
1 KiB
HTML
Raw Normal View History

2012-08-18 02:06:43 +02:00
{{template "header.html" .S}}
2012-08-15 12:00:44 +02:00
2012-07-30 23:23:38 +02:00
2012-08-17 08:25:44 +02:00
<ul class="pager">
{{if .Prev}}
<li class="previous">
<a href="{{.Prev}}">&larr; Prev</a>
</li>
2013-08-31 01:33:28 +02:00
{{else}}
<div class="span1"></div>
2012-08-17 08:25:44 +02:00
{{end}}
2013-08-31 01:33:28 +02:00
<p class="centered span9">Found {{.Found}} books. Page {{.Page}} <a href="{{.S.FullURL}}&fmt=rss"><img src="/img/feed.png"/></a> <br />
2012-08-17 08:25:44 +02:00
{{if .Next}}
<li class="next">
<a href="{{.Next}}">Next &rarr;</a>
</li>
{{end}}
</ul>
2012-07-30 23:59:55 +02:00
{{template "book_list.html" .Books}}
2012-07-30 23:59:55 +02:00
2012-08-17 08:25:44 +02:00
<ul class="pager">
{{if .Prev}}
<li class="previous">
<a href="{{.Prev}}">&larr; Prev</a>
</li>
{{else}}
<div class="span1"></div>
2012-08-17 08:25:44 +02:00
{{end}}
<form class="form-inline span9 centered">
<label>Books per page: </label>
<div class="input-append" action="/search/">
<input class="span1" name="num" type="text" value="{{.ItemsPage}}" />
<button type="submit" class="btn">Ok</button>
</div>
<input class="hidden span1" name="q" type="text" value="{{.S.Search}}" />
</form>
2012-08-17 08:25:44 +02:00
{{if .Next}}
<li class="next">
<a href="{{.Next}}">Next &rarr;</a>
</li>
{{end}}
</ul>
2012-08-15 12:00:44 +02:00
2020-03-23 19:13:58 +00:00
{{template "footer.html" .S}}