From f0817ddd29441e73d3b2d00ee6ee750099916889 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 17 Nov 2018 04:44:35 +0900 Subject: [PATCH] Re-arranged sections on profile --- pages/profile/profile.pixy | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/profile/profile.pixy b/pages/profile/profile.pixy index 16579a04..4a73389e 100644 --- a/pages/profile/profile.pixy +++ b/pages/profile/profile.pixy @@ -50,18 +50,6 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, each genre in topGenres a.anime-genre.mountable(href="/genre/" + strings.ToLower(genre), data-mountable-type="genre")= genre - //- Friends - .profile-section - h3.profile-column-header.mountable(data-mountable-type="extra") Friends - - if len(friends) == 0 - p.no-data.mountable(data-mountable-type="extra") Nothing here yet. - else - .profile-friends.mountable(data-mountable-type="extra") - each friend in friends - .profile-friend.mountable(data-mountable-type="friend") - Avatar(friend) - //- Activity .profile-section h3.profile-column-header.mountable(data-mountable-type="extra") Activity @@ -80,6 +68,18 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, if day == 2 .spacer-box + //- Friends + .profile-section + h3.profile-column-header.mountable(data-mountable-type="extra") Friends + + if len(friends) == 0 + p.no-data.mountable(data-mountable-type="extra") Nothing here yet. + else + .profile-friends.mountable(data-mountable-type="extra") + each friend in friends + .profile-friend.mountable(data-mountable-type="friend") + Avatar(friend) + component ProfileHeader(viewUser *arn.User, user *arn.User, uri string) ProfileHead(viewUser, user, uri)