Add basic html/rss support for book lists
This commit is contained in:
parent
c0a70a18e1
commit
46762ea17b
11 changed files with 254 additions and 78 deletions
16
templates/list.html
Normal file
16
templates/list.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{template "header.html" .S}}
|
||||
|
||||
<div class="row">
|
||||
<h4 class="span10">{{.List.Title}} <a href="/list/{{.List.ListID}}?fmt=rss"><img src="/img/feed.png"/></a></h4>
|
||||
<p class="span2 pull-right">By {{.List.User.Username}}</p>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
{{range .List.Description}}
|
||||
<p>{{.}}</p>
|
||||
{{end}}
|
||||
|
||||
|
||||
{{template "book_list.html" .List.Books}}
|
||||
|
||||
{{template "footer.html"}}
|
Reference in a new issue