Improved schedule
This commit is contained in:
parent
a05b76a222
commit
72087df11c
@ -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
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user