Replace manual activerecord translations with helpers
This commit is contained in:

committed by
Sebastian Serth

parent
e551c8a699
commit
f8330b39fb
@@ -17,14 +17,14 @@
|
||||
.rfc
|
||||
.description
|
||||
h5
|
||||
= t('activerecord.attributes.exercise.description')
|
||||
= Exercise.human_attribute_name('description')
|
||||
.text
|
||||
span.fa-solid.fa-chevron-up.collapse-button
|
||||
= render_markdown(@request_for_comment.exercise.description)
|
||||
|
||||
.question
|
||||
h5.mt-4
|
||||
= t('activerecord.attributes.request_for_comments.question')
|
||||
= RequestForComment.human_attribute_name('question')
|
||||
.text
|
||||
- question = @request_for_comment.question
|
||||
= question.presence || t('request_for_comments.no_question')
|
||||
|
Reference in New Issue
Block a user