2015-07-24 10:12:14 -07:00
|
|
|
- header_class = if current_user.profile_header.exists? then "userbox--header-container" else "userbox--no-header" end
|
2015-01-13 04:23:12 -08:00
|
|
|
.panel.panel-default.hidden-xs
|
2015-07-24 10:12:14 -07:00
|
|
|
%div{class: header_class}
|
|
|
|
%img.userbox--header{src: current_user.profile_header.url(:mobile)}
|
2015-01-13 04:23:12 -08:00
|
|
|
.panel-body
|
2015-07-24 08:04:46 -07:00
|
|
|
%img.userbox--avatar{src: current_user.profile_picture.url(:small)}
|
|
|
|
%p.userbox--username
|
|
|
|
- if current_user.display_name.blank?
|
|
|
|
%span.profile--displayname
|
|
|
|
= current_user.screen_name
|
|
|
|
- else
|
|
|
|
%span.profile--displayname
|
|
|
|
= current_user.display_name
|
|
|
|
%span.profile--username
|
|
|
|
= current_user.screen_name
|
2015-01-13 04:23:12 -08:00
|
|
|
.row
|
|
|
|
%a{href: show_user_followers_path(current_user.screen_name)}
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#follower-count= current_user.follower_count
|
2015-06-07 07:24:41 -07:00
|
|
|
%h6.entry-subtext= t('views.general.follower').pluralize(current_user.follower_count)
|
2015-01-13 04:23:12 -08:00
|
|
|
%a{href: show_user_friends_path(current_user.screen_name)}
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#friend-count= current_user.friend_count
|
2015-06-07 07:24:41 -07:00
|
|
|
%h6.entry-subtext= t('views.general.following')
|
2015-01-30 13:46:44 -08:00
|
|
|
.panel.panel-default.hidden-xs
|
2015-08-25 14:46:49 -07:00
|
|
|
.list-group
|
2015-06-07 07:24:41 -07:00
|
|
|
= list_group_item t('views.general.timeline'), root_path
|
2017-03-31 13:21:19 -07:00
|
|
|
- if APP_CONFIG.dig(:features, :public, :enabled)
|
|
|
|
= list_group_item t('views.general.public'), public_timeline_path
|
2015-04-19 07:49:53 -07:00
|
|
|
- current_user.groups.each do |group|
|
|
|
|
= list_group_item group.display_name, group_timeline_path(group.name)
|
2015-01-17 10:13:09 -08:00
|
|
|
- unless @group.nil?
|
|
|
|
.panel.panel-default.profile--panel.hidden-xs
|
|
|
|
.panel-heading
|
2015-06-07 07:24:41 -07:00
|
|
|
%h3.panel-title= t('views.group.members')
|
2015-01-17 10:13:09 -08:00
|
|
|
.panel-body
|
2015-01-17 10:13:31 -08:00
|
|
|
- @group.members.each do |member|
|
2015-01-17 10:15:06 -08:00
|
|
|
%a{href: show_user_profile_path(member.user.screen_name), title: member.user.screen_name, data: { toggle: :tooltip, placement: :top }}
|
|
|
|
%img.img-rounded.answerbox--img-small{src: member.user.profile_picture.url(:medium)}
|
2015-01-17 10:13:09 -08:00
|
|
|
|
2015-05-15 15:39:33 -07:00
|
|
|
.hidden-xs= render 'shared/links'
|