Improved quote editing

This commit is contained in:
2018-02-25 12:19:27 +01:00
parent c9af3561b8
commit c0f490a959
4 changed files with 13 additions and 11 deletions

View File

@ -9,7 +9,8 @@ component QuoteContent(quote *arn.Quote)
blockquote
p
q= quote.Description
if quote.Character() != nil
if quote.CharacterID != "" && quote.Character() != nil
footer.quote-character
span= "by"
a.ajax(href=quote.Character().Link())= quote.Character().Name

View File

@ -1,5 +1,3 @@
// This should be made abstract for every Likeable so we avoid repeating ourselves but I'm unsure on
// how to do it
component TabLikeQuote(label string, icon string, quote *arn.Quote, user *arn.User)
if user == nil
.tab.action(aria-label=label, title="Login to like this quote")