File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- .text-end
2- = button_to t(' .report' ), report_request_for_comment_path(request_for_comment),
3- data: {confirm: t(' .confirm' )},
4- class : ' btn btn-light btn-sm'
1+ - if policy(@request_for_comment ).report?
2+ .text-end
3+ = button_to t(' .report' ), report_request_for_comment_path(request_for_comment),
4+ data: {confirm: t(' .confirm' )},
5+ class : ' btn btn-light btn-sm'
Original file line number Diff line number Diff line change 2828 .text
2929 - question = @request_for_comment .question
3030 = question.presence || t(' request_for_comments.no_question' )
31- - if policy(@request_for_comment ).report?
32- = render(' report' , request_for_comment: @request_for_comment )
31+ = render(' report' , request_for_comment: @request_for_comment )
3332
3433 - if policy(@request_for_comment ).mark_as_solved? && ! @request_for_comment .solved?
3534 = render(' mark_as_solved' )
You can’t perform that action at this time.
0 commit comments