Added end date

This commit is contained in:
Eduard Urbach 2017-10-17 17:18:06 +02:00
parent 07cb7dd64e
commit c24d954f9e

View File

@ -5,7 +5,11 @@ component Anime(anime *arn.Anime, friends []*arn.User, listItems map[*arn.User]*
img.anime-cover-image(src=anime.Image.Small, alt=anime.Title.Canonical)
if anime.StartDate != ""
.anime-start-date(title="Start date: " + anime.StartDate)= anime.StartDate[:4]
.anime-start-date
span(title="Start date: " + anime.StartDate)= anime.StartDate[:4]
if anime.EndDate != "" && anime.StartDate[:4] != anime.EndDate[:4]
span -
span(title="End date: " + anime.EndDate)= anime.EndDate[:4]
.space