Some fixes
This commit is contained in:
@ -55,11 +55,6 @@ component ProfileHeader(viewUser *arn.User, user *arn.User, uri string)
|
||||
button.profile-action.action(data-action="unfollowUser", data-trigger="click", data-api="/api/userfollows/" + user.ID + "/remove", data-view-user-id=viewUser.ID)
|
||||
Icon("user-times")
|
||||
span Unfollow
|
||||
|
||||
if user.Role == "admin" || user.Role == "editor"
|
||||
a.button.profile-action(href="/api/user/" + viewUser.ID)
|
||||
Icon("search-plus")
|
||||
span JSON
|
||||
|
||||
ProfileNavigation(viewUser, uri)
|
||||
|
||||
@ -131,6 +126,13 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
|
||||
a.profile-watching-list-item.ajax(href=item.Anime().Link(), title=item.Anime().Title.Canonical + " (" + toString(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")")
|
||||
img.profile-watching-list-item-image.lazy(data-src=item.Anime().Image.Tiny, alt=item.Anime().Title.Canonical)
|
||||
|
||||
if user != nil && (user.Role == "admin" || user.Role == "editor")
|
||||
.footer
|
||||
.buttons
|
||||
a.button.profile-action(href="/api/user/" + viewUser.ID, target="_blank", rel="noopener")
|
||||
Icon("search-plus")
|
||||
span JSON
|
||||
|
||||
//- .profile-category.mountable
|
||||
//- h3
|
||||
//- a.ajax(href="/+" + viewUser.Nick + "/threads", title="View all threads") Threads
|
||||
|
Reference in New Issue
Block a user