Updated dashboard following users terminology
This commit is contained in:
parent
1cd798e947
commit
1e89bfa5fb
@ -40,7 +40,7 @@ func Get(ctx *aero.Context) string {
|
|||||||
userList, err := arn.DB.GetMany("User", followIDList)
|
userList, err := arn.DB.GetMany("User", followIDList)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctx.Error(500, "Error fetching followers", err)
|
return ctx.Error(500, "Error fetching followed users", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
followingList := userList.([]*arn.User)
|
followingList := userList.([]*arn.User)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
component Dashboard(posts []*arn.Post, followers []*arn.User)
|
component Dashboard(posts []*arn.Post, following []*arn.User)
|
||||||
h2.page-title Dash
|
h2.page-title Dash
|
||||||
|
|
||||||
.widgets
|
.widgets
|
||||||
@ -38,15 +38,15 @@ component Dashboard(posts []*arn.Post, followers []*arn.User)
|
|||||||
Icon("comment")
|
Icon("comment")
|
||||||
span ...
|
span ...
|
||||||
|
|
||||||
if len(followers) > 0
|
if len(following) > 0
|
||||||
.widget.mountable
|
.widget.mountable
|
||||||
h3.widget-title Contacts
|
h3.widget-title Contacts
|
||||||
|
|
||||||
each follower in followers
|
each user in following
|
||||||
a.widget-element.ajax(href="/+" + follower.Nick)
|
a.widget-element.ajax(href="/+" + user.Nick)
|
||||||
.widget-element-text
|
.widget-element-text
|
||||||
Icon("address-card")
|
Icon("address-card")
|
||||||
span= follower.Nick
|
span= user.Nick
|
||||||
|
|
||||||
.widget.mountable
|
.widget.mountable
|
||||||
h3.widget-title Follow
|
h3.widget-title Follow
|
||||||
|
Loading…
Reference in New Issue
Block a user