Minor changes

This commit is contained in:
Eduard Urbach 2018-11-15 16:23:09 +09:00
parent ac960e71ef
commit a1c11a2eae
3 changed files with 17 additions and 17 deletions

View File

@ -1,21 +1,21 @@
component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, uri string) component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, uri string)
ProfileHeader(viewUser, user, uri) ProfileHeader(viewUser, user, uri)
if len(animeList.Items) == 0 //- if len(animeList.Items) == 0
p.no-data.mountable= viewUser.Nick + " hasn't added any anime yet." //- p.no-data.mountable= viewUser.Nick + " hasn't added any anime yet."
else //- else
.profile-watching-list.mountable //- .profile-watching-list.mountable
each item in animeList.Items //- each item in animeList.Items
if item.Status == arn.AnimeListStatusWatching || item.Status == arn.AnimeListStatusCompleted //- 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) + ")") //- 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") //- 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 //- .footer
.buttons //- .buttons
if user != nil && (user.Role == "admin" || user.Role == "editor") //- if user != nil && (user.Role == "admin" || user.Role == "editor")
a.button.profile-action(href="/api/user/" + viewUser.ID, target="_blank", rel="noopener") //- a.button.profile-action(href="/api/user/" + viewUser.ID, target="_blank", rel="noopener")
Icon("search-plus") //- Icon("search-plus")
span JSON //- span JSON
component ProfileTabs(viewUser *arn.User, uri string) component ProfileTabs(viewUser *arn.User, uri string)
.tabs.mountable.never-unmount .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) component ProfileHeader(viewUser *arn.User, user *arn.User, uri string)
ProfileHead(viewUser, user, uri) ProfileHead(viewUser, user, uri)
ProfileTabs(viewUser, uri) //- ProfileTabs(viewUser, uri)
component ProfileHead(viewUser *arn.User, user *arn.User, uri string) component ProfileHead(viewUser *arn.User, user *arn.User, uri string)
.profile .profile

View File

@ -10,7 +10,7 @@ component SettingsPersonal(user *arn.User)
span Personal span Personal
InputText("Nick", user.Nick, "Username", "Your username on notify.moe") 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) .widget.mountable(data-api="/api/settings/" + user.ID)
h3.widget-title h3.widget-title

View File

@ -26,7 +26,7 @@ component Welcome(user *arn.User)
p.welcome-text.mountable Write a little introduction so people know who you are! p.welcome-text.mountable Write a little introduction so people know who you are!
.mountable(data-api="/api/user/" + user.ID) .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 .footer.mountable
p Markdown allowed. p Markdown allowed.