Reverted forum style, used for genres now

This commit is contained in:
2016-11-20 03:02:33 +09:00
parent e17f377dc6
commit 9794a09f12
17 changed files with 127 additions and 70 deletions

View File

@ -25,5 +25,5 @@ func Get(ctx *aero.Context) string {
thread.Init()
}
return ctx.HTML(components.Forum(threads))
return ctx.HTML(components.Forum(tag, threads))
}

View File

@ -1,25 +1,10 @@
component Forum(threads []*arn.Thread)
h2 Forum
ForumHeader
component Forum(tag string, threads []*arn.Thread)
h2.forum-header Forum
ForumTags
each thread in threads
ThreadLink(thread)
component ForumHeader
.forum-tags
a.ajax(href="/forum") All
span |
a.ajax(href="/forum/general") General
span |
a.ajax(href="/forum/news") News
span |
a.ajax(href="/forum/anime") Anime
span |
a.ajax(href="/forum/update") Updates
span |
a.ajax(href="/forum/suggestion") Suggestions
span |
a.ajax(href="/forum/bug") Bugs
component ThreadLink(thread *arn.Thread)
.thread-link(data-sticky=thread.Sticky)
.post-author.thread-author

View File

@ -1,3 +1,6 @@
.forum-header
text-align left
.forum-tags
text-align left
margin-bottom 1.5rem