2018-03-09 03:03:31 +00:00
|
|
|
component CompareMAL(comparisons []*utils.MALComparison, user *arn.User)
|
|
|
|
EditorTabs
|
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-09 03:03:31 +00:00
|
|
|
each comparison in comparisons
|
2018-03-09 03:27:23 +00:00
|
|
|
.data-comparison.mountable
|
|
|
|
.data-comparison-header
|
|
|
|
.data-comparison-image-container
|
|
|
|
img.data-comparison-image.lazy(data-src=comparison.Anime.Image("small"), data-webp="true", alt=comparison.Anime.Title.ByUser(user))
|
|
|
|
|
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
|
|
|
|
.data-comparison-difference-title= difference.String()
|
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()
|