Character search improvements
This commit is contained in:
parent
5ee7f86d41
commit
f96491f187
@ -10,10 +10,10 @@ import (
|
||||
|
||||
const maxUsers = 25
|
||||
const maxAnime = 25
|
||||
const maxPosts = 3
|
||||
const maxThreads = 3
|
||||
const maxPosts = 2
|
||||
const maxThreads = 2
|
||||
const maxTracks = 4
|
||||
const maxCharacters = 0
|
||||
const maxCharacters = 12
|
||||
|
||||
// Get search page.
|
||||
func Get(ctx *aero.Context) string {
|
||||
|
@ -15,6 +15,19 @@ component SearchResults(term string, users []*arn.User, animes []*arn.Anime, pos
|
||||
a.profile-watching-list-item.mountable.ajax(href=anime.Link(), title=anime.Title.Canonical, data-mountable-type="anime")
|
||||
img.anime-cover-image.anime-search-result(src=anime.Image("small"), data-webp="true", alt=anime.Title.Canonical)
|
||||
|
||||
.widget
|
||||
h3.widget-title
|
||||
Icon("user")
|
||||
span Characters
|
||||
|
||||
.character-search
|
||||
if len(characters) == 0
|
||||
p.no-search-results.mountable No characters found.
|
||||
else
|
||||
each character in characters
|
||||
.mountable(data-mountable-type="character")
|
||||
Character(character)
|
||||
|
||||
.widget
|
||||
h3.widget-title
|
||||
Icon("comment")
|
||||
@ -65,16 +78,4 @@ component SearchResults(term string, users []*arn.User, animes []*arn.Anime, pos
|
||||
.mountable(data-mountable-type="user")
|
||||
Avatar(user)
|
||||
//- a.ajax(href=user.Link())= user.Nick
|
||||
.widget
|
||||
h3.widget-title
|
||||
Icon("user")
|
||||
span Characters
|
||||
|
||||
.character-search
|
||||
if len(characters) == 0
|
||||
p.no-search-results.mountable No characters found.
|
||||
else
|
||||
each character in characters
|
||||
.mountable(data-mountable-type="character")
|
||||
Character(character)
|
||||
//- a.ajax(href=user.Link())= user.Nick
|
||||
|
Loading…
Reference in New Issue
Block a user