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)
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.Save()
@ -124,7 +124,7 @@ func InstallGoogleAuth(app *aero.Application) {
user, getErr = arn.GetUserByEmail(googleUser.Email)
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.Save()

View File

@ -10,5 +10,8 @@ component AnimeList(animeList *arn.AnimeList)
tr.anime-list-item.mountable(title=item.Notes)
td.anime-list-item-name
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()

View File

@ -9,18 +9,28 @@
display none
.anime-list-item
ui-element
margin-bottom 0.5rem
.anime-list-item-name
flex 0.9
// ui-element
// margin-bottom 0.5rem
.anime-list-item-episodes
horizontal
text-align right
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
display none
#navigation
font-size 0.8rem
font-size 0.9rem