From 0b2c1b86c8ab204c43b8511695180251c1124cfe Mon Sep 17 00:00:00 2001 From: Andreas N Date: Sat, 17 Jan 2015 19:13:09 +0100 Subject: [PATCH] added member listing for groups --- app/views/shared/_sidebar.html.haml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/shared/_sidebar.html.haml b/app/views/shared/_sidebar.html.haml index 58002c6c..7e787a31 100644 --- a/app/views/shared/_sidebar.html.haml +++ b/app/views/shared/_sidebar.html.haml @@ -39,4 +39,13 @@ = nav_entry "Public", public_timeline_path - current_user.groups.each do |group| = nav_entry group.display_name, group_timeline_path(group.name) +- unless @group.nil? + .panel.panel-default.profile--panel.hidden-xs + .panel-heading + %h3.panel-title Members + .panel-body + = @group.members.each do |member| + %a{href: show_user_profile_path(member.screen_name), title: member.screen_name, data: { toggle: :tooltip, placement: :top }} + %img.img-rounded.answerbox--img-small{src: member.profile_picture.url(:medium)} + .hidden-xs= render 'shared/links' \ No newline at end of file