101 lines
2.8 KiB
Plaintext
Raw Normal View History

component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, soundTracks []*arn.SoundTrack, following []*arn.User, user *arn.User)
2018-04-08 20:44:21 +00:00
//- h1.page-title Dashboard
2018-04-08 20:44:21 +00:00
//- .dashboard
//- .widget.mountable
//- h3.widget-title Schedule
2016-12-06 03:36:31 +00:00
2018-04-08 20:44:21 +00:00
//- for i := 0; i <= 4; i++
//- if i < len(schedule)
//- .widget-ui-element
//- .widget-ui-element-text
//- a.schedule-item-link(href=schedule[i].Anime.Link())
//- Icon("calendar-o")
//- .schedule-item-title= schedule[i].Anime.Title.ByUser(user)
//- .spacer
//- .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)
//- else
//- .widget-ui-element
//- .widget-ui-element-text
//- Icon("calendar-o")
//- span ...
2018-04-08 20:44:21 +00:00
//- .widget.mountable
//- h3.widget-title Forums
2016-12-06 03:36:31 +00:00
2018-04-08 20:44:21 +00:00
//- each post in posts
//- a.widget-ui-element(href=post.Thread().Link())
//- .widget-ui-element-text
//- Icon(arn.GetForumIcon(post.Thread().Tags[0]))
//- span= post.Thread().Title
2017-07-09 02:22:14 +00:00
2018-04-08 20:44:21 +00:00
//- .widget.mountable
//- h3.widget-title Artworks
2016-12-06 10:43:43 +00:00
2018-04-08 20:44:21 +00:00
//- for i := 1; i <= 5; i++
//- .widget-ui-element
//- .widget-ui-element-text
//- Icon("paint-brush")
//- span ...
2016-12-06 10:43:43 +00:00
2018-04-08 20:44:21 +00:00
//- .widget.mountable
//- h3.widget-title Soundtracks
2016-12-06 10:43:43 +00:00
2018-04-08 20:44:21 +00:00
//- for i := 0; i <= 4; i++
//- if i < len(soundTracks)
//- a.widget-ui-element(href=soundTracks[i].Link())
//- .widget-ui-element-text
//- Icon("music")
//- if soundTracks[i].Title == ""
//- span untitled
//- else
//- span= soundTracks[i].Title
//- else
//- .widget-ui-element
//- .widget-ui-element-text
//- Icon("music")
//- span ...
2017-07-09 02:22:14 +00:00
2018-04-08 20:44:21 +00:00
//- .widget.mountable
//- h3.widget-title AMVs
2017-07-09 02:22:14 +00:00
2018-04-08 20:44:21 +00:00
//- for i := 1; i <= 5; i++
//- .widget-ui-element
//- .widget-ui-element-text
//- Icon("video-camera")
//- span ...
2017-07-09 02:22:14 +00:00
2018-04-08 20:44:21 +00:00
//- .widget.mountable
//- h3.widget-title Reviews
2017-07-15 23:59:05 +00:00
2018-04-08 20:44:21 +00:00
//- for i := 1; i <= 5; i++
//- .widget-ui-element
//- .widget-ui-element-text
//- Icon("book")
//- span ...
2017-07-15 23:59:05 +00:00
2018-04-08 20:44:21 +00:00
//- .widget.mountable
//- h3.widget-title Groups
2018-04-08 20:44:21 +00:00
//- for i := 1; i <= 5; i++
//- .widget-ui-element
//- .widget-ui-element-text
//- Icon("group")
//- span ...
2017-07-09 02:22:14 +00:00
2018-04-08 20:44:21 +00:00
//- .widget.mountable
//- h3.widget-title Contacts
2017-06-24 21:57:36 +00:00
2018-04-08 20:44:21 +00:00
//- for i := 0; i <= 4; i++
//- if i < len(following)
//- a.widget-ui-element(href="/+" + following[i].Nick)
//- .widget-ui-element-text
//- Icon("address-card")
//- span= following[i].Nick
//- else
//- .widget-ui-element
//- .widget-ui-element-text
//- Icon("address-card")
//- span ...
2018-04-08 20:44:21 +00:00
//- Footer