Retrospring/app/views/shared/_sidebar.haml

22 lines
795 B
Plaintext

.card.userbox
%img.userbox__header{ src: current_user.profile_header.url(:mobile) }
.card-body
%img.userbox__avatar{ src: current_user.profile_picture.url(:small) }
.profile__name
- unless current_user.profile.display_name.blank?
.profile__display-name
= current_user.profile.display_name
.profile__screen-name
= current_user.screen_name
- unless @list.nil?
.card
.card-header= t(".list.title")
.card-body
- if @list.members.empty?
%p.text-muted= t(".list.none")
- @list.members.each do |member|
%a{ href: user_path(member.user), title: member.user.screen_name, data: { toggle: :tooltip, placement: :top } }
%img.avatar-xs{ src: member.user.profile_picture.url(:medium) }
= render 'shared/links'