mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-16 06:50:00 +01:00
redirect to root instead of users question site
This commit is contained in:
parent
aac84c623f
commit
13d67b51f0
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
%ul.dropdown-menu.dropdown-menu-right{role: :menu}
|
%ul.dropdown-menu.dropdown-menu-right{role: :menu}
|
||||||
- if current_user.mod? or @question.user == current_user
|
- if current_user.mod? or @question.user == current_user
|
||||||
%li.text-danger
|
%li.text-danger
|
||||||
%a{href: '#', data: { action: 'ab-question-destroy', q_id: @question.id, redirect: show_user_questions_path(@question.user.screen_name) }}
|
%a{href: '#', data: { action: 'ab-question-destroy', q_id: @question.id, redirect: '/' }}
|
||||||
%i.fa.fa-trash-o
|
%i.fa.fa-trash-o
|
||||||
Delete Question
|
Delete Question
|
||||||
- unless @question.user == current_user
|
- unless @question.user == current_user
|
||||||
|
|
Loading…
Reference in a new issue