2017-06-23 19:05:30 +00:00
|
|
|
component SearchResults(users []*arn.User, animeResults []*arn.Anime)
|
2017-06-20 20:54:45 +00:00
|
|
|
.widgets
|
|
|
|
.widget
|
|
|
|
h3 Users
|
|
|
|
.user-avatars.user-search
|
|
|
|
if len(users) == 0
|
2017-07-03 15:33:57 +00:00
|
|
|
p.no-data.mountable No users found.
|
2017-06-20 20:54:45 +00:00
|
|
|
else
|
|
|
|
each user in users
|
2017-07-02 15:51:17 +00:00
|
|
|
.mountable(data-mountable-type="user")
|
|
|
|
Avatar(user)
|
2017-06-20 20:54:45 +00:00
|
|
|
//- a.ajax(href=user.Link())= user.Nick
|
|
|
|
|
|
|
|
.widget
|
|
|
|
h3 Anime
|
|
|
|
.profile-watching-list.anime-search
|
|
|
|
if len(animeResults) == 0
|
2017-07-03 15:33:57 +00:00
|
|
|
p.no-data.mountable No anime found.
|
2017-06-20 20:54:45 +00:00
|
|
|
else
|
|
|
|
each anime in animeResults
|
2017-07-02 15:51:17 +00:00
|
|
|
a.profile-watching-list-item.mountable.ajax(href=anime.Link(), title=anime.Title.Canonical, data-mountable-type="anime")
|
2017-06-20 20:54:45 +00:00
|
|
|
img.anime-cover-image.anime-search-result(src=anime.Image.Tiny, alt=anime.Title.Canonical)
|