Sessions with gorilla

This commit is contained in:
Las Zenow 2012-08-18 02:06:43 +02:00
parent 44114bd91d
commit c513344169
15 changed files with 251 additions and 47 deletions

View file

@ -1,4 +1,4 @@
{{template "header.html" .Search}}
{{template "header.html" .S}}
<p class="centered">Found {{.Found}} books. Page {{.Page}}</p>
@ -18,10 +18,10 @@
{{with .Books}}
{{range .}}
<div class="row">
<div class="span2">
<div class="span1">
<p class="pull-right"><a href="/book/{{.Title}}">{{if .CoverSmall}}<img src="{{.CoverSmall}}" alt="{{.Title}}" />{{end}}</a></p>
</div>
<div class="span10">
<div class="span11">
<p class="well"><a href="/book/{{.Title}}"><strong>{{.Title}}</strong></a><br />
{{range .Author}}{{.}}, {{end}}</p>
</div>