Skip to content

Commit 92a6a7f

Browse files
committed
View design fix
1 parent f985f36 commit 92a6a7f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
/# locals: (request_for_comment:)
2+
13
- 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'
4+
= button_to t('.report'), report_request_for_comment_path(request_for_comment),
5+
data: {confirm: t('.confirm')},
6+
class: 'btn btn-light btn-sm',
7+
form: {class: 'd-inline float-end'}

app/views/request_for_comments/show.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
.question
2626
h5.mt-4
2727
= RequestForComment.human_attribute_name('question')
28+
= render('report', request_for_comment: @request_for_comment)
2829
.text
2930
- question = @request_for_comment.question
3031
= question.presence || t('request_for_comments.no_question')
31-
= render('report', request_for_comment: @request_for_comment)
3232

3333
- if policy(@request_for_comment).mark_as_solved? && !@request_for_comment.solved?
3434
= render('mark_as_solved')

0 commit comments

Comments
 (0)