Edit lists
This commit is contained in:
parent
46762ea17b
commit
3797df8783
4 changed files with 132 additions and 6 deletions
|
@ -2,14 +2,20 @@
|
|||
|
||||
<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>
|
||||
|
||||
<p class="span2 pull-right">
|
||||
{{if eq .S.User .List.User.Username}}
|
||||
<a href="/list/{{.List.ListID}}/edit" class="btn btn-primary"><i class="icon-pencil"></i> Edit</a>
|
||||
{{else}}
|
||||
By {{.List.User.Username}}
|
||||
{{end}}
|
||||
</p>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
{{range .List.Description}}
|
||||
<p>{{.}}</p>
|
||||
{{end}}
|
||||
|
||||
<br />
|
||||
|
||||
{{template "book_list.html" .List.Books}}
|
||||
|
||||
|
|
Reference in a new issue