Updated dashboard following users terminology

This commit is contained in:
FM1337 2017-06-24 19:03:05 -03:00
parent 1cd798e947
commit 1e89bfa5fb
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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