2017-06-29 16:39:42 +00:00
|
|
|
component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, soundTracks []*arn.SoundTrack, following []*arn.User)
|
2017-06-07 23:14:45 +00:00
|
|
|
h2.page-title Dash
|
2017-06-24 21:38:39 +00:00
|
|
|
|
2017-06-18 18:22:43 +00:00
|
|
|
.widgets
|
2017-06-20 18:13:04 +00:00
|
|
|
.widget.mountable
|
2017-06-18 18:22:43 +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)
|
|
|
|
a.widget-element.ajax(href=schedule[i].Anime.Link())
|
|
|
|
.widget-element-text
|
|
|
|
Icon("calendar-o")
|
|
|
|
.schedule-item-title= schedule[i].Anime.Title.Canonical
|
|
|
|
.schedule-item-episode= "# " + toString(schedule[i].Episode.Number)
|
|
|
|
else
|
|
|
|
.widget-element
|
|
|
|
.widget-element-text
|
|
|
|
Icon("calendar-o")
|
|
|
|
span ...
|
2017-06-24 21:38:39 +00:00
|
|
|
|
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-06-27 10:39:41 +00:00
|
|
|
a.widget-element.ajax(href=post.Thread().Link())
|
2017-06-18 18:22:43 +00:00
|
|
|
.widget-element-text
|
2016-12-06 10:43:43 +00:00
|
|
|
Icon(arn.GetForumIcon(post.Thread().Tags[0]))
|
|
|
|
span= post.Thread().Title
|
2017-06-24 21:38:39 +00:00
|
|
|
|
2017-06-20 18:13:04 +00:00
|
|
|
.widget.mountable
|
2017-06-18 18:22:43 +00:00
|
|
|
h3.widget-title Groups
|
2016-12-06 10:43:43 +00:00
|
|
|
|
|
|
|
for i := 1; i <= 5; i++
|
2017-06-18 18:22:43 +00:00
|
|
|
.widget-element
|
|
|
|
.widget-element-text
|
2016-12-06 10:43:43 +00:00
|
|
|
Icon("group")
|
|
|
|
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-06-27 22:16:45 +00:00
|
|
|
a.widget-element.ajax(href=soundTracks[i].Link())
|
2017-06-27 14:51:27 +00:00
|
|
|
.widget-element-text
|
|
|
|
Icon("music")
|
2017-06-27 22:16:45 +00:00
|
|
|
span= soundTracks[i].Media[0].Title
|
2017-06-27 14:51:27 +00:00
|
|
|
else
|
|
|
|
.widget-element
|
|
|
|
.widget-element-text
|
|
|
|
Icon("music")
|
|
|
|
span ...
|
2017-06-24 21:38:39 +00:00
|
|
|
|
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)
|
|
|
|
a.widget-element.ajax(href="/+" + following[i].Nick)
|
|
|
|
.widget-element-text
|
|
|
|
Icon("address-card")
|
|
|
|
span= following[i].Nick
|
|
|
|
else
|
|
|
|
.widget-element
|
2017-06-24 21:57:36 +00:00
|
|
|
.widget-element-text
|
|
|
|
Icon("address-card")
|
2017-06-26 22:14:47 +00:00
|
|
|
span ...
|
2017-06-24 21:38:39 +00:00
|
|
|
|
2017-06-20 18:13:04 +00:00
|
|
|
.widget.mountable
|
2017-06-18 18:22:43 +00:00
|
|
|
h3.widget-title Follow
|
2016-12-06 10:43:43 +00:00
|
|
|
|
2017-06-18 18:22:43 +00:00
|
|
|
a.widget-element(href="https://discord.gg/0kimAmMCeXGXuzNF", target="_blank", rel="noopener")
|
|
|
|
.widget-element-text
|
2016-12-06 10:43:43 +00:00
|
|
|
Icon("microphone")
|
|
|
|
span Discord
|
2017-06-24 21:38:39 +00:00
|
|
|
|
2017-06-18 18:22:43 +00:00
|
|
|
a.widget-element(href="https://www.facebook.com/animenotifier", target="_blank", rel="noopener")
|
|
|
|
.widget-element-text
|
2016-12-06 10:43:43 +00:00
|
|
|
Icon("facebook")
|
|
|
|
span Facebook
|
2017-06-24 21:38:39 +00:00
|
|
|
|
2017-06-18 18:22:43 +00:00
|
|
|
a.widget-element(href="https://twitter.com/animenotifier", target="_blank", rel="noopener")
|
|
|
|
.widget-element-text
|
2016-12-06 10:43:43 +00:00
|
|
|
Icon("twitter")
|
|
|
|
span Twitter
|
2017-06-24 21:38:39 +00:00
|
|
|
|
2017-06-18 18:22:43 +00:00
|
|
|
a.widget-element(href="https://plus.google.com/+AnimeReleaseNotifierOfficial", target="_blank", rel="noopener")
|
|
|
|
.widget-element-text
|
2016-12-06 10:43:43 +00:00
|
|
|
Icon("google-plus")
|
|
|
|
span Google+
|
2017-06-24 21:38:39 +00:00
|
|
|
|
2017-06-18 18:22:43 +00:00
|
|
|
a.widget-element(href="https://github.com/animenotifier/notify.moe", target="_blank", rel="noopener")
|
|
|
|
.widget-element-text
|
2016-12-06 10:43:43 +00:00
|
|
|
Icon("github")
|
2017-06-24 21:38:39 +00:00
|
|
|
span GitHub
|