Move templates
This commit is contained in:
parent
48d1997f4d
commit
d924b577d1
9 changed files with 24 additions and 1 deletions
23
templates/search.html
Normal file
23
templates/search.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{{template "header.html"}}
|
||||
|
||||
<h1>Search</h1>
|
||||
<form action="/search/">
|
||||
<input type="search" name="q" value="{{.Search}}"/>
|
||||
<input type="submit" value="Search">
|
||||
</form>
|
||||
|
||||
<p>Found {{.Found}} books. Page {{.Page}}</p>
|
||||
|
||||
<ul>
|
||||
{{with .Books}}
|
||||
{{range .}}
|
||||
<li><img src="{{.CoverSmall}}" alt="{{.Title}}" /><a href="/book/{{.Title}}">{{.Title}}</a> - {{range .Author}}{{.}}, {{end}}</li>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
{{if .Prev}}<a href="{{.Prev}}"><Prev</a> {{end}}
|
||||
{{if .Next}}<a href="{{.Next}}">Next></a>{{end}}</p>
|
||||
|
||||
{{template "footer.html"}}
|
Reference in a new issue