Minor changes

This commit is contained in:
Eduard Urbach 2017-10-20 18:46:50 +02:00
parent 4801a254f7
commit 9448bc25d5
2 changed files with 4 additions and 3 deletions

View File

@ -81,8 +81,8 @@ component Anime(anime *arn.Anime, friends []*arn.User, listItems map[*arn.User]*
h3.anime-section-name Relations
.anime-relations
each relation in anime.Relations().Items
a.anime-relation.ajax(href=relation.Anime().Link(), title=relation.Anime().Title.Canonical)
img.anime-relation-image.lazy(data-src=relation.Anime().Image.Tiny, alt=relation.Anime().Title.Canonical)
a.anime-relation.ajax(href=relation.Anime().Link(), title=relation.Anime().Title.ByUser(user))
img.anime-relation-image.lazy(data-src=relation.Anime().Image.Tiny, alt=relation.Anime().Title.ByUser(user))
.anime-relation-type= relation.HumanReadableType()
.anime-relation-year
if relation.Anime().StartDate != ""

View File

@ -1,5 +1,6 @@
component Settings(user *arn.User)
h1.page-title Settings
.widgets
.widget.mountable(data-api="/api/user/" + user.ID)
h3.widget-title
@ -168,8 +169,8 @@ component Settings(user *arn.User)
select.widget-ui-element.action(id="TitleLanguage", data-field="TitleLanguage", value=user.Settings().TitleLanguage, title="Language of anime titles", data-action="save", data-trigger="change")
option(value="canonical") Canonical
option(value="english") English
option(value="japanese") Japanese
option(value="romaji") Romaji
option(value="japanese") 日本語
InputNumber("Format.RatingsPrecision", float64(user.Settings().Format.RatingsPrecision), "Ratings precision", "How many decimals after the comma would you like to display in ratings on anime pages?", "0", "2", "1")