Reverted forum style, used for genres now
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,6 @@
|
||||
.forum-header
|
||||
text-align left
|
||||
|
||||
.forum-tags
|
||||
text-align left
|
||||
margin-bottom 1.5rem
|
||||
|
Reference in New Issue
Block a user