Be able to list users submisions

- Closes: #45
This commit is contained in:
Las Zenow 2019-03-05 19:54:21 +00:00
parent 4903f722b5
commit 60379ba1ef
10 changed files with 143 additions and 9 deletions

View file

@ -16,10 +16,10 @@
<div class="row">
<div class="span9">
<p><b>{{.Filename}}</b>
{{if .Book.Active}}
<span class="label label-success">
{{else if not .Book.ID}}
{{if not .Book}}
<span class="label label-important">
{{else if .Book.Active}}
<span class="label label-success">
{{else}}
<span class="label label-warning">
{{end}}
@ -28,7 +28,7 @@
</div>
{{with .Book}}
{{if .ID}}
{{if .}}
<div class="span1">
<p class="pull-right"><a href="/book/{{.ID}}">{{if .Cover}}<img class="img-rounded" src="/cover/{{.ID}}/small/{{.Title}}.jpg" alt="{{.Title}}" />{{end}}</a></p>
</div>
@ -68,10 +68,12 @@
{{end}}
</div>
{{if .Book}}
<form class="row form-inline" method="POST" action="/submission/{{$submissionID}}/comment/{{.Book.ID}}">
<textarea class="span11" id="comment" rows="2" name="comment" placeholder="Comments about this book submission. Is it a better version than an existing one in the library?">{{.Comment}}</textarea>
<button type="submit" class="btn btn-primary">Send comment</button>
</form>
{{end}}
{{end}}
{{template "footer.html"}}