Improved extension style

This commit is contained in:
Eduard Urbach 2017-06-24 23:24:15 +02:00
parent 6abe981460
commit 2b1fc3239c
3 changed files with 22 additions and 9 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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