2017-03-29 15:29:07 -07:00
|
|
|
- provide(:title, user_title(@user, "groups"))
|
|
|
|
- no_header = unless @user.profile_header.exists? then "profile--no-header" else "" end
|
|
|
|
#profile--header{class: no_header}
|
|
|
|
%img.profile--header-img{src: @user.profile_header.url(:web)}
|
|
|
|
.container.j2-page.headerable{class: no_header}
|
2015-01-11 21:57:43 -08:00
|
|
|
.col-md-3.col-xs-12.col-sm-4
|
|
|
|
= render 'user/profile_info'
|
|
|
|
.hidden-xs= render 'shared/links'
|
|
|
|
.col-md-9.col-xs-12.col-sm-8
|
|
|
|
%h1.j2-lh.hidden-xs Groups
|
|
|
|
%h1.visible-xs Groups
|
|
|
|
|
|
|
|
%ul
|
|
|
|
- @groups.each do |group|
|
2015-01-11 22:08:06 -08:00
|
|
|
%li
|
|
|
|
- if group.private?
|
|
|
|
%i.fa.fa-lock
|
|
|
|
= group.display_name
|
2015-01-11 21:57:43 -08:00
|
|
|
|
|
|
|
.visible-xs= render 'shared/links'
|
2015-01-13 22:07:40 -08:00
|
|
|
- if user_signed_in?
|
2017-03-29 15:29:07 -07:00
|
|
|
= render 'user/modal_group_memberships'
|