Move templates

This commit is contained in:
Las Zenow 2012-08-15 15:11:52 +02:00
parent 48d1997f4d
commit d924b577d1
9 changed files with 24 additions and 1 deletions

23
templates/search.html Normal file
View 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}}">&lt;Prev</a> {{end}}
{{if .Next}}<a href="{{.Next}}">Next&gt;</a>{{end}}</p>
{{template "footer.html"}}