2018-03-09 11:38:46 +00:00
|
|
|
component CompareMAL(comparisons []*utils.MALComparison, url string, user *arn.User)
|
|
|
|
EditorTabs(url)
|
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
|
2018-03-09 04:52:45 +00:00
|
|
|
a.data-comparison-image-container(href=comparison.Anime.Link(), target="_blank")
|
2018-03-09 03:27:23 +00:00
|
|
|
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
|
2018-03-09 12:42:45 +00:00
|
|
|
.data-comparison-difference-title= 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()
|