Added basic quote display

This commit is contained in:
Scott
2017-12-03 22:33:24 +01:00
parent d4d7294f4e
commit f9c6711e8e
5 changed files with 93 additions and 0 deletions

17
pages/quotes/quotes.pixy Normal file
View File

@ -0,0 +1,17 @@
component Quotes(quotes []*arn.Quote, user *arn.User)
h1.page-title Quotes
.corner-buttons
if user != nil
if user.DraftIndex().QuoteID == ""
button.action(data-action="newObject", data-trigger="click", data-type="quote")
Icon("plus")
span Add quote
else
a.button.ajax(href="/quote/" + user.DraftIndex().QuoteID + "/edit")
Icon("pencil")
span Edit draft
ul
each quote in quotes
li= quote.Description