From 1e89bfa5fb2d6256954dde96aa178c36670a09ff Mon Sep 17 00:00:00 2001 From: FM1337 Date: Sat, 24 Jun 2017 19:03:05 -0300 Subject: [PATCH] Updated dashboard following users terminology --- pages/dashboard/dashboard.go | 2 +- pages/dashboard/dashboard.pixy | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/dashboard/dashboard.go b/pages/dashboard/dashboard.go index 48a36c05..f37bbf1c 100644 --- a/pages/dashboard/dashboard.go +++ b/pages/dashboard/dashboard.go @@ -40,7 +40,7 @@ func Get(ctx *aero.Context) string { userList, err := arn.DB.GetMany("User", followIDList) if err != nil { - return ctx.Error(500, "Error fetching followers", err) + return ctx.Error(500, "Error fetching followed users", err) } followingList := userList.([]*arn.User) diff --git a/pages/dashboard/dashboard.pixy b/pages/dashboard/dashboard.pixy index 2fb996bb..7fee6c6f 100644 --- a/pages/dashboard/dashboard.pixy +++ b/pages/dashboard/dashboard.pixy @@ -1,4 +1,4 @@ -component Dashboard(posts []*arn.Post, followers []*arn.User) +component Dashboard(posts []*arn.Post, following []*arn.User) h2.page-title Dash .widgets @@ -38,15 +38,15 @@ component Dashboard(posts []*arn.Post, followers []*arn.User) Icon("comment") span ... - if len(followers) > 0 + if len(following) > 0 .widget.mountable h3.widget-title Contacts - each follower in followers - a.widget-element.ajax(href="/+" + follower.Nick) + each user in following + a.widget-element.ajax(href="/+" + user.Nick) .widget-element-text Icon("address-card") - span= follower.Nick + span= user.Nick .widget.mountable h3.widget-title Follow