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

72 lines
1.9 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
2012-07-30 23:23:38 +02:00
{{with .Books}}
{{range .}}
2012-08-17 08:25:44 +02:00
<div class="row">
2012-08-18 02:06:43 +02:00
<div class="span1">
2014-08-21 19:24:23 -05:00
<p class="pull-right"><a href="/book/{{.Id}}">{{if .Cover}}<img class="img-rounded" src="/cover/{{.Id}}/small/{{.Title}}.jpg" alt="{{.Title}}" />{{end}}</a></p>
2012-08-17 08:25:44 +02:00
</div>
2012-08-21 21:10:09 +02:00
<div class="span10 well">
<div class="row">
<div class="span7">
<p>
<span class="muted">{{if .Lang}}{{.Lang}}{{end}}</span>
<a href="/book/{{.Id}}"><strong>{{.Title}}</strong></a>
<span class="muted">{{if .Publisher}}{{.Publisher}}{{end}}</span><br />
{{range .Author}}{{.}}, {{end}}
</p>
2012-08-17 08:25:44 +02:00
</div>
2012-08-21 21:10:09 +02:00
<div class="span3">
<div class="btn-group pull-right">
<a href="/download/{{.Id}}/{{.Title}}.epub" class="btn btn-inverse"><i class="icon-download-alt icon-white"></i> download</a>
2012-08-21 21:22:56 +02:00
<a href="/read/{{.Id}}" class="btn btn-warning"><i class="icon-eye-open icon-white"></i> read it!</a>
2012-08-21 21:10:09 +02:00
</div>
</div>
</div>
</div>
2012-08-17 08:25:44 +02:00
</div>
2012-07-30 23:23:38 +02:00
{{end}}
{{end}}
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
{{template "footer.html"}}