Refactor
This commit is contained in:
parent
b7f2ee786f
commit
77d458eb13
@ -42,7 +42,7 @@ component AnimeList(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User
|
|||||||
table.anime-list
|
table.anime-list
|
||||||
tbody
|
tbody
|
||||||
each item in animeList.Items
|
each item in animeList.Items
|
||||||
tr.anime-list-item.mountable(title=item.Notes, data-api="/api/animelist/" + animeList.UserID + "/update/" + item.AnimeID)
|
tr.anime-list-item.mountable(title=item.Notes, data-api="/api/animelist/" + animeList.UserID + "/field/Items[AnimeID=\"" + item.AnimeID + "\"]")
|
||||||
td.anime-list-item-image-container
|
td.anime-list-item-image-container
|
||||||
a.ajax(href=item.Anime().Link())
|
a.ajax(href=item.Anime().Link())
|
||||||
img.anime-list-item-image.lazy(data-src=item.Anime().Image.Tiny, alt=item.Anime().Title.Canonical)
|
img.anime-list-item-image.lazy(data-src=item.Anime().Image.Tiny, alt=item.Anime().Title.Canonical)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.Anime)
|
component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.Anime)
|
||||||
.widget-form.mountable
|
.widget-form.mountable
|
||||||
.widget.anime-list-item-view(data-api="/api/animelist/" + viewUser.ID + "/update/" + anime.ID)
|
.widget.anime-list-item-view(data-api="/api/animelist/" + viewUser.ID + "/field/Items[AnimeID=\"" + anime.ID + "\"]")
|
||||||
h1= anime.Title.Canonical
|
h1= anime.Title.Canonical
|
||||||
|
|
||||||
.anime-list-item-progress-edit
|
.anime-list-item-progress-edit
|
||||||
|
Loading…
Reference in New Issue
Block a user