Added osu account info
This commit is contained in:
parent
367d31aadb
commit
464a6ec26b
@ -23,9 +23,9 @@ component ProfileHeader(viewUser *arn.User, user *arn.User)
|
||||
a(href=viewUser.WebsiteURL(), target="_blank", rel="nofollow")= viewUser.Website
|
||||
|
||||
if viewUser.Accounts.Osu.Nick != "" && viewUser.Accounts.Osu.PP >= 1000
|
||||
p.profile-field.osu(title="osu! performance points")
|
||||
p.profile-field.osu(title="osu! Level " + toString(int(viewUser.Accounts.Osu.Level)) + " | Accuracy: " + fmt.Sprintf("%.1f", viewUser.Accounts.Osu.Accuracy) + "%")
|
||||
Icon("trophy")
|
||||
span= toString(int(viewUser.Accounts.Osu.PP)) + " pp"
|
||||
a(href="https://osu.ppy.sh/u/" + viewUser.Accounts.Osu.Nick, target="_blank", rel="noopener")= toString(int(viewUser.Accounts.Osu.PP)) + " pp"
|
||||
|
||||
//- if viewUser.dataEditCount
|
||||
//- p.profile-field.editor-contribution(title="Anime data modifications")
|
||||
|
@ -20,6 +20,9 @@ profile-boot-duration = 2s
|
||||
.profile-field
|
||||
text-align center
|
||||
|
||||
a
|
||||
color white
|
||||
|
||||
< 600px
|
||||
.profile
|
||||
vertical
|
||||
@ -80,10 +83,6 @@ profile-boot-duration = 2s
|
||||
padding-left calc(content-padding * 2)
|
||||
max-width 900px
|
||||
|
||||
.website
|
||||
a
|
||||
color white
|
||||
|
||||
#nick
|
||||
margin-bottom 1rem
|
||||
|
||||
|
@ -19,6 +19,7 @@ component Settings(user *arn.User)
|
||||
InputText("Accounts.MyAnimeList.Nick", user.Accounts.MyAnimeList.Nick, "MyAnimeList", "Your username on myanimelist.net")
|
||||
InputText("Accounts.Kitsu.Nick", user.Accounts.Kitsu.Nick, "Kitsu", "Your username on kitsu.io")
|
||||
InputText("Accounts.AnimePlanet.Nick", user.Accounts.AnimePlanet.Nick, "AnimePlanet", "Your username on anime-planet.com")
|
||||
InputText("Accounts.Osu.Nick", user.Accounts.Osu.Nick, "Osu", "Your username on osu.ppy.sh")
|
||||
|
||||
//- .widget.mountable(data-api="/api/settings/" + user.ID)
|
||||
//- h3.widget-title
|
||||
|
Loading…
Reference in New Issue
Block a user