Improved profile

This commit is contained in:
2017-07-03 17:21:00 +02:00
parent e6d18f2e1d
commit dd974ed99a
14 changed files with 180 additions and 92 deletions

View File

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