Commits

Konstantine Rybnikov committed 9061126

@username to show his friends

Comments (0)

Files changed (2)

     - # (ok)
     - @username+ (ok)
 
-#. @username to show his friends
+#. @username to show his friends (ok)
 #. Message posting to tell about it to subscribers
 #. Write tests.
 #. Lor-talks-bot
         render_replies_list(replies))))
 
 def render_user_info(user):
+    def render_users_list(users):
+        return u", ".join(x.nick for x in users)
+        
     return (
         u"""User %(nick)s\n"""
         u"""Messages:\n"""
         u"""  overall: %(overall)s\n"""
-        u"""  today: %(today)s""") % dict(
+        u"""  today: %(today)s\n\n"""
+        u"""Friends: %(friends)s""") % dict(
         nick = render_user_nick(user),
         overall = user.num_overall_messages(),
         today = user.num_today_messages(),
+        friends = render_users_list(user.friends),
         )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.