retrospring/app/views/shared/_sidebar.haml
Georg Gadinger 66efa5d4f4 clean up routes
- replace `match` with `get`/`post`/`patch`/`delete`
- format routes.rb
- rename the `show_user_{profile,question,answer}` routes to
  `profile`, `question`, `answer` so `url_for` (used by Rails Admin)
  works fine for these things
- also add `to_param` to the `User` model so that `url_for(some_user)`
  uses the user name
2022-07-23 12:14:06 +02:00

21 lines
801 B
Text

.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('views.list.members')
.card-body
- if @list.members.empty?
%p.text-muted No members yet.
- @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'