💄 Hide Edition tab to Logged out users
This commit is contained in:
parent
e0e8ed7996
commit
0ef69ab527
@ -48,5 +48,6 @@ component CompanyAnime(label string, animes []*arn.Anime, user *arn.User)
|
||||
component CompanyTabs(company *arn.Company, user *arn.User)
|
||||
.tabs
|
||||
Tab("Company", "building", company.Link())
|
||||
Tab("Edit", "pencil", company.Link() + "/edit")
|
||||
if user != nil
|
||||
Tab("Edit", "pencil", company.Link() + "/edit")
|
||||
Tab("History", "history", company.Link() + "/history")
|
@ -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)
|
||||
|
@ -66,5 +66,6 @@ component SoundTrackTabs(track *arn.SoundTrack, user *arn.User)
|
||||
.tabs
|
||||
TabLike(strconv.Itoa(len(track.Likes)), "heart", "track", track, user)
|
||||
Tab("Soundtrack", "music", track.Link())
|
||||
Tab("Edit", "pencil", track.Link() + "/edit")
|
||||
if user != nil
|
||||
Tab("Edit", "pencil", track.Link() + "/edit")
|
||||
Tab("History", "history", track.Link() + "/history")
|
||||
|
Loading…
Reference in New Issue
Block a user