38 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-23 00:43:45 +00:00
EditorTabs(url, user)
2018-03-09 03:58:36 +00:00
h1.mountable MAL comparison
2018-03-09 03:03:31 +00:00
2018-03-09 03:27:23 +00:00
.data-comparisons
2018-03-23 00:43:45 +00:00
if len(comparisons) == 0
p.no-data.mountable No differences found.
else
each comparison in comparisons
.data-comparison.mountable
.data-comparison-header
a.data-comparison-image-container(href=comparison.Anime.Link(), target="_blank")
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 04:44:49 +00:00
2018-03-23 00:43:45 +00:00
.data-comparison-title
a(href=comparison.Anime.Link(), target="_blank")= comparison.Anime.Title.Canonical
2018-03-09 03:03:31 +00:00
2018-03-23 00:43:45 +00:00
.spacer
2018-03-09 03:03:31 +00:00
2018-03-23 00:43:45 +00:00
a.data-comparison-tool(href=comparison.Anime.Link() + "/edit", target="_blank")
RawIcon("pencil")
2018-03-09 13:48:00 +00:00
2018-03-23 00:43:45 +00:00
a.data-comparison-tool(href=comparison.MALAnime.URL, target="_blank")
RawIcon("external-link")
.data-comparison-differences
each difference in comparison.Differences
.data-comparison-difference
.data-comparison-difference-title
span= difference.Explanation()
.data-comparison-difference-details
.data-comparison-difference-detail= difference.DetailsA()
.data-comparison-difference-detail= difference.DetailsB()
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")