Minor changes
This commit is contained in:
parent
ac960e71ef
commit
a1c11a2eae
@ -1,21 +1,21 @@
|
||||
component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, uri string)
|
||||
ProfileHeader(viewUser, user, uri)
|
||||
|
||||
if len(animeList.Items) == 0
|
||||
p.no-data.mountable= viewUser.Nick + " hasn't added any anime yet."
|
||||
else
|
||||
.profile-watching-list.mountable
|
||||
each item in animeList.Items
|
||||
if item.Status == arn.AnimeListStatusWatching || item.Status == arn.AnimeListStatusCompleted
|
||||
a.profile-watching-list-item.tip(href=item.Anime().Link(), aria-label=item.Anime().Title.ByUser(user) + " (" + fmt.Sprint(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")")
|
||||
img.profile-watching-list-item-image.lazy(data-src=item.Anime().ImageLink("small"), data-webp="true", data-color=item.Anime().AverageColor(), alt=item.Anime().Title.ByUser(user), importance="high")
|
||||
//- if len(animeList.Items) == 0
|
||||
//- p.no-data.mountable= viewUser.Nick + " hasn't added any anime yet."
|
||||
//- else
|
||||
//- .profile-watching-list.mountable
|
||||
//- each item in animeList.Items
|
||||
//- if item.Status == arn.AnimeListStatusWatching || item.Status == arn.AnimeListStatusCompleted
|
||||
//- a.profile-watching-list-item.tip(href=item.Anime().Link(), aria-label=item.Anime().Title.ByUser(user) + " (" + fmt.Sprint(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")")
|
||||
//- img.profile-watching-list-item-image.lazy(data-src=item.Anime().ImageLink("small"), data-webp="true", data-color=item.Anime().AverageColor(), alt=item.Anime().Title.ByUser(user), importance="high")
|
||||
|
||||
.footer
|
||||
.buttons
|
||||
if user != nil && (user.Role == "admin" || user.Role == "editor")
|
||||
a.button.profile-action(href="/api/user/" + viewUser.ID, target="_blank", rel="noopener")
|
||||
Icon("search-plus")
|
||||
span JSON
|
||||
//- .footer
|
||||
//- .buttons
|
||||
//- if user != nil && (user.Role == "admin" || user.Role == "editor")
|
||||
//- a.button.profile-action(href="/api/user/" + viewUser.ID, target="_blank", rel="noopener")
|
||||
//- Icon("search-plus")
|
||||
//- span JSON
|
||||
|
||||
component ProfileTabs(viewUser *arn.User, uri string)
|
||||
.tabs.mountable.never-unmount
|
||||
@ -39,7 +39,7 @@ component ProfileTabs(viewUser *arn.User, uri string)
|
||||
|
||||
component ProfileHeader(viewUser *arn.User, user *arn.User, uri string)
|
||||
ProfileHead(viewUser, user, uri)
|
||||
ProfileTabs(viewUser, uri)
|
||||
//- ProfileTabs(viewUser, uri)
|
||||
|
||||
component ProfileHead(viewUser *arn.User, user *arn.User, uri string)
|
||||
.profile
|
||||
|
@ -10,7 +10,7 @@ component SettingsPersonal(user *arn.User)
|
||||
span Personal
|
||||
|
||||
InputText("Nick", user.Nick, "Username", "Your username on notify.moe")
|
||||
InputTextArea("Introduction", user.Introduction, "Introduction", "Tell us about yourself")
|
||||
InputTextArea("Introduction", user.Introduction, "Introduction", "Tell us a little bit about yourself")
|
||||
|
||||
.widget.mountable(data-api="/api/settings/" + user.ID)
|
||||
h3.widget-title
|
||||
|
@ -26,7 +26,7 @@ component Welcome(user *arn.User)
|
||||
p.welcome-text.mountable Write a little introduction so people know who you are!
|
||||
|
||||
.mountable(data-api="/api/user/" + user.ID)
|
||||
InputTextArea("Introduction", user.Introduction, "Introduction", "Tell us about yourself")
|
||||
InputTextArea("Introduction", user.Introduction, "Introduction", "Tell us a little bit about yourself")
|
||||
|
||||
.footer.mountable
|
||||
p Markdown allowed.
|
||||
|
Loading…
Reference in New Issue
Block a user