Improved extension style
This commit is contained in:
parent
6abe981460
commit
2b1fc3239c
@ -111,7 +111,7 @@ func InstallGoogleAuth(app *aero.Application) {
|
|||||||
user, getErr = arn.GetUserFromTable("GoogleToUser", googleUser.Sub)
|
user, getErr = arn.GetUserFromTable("GoogleToUser", googleUser.Sub)
|
||||||
|
|
||||||
if getErr == nil && user != nil {
|
if getErr == nil && user != nil {
|
||||||
authLog.Info("User logged in via Google ID", user.ID, ctx.RealIP(), user.Email, user.RealName())
|
authLog.Info("User logged in via Google ID", user.ID, user.Nick, ctx.RealIP(), user.Email, user.RealName())
|
||||||
|
|
||||||
user.LastLogin = arn.DateTimeUTC()
|
user.LastLogin = arn.DateTimeUTC()
|
||||||
user.Save()
|
user.Save()
|
||||||
@ -124,7 +124,7 @@ func InstallGoogleAuth(app *aero.Application) {
|
|||||||
user, getErr = arn.GetUserByEmail(googleUser.Email)
|
user, getErr = arn.GetUserByEmail(googleUser.Email)
|
||||||
|
|
||||||
if getErr == nil && user != nil {
|
if getErr == nil && user != nil {
|
||||||
authLog.Info("User logged in via Email", user.ID, ctx.RealIP(), user.Email, user.RealName())
|
authLog.Info("User logged in via Email", user.ID, user.Nick, ctx.RealIP(), user.Email, user.RealName())
|
||||||
|
|
||||||
user.LastLogin = arn.DateTimeUTC()
|
user.LastLogin = arn.DateTimeUTC()
|
||||||
user.Save()
|
user.Save()
|
||||||
|
@ -10,5 +10,8 @@ component AnimeList(animeList *arn.AnimeList)
|
|||||||
tr.anime-list-item.mountable(title=item.Notes)
|
tr.anime-list-item.mountable(title=item.Notes)
|
||||||
td.anime-list-item-name
|
td.anime-list-item-name
|
||||||
a.ajax(href=item.Anime().Link())= item.Anime().Title.Canonical
|
a.ajax(href=item.Anime().Link())= item.Anime().Title.Canonical
|
||||||
td.anime-list-item-episodes= toString(item.Episodes) + " / " + item.Anime().EpisodeCountString()
|
td.anime-list-item-episodes
|
||||||
|
span.anime-list-item-episodes-watched= item.Episodes
|
||||||
|
span.anime-list-item-episodes-separator /
|
||||||
|
span.anime-list-item-episodes-max= item.Anime().EpisodeCountString()
|
||||||
td.anime-list-item-rating= item.FinalRating()
|
td.anime-list-item-rating= item.FinalRating()
|
@ -9,18 +9,28 @@
|
|||||||
display none
|
display none
|
||||||
|
|
||||||
.anime-list-item
|
.anime-list-item
|
||||||
ui-element
|
// ui-element
|
||||||
margin-bottom 0.5rem
|
// margin-bottom 0.5rem
|
||||||
|
|
||||||
.anime-list-item-name
|
|
||||||
flex 0.9
|
|
||||||
|
|
||||||
.anime-list-item-episodes
|
.anime-list-item-episodes
|
||||||
|
horizontal
|
||||||
text-align right
|
text-align right
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
|
flex 0.2
|
||||||
|
|
||||||
|
.anime-list-item-episodes-watched
|
||||||
|
flex 0.4
|
||||||
|
|
||||||
|
.anime-list-item-episodes-max
|
||||||
|
opacity 0.5
|
||||||
|
flex 0.4
|
||||||
|
|
||||||
|
.anime-list-item-episodes-separator
|
||||||
|
opacity 0.5
|
||||||
|
flex 0.2
|
||||||
|
|
||||||
.anime-list-item-rating
|
.anime-list-item-rating
|
||||||
display none
|
display none
|
||||||
|
|
||||||
#navigation
|
#navigation
|
||||||
font-size 0.8rem
|
font-size 0.9rem
|
Loading…
Reference in New Issue
Block a user