36 lines
1.6 KiB
Plaintext
Raw Normal View History

2018-03-10 09:15:05 +00:00
component CompareMAL(comparisons []*utils.MALComparison, year string, status string, typ string, url string, user *arn.User)
2018-03-09 11:38:46 +00:00
EditorTabs(url)
2018-03-09 03:58:36 +00:00
h1.mountable MAL comparison
2018-03-10 09:15:05 +00:00
ExploreFilters(year, status, typ, "malDiffFilterAnime")
2018-03-09 03:03:31 +00:00
2018-03-09 03:27:23 +00:00
.data-comparisons
2018-03-09 03:03:31 +00:00
each comparison in comparisons
2018-03-09 03:27:23 +00:00
.data-comparison.mountable
.data-comparison-header
2018-03-09 04:52:45 +00:00
a.data-comparison-image-container(href=comparison.Anime.Link(), target="_blank")
2018-03-20 21:39:21 +00:00
img.data-comparison-image.lazy(data-src=comparison.Anime.ImageLink("small"), data-webp="true", data-color=comparison.Anime.AverageColor(), alt=comparison.Anime.Title.ByUser(user))
2018-03-09 03:27:23 +00:00
2018-03-09 03:58:36 +00:00
.data-comparison-title
a(href=comparison.Anime.Link(), target="_blank")= comparison.Anime.Title.Canonical
2018-03-09 04:44:49 +00:00
2018-03-09 03:58:36 +00:00
.spacer
2018-03-09 04:44:49 +00:00
a.data-comparison-tool(href=comparison.Anime.Link() + "/edit", target="_blank")
RawIcon("pencil")
a.data-comparison-tool(href=comparison.MALAnime.URL, target="_blank")
2018-03-09 03:58:36 +00:00
RawIcon("external-link")
2018-03-09 03:03:31 +00:00
2018-03-09 03:27:23 +00:00
.data-comparison-differences
each difference in comparison.Differences
.data-comparison-difference
2018-03-09 13:48:00 +00:00
.data-comparison-difference-title
span= difference.Explanation()
2018-03-09 03:03:31 +00:00
2018-03-09 03:27:23 +00:00
.data-comparison-difference-details
.data-comparison-difference-detail= difference.DetailsA()
.data-comparison-difference-detail= difference.DetailsB()
2018-03-09 13:48:00 +00:00
button.data-comparison-difference-ignore.action(data-action="newAnimeDiffIgnore", data-trigger="click", data-id=arn.CreateDifferenceID(comparison.Anime.ID, "mal", comparison.MALAnime.ID, difference.Type()), data-hash=difference.Hash())
RawIcon("trash")