💄 Hide Edition tab to Logged out users

This commit is contained in:
Scott
2018-03-15 22:44:09 +01:00
parent e0e8ed7996
commit 0ef69ab527
3 changed files with 6 additions and 3 deletions

View File

@ -52,7 +52,8 @@ component QuoteTabs(quote *arn.Quote, user *arn.User)
.tabs
TabLike(strconv.Itoa(len(quote.Likes)), "heart", "quote", quote, user)
Tab("Quote", "quote-left", quote.Link())
Tab("Edit", "pencil", quote.Link() + "/edit")
if user != nil
Tab("Edit", "pencil", quote.Link() + "/edit")
Tab("History", "history", quote.Link() + "/history")
component QuoteAnime(anime *arn.Anime, user *arn.User)