mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:19:52 +01:00
"answered by xyz" should not be shown on the user page
This commit is contained in:
parent
dbdb3c81ab
commit
155b60f8b2
1 changed files with 7 additions and 6 deletions
|
@ -9,11 +9,12 @@
|
|||
%p.answerbox-question-text= a.question.content
|
||||
.panel-body
|
||||
%p= a.content
|
||||
%p.text-muted
|
||||
Answered by
|
||||
%a{href: show_user_profile_path(a.user.screen_name)}
|
||||
%img.img-rounded.img-answerbox-small{src: gravatar_url(a.user)}
|
||||
%span= a.user.screen_name
|
||||
- if @user.nil?
|
||||
%p.text-muted
|
||||
Answered by
|
||||
%a{href: show_user_profile_path(a.user.screen_name)}
|
||||
%img.img-rounded.img-answerbox-small{src: gravatar_url(a.user)}
|
||||
%span= a.user.screen_name
|
||||
- if privileged? a.user
|
||||
%button.btn.btn-danger{name: 'ab-destroy', 'data-a-id' => a.id}
|
||||
%button.btn.btn-sm.btn-danger{name: 'ab-destroy', 'data-a-id' => a.id}
|
||||
Delete
|
Loading…
Reference in a new issue