Improved schedule

This commit is contained in:
Eduard Urbach 2017-06-29 21:13:49 +02:00
parent a05b76a222
commit 72087df11c
2 changed files with 13 additions and 8 deletions

View File

@ -7,11 +7,13 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound
for i := 0; i <= 4; i++ for i := 0; i <= 4; i++
if i < len(schedule) if i < len(schedule)
a.widget-element.ajax(href=schedule[i].Anime.Link()) .widget-element
.widget-element-text .widget-element-text
a.schedule-item-link.ajax(href=schedule[i].Anime.Link())
Icon("calendar-o") Icon("calendar-o")
.schedule-item-title= schedule[i].Anime.Title.Canonical .schedule-item-title= schedule[i].Anime.Title.Canonical
.schedule-item-episode= "# " + toString(schedule[i].Episode.Number) .spacer
.schedule-item-date.utc-date(data-start-date=schedule[i].Episode.AiringDate.Start, data-end-date=schedule[i].Episode.AiringDate.End, data-episode-number=schedule[i].Episode.Number)
else else
.widget-element .widget-element
.widget-element-text .widget-element-text

View File

@ -1,9 +1,12 @@
.schedule-item-link,
.schedule-item-title .schedule-item-title
flex 1
white-space nowrap white-space nowrap
text-overflow ellipsis text-overflow ellipsis
overflow hidden overflow hidden
.schedule-item-episode .schedule-item-link
horizontal
align-items center
.schedule-item-date
text-align right text-align right
flex-basis 50px