2020-05-01 09:55:18 -07:00
|
|
|
.card.userbox
|
|
|
|
%img.userbox__header{src: current_user.profile_header.url(:mobile)}
|
2020-04-19 14:09:41 -07:00
|
|
|
.card-body
|
2020-05-01 09:55:18 -07:00
|
|
|
%img.userbox__avatar{src: current_user.profile_picture.url(:small)}
|
|
|
|
.profile__name
|
|
|
|
- unless current_user.display_name.blank?
|
|
|
|
.profile__display-name
|
2020-05-01 10:29:05 -07:00
|
|
|
= current_user.display_name
|
2020-05-01 09:55:18 -07:00
|
|
|
.profile__screen-name
|
|
|
|
= current_user.screen_name
|
2020-04-26 07:25:54 -07:00
|
|
|
.card
|
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?
|
2020-04-26 07:25:54 -07:00
|
|
|
.card.profile--panel
|
2020-04-19 14:09:41 -07:00
|
|
|
.card-header
|
|
|
|
%h3.card-title= t('views.group.members')
|
|
|
|
.card-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 }}
|
2020-05-02 11:35:48 -07:00
|
|
|
%img.avatar-xs{src: member.user.profile_picture.url(:medium)}
|
2015-01-17 10:13:09 -08:00
|
|
|
|
2020-04-26 07:25:54 -07:00
|
|
|
= render 'shared/links'
|