101 lines
2.5 KiB
Plaintext
Raw Normal View History

component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, soundTracks []*arn.SoundTrack, following []*arn.User, user *arn.User)
2017-07-06 20:23:32 +00:00
h1.page-title Dashboard
2017-11-03 11:02:13 +00:00
.dashboard
2017-06-20 18:13:04 +00:00
.widget.mountable
2017-07-19 05:40:31 +00:00
h3.widget-title Schedule
2016-12-06 03:36:31 +00:00
2017-06-28 19:17:49 +00:00
for i := 0; i <= 4; i++
if i < len(schedule)
2017-10-09 13:47:40 +00:00
.widget-ui-element
.widget-ui-element-text
2017-06-29 19:13:49 +00:00
a.schedule-item-link.ajax(href=schedule[i].Anime.Link())
Icon("calendar-o")
.schedule-item-title= schedule[i].Anime.Title.ByUser(user)
2017-06-29 19:13:49 +00:00
.spacer
2017-07-07 15:16:40 +00:00
.schedule-item-date.utc-airing-date(data-start-date=schedule[i].Episode.AiringDate.Start, data-end-date=schedule[i].Episode.AiringDate.End, data-episode-number=schedule[i].Episode.Number)
2017-06-28 19:17:49 +00:00
else
2017-10-09 13:47:40 +00:00
.widget-ui-element
.widget-ui-element-text
2017-06-28 19:17:49 +00:00
Icon("calendar-o")
span ...
2017-06-20 18:13:04 +00:00
.widget.mountable
2017-06-18 18:22:43 +00:00
h3.widget-title Forums
2016-12-06 03:36:31 +00:00
each post in posts
2017-10-09 13:47:40 +00:00
a.widget-ui-element.ajax(href=post.Thread().Link())
.widget-ui-element-text
2016-12-06 10:43:43 +00:00
Icon(arn.GetForumIcon(post.Thread().Tags[0]))
span= post.Thread().Title
2017-07-09 02:22:14 +00:00
2017-06-20 18:13:04 +00:00
.widget.mountable
2017-07-09 02:22:14 +00:00
h3.widget-title Artworks
2016-12-06 10:43:43 +00:00
for i := 1; i <= 5; i++
2017-10-09 13:47:40 +00:00
.widget-ui-element
.widget-ui-element-text
2017-07-09 02:22:14 +00:00
Icon("paint-brush")
2016-12-06 10:43:43 +00:00
span ...
2017-06-20 18:13:04 +00:00
.widget.mountable
2017-06-27 14:51:27 +00:00
h3.widget-title Soundtracks
2016-12-06 10:43:43 +00:00
2017-06-27 14:51:27 +00:00
for i := 0; i <= 4; i++
if i < len(soundTracks)
2017-10-09 13:47:40 +00:00
a.widget-ui-element.ajax(href=soundTracks[i].Link())
.widget-ui-element-text
2017-06-27 14:51:27 +00:00
Icon("music")
2017-10-15 18:26:50 +00:00
if soundTracks[i].Title == ""
span untitled
else
span= soundTracks[i].Title
2017-06-27 14:51:27 +00:00
else
2017-10-09 13:47:40 +00:00
.widget-ui-element
.widget-ui-element-text
2017-06-27 14:51:27 +00:00
Icon("music")
span ...
2017-07-09 02:22:14 +00:00
.widget.mountable
h3.widget-title AMVs
for i := 1; i <= 5; i++
2017-10-09 13:47:40 +00:00
.widget-ui-element
.widget-ui-element-text
2017-07-09 02:22:14 +00:00
Icon("video-camera")
span ...
2017-07-15 23:59:05 +00:00
.widget.mountable
h3.widget-title Reviews
for i := 1; i <= 5; i++
2017-10-09 13:47:40 +00:00
.widget-ui-element
.widget-ui-element-text
2017-07-15 23:59:05 +00:00
Icon("book")
span ...
2017-07-09 02:22:14 +00:00
.widget.mountable
h3.widget-title Groups
2017-07-09 02:22:14 +00:00
for i := 1; i <= 5; i++
2017-10-09 13:47:40 +00:00
.widget-ui-element
.widget-ui-element-text
2017-07-09 02:22:14 +00:00
Icon("group")
span ...
2017-06-26 22:14:47 +00:00
.widget.mountable
h3.widget-title Contacts
2017-06-24 21:57:36 +00:00
2017-06-26 22:14:47 +00:00
for i := 0; i <= 4; i++
if i < len(following)
2017-10-09 13:47:40 +00:00
a.widget-ui-element.ajax(href="/+" + following[i].Nick)
.widget-ui-element-text
2017-06-26 22:14:47 +00:00
Icon("address-card")
span= following[i].Nick
else
2017-10-09 13:47:40 +00:00
.widget-ui-element
.widget-ui-element-text
2017-06-24 21:57:36 +00:00
Icon("address-card")
2017-06-26 22:14:47 +00:00
span ...
2017-10-06 11:27:07 +00:00
Footer