Improved composability

This commit is contained in:
2017-06-22 18:04:14 +02:00
parent dd7355a45d
commit e652e6655f
3 changed files with 10 additions and 2 deletions

6
pages/profile/posts.pixy Normal file
View File

@ -0,0 +1,6 @@
component LatestPosts(postables []arn.Postable, viewUser *arn.User)
if len(postables) > 0
h2.thread-title= len(postables), " latest posts by ", postables[0].Author().Nick
PostableList(postables)
else
p= viewUser.Nick + " hasn't written any posts yet."