You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
module Admins::SubjectsHelper
|
|
def display_subject_status(subject)
|
|
style =
|
|
case subject.status
|
|
when 0 then 'text-secondary'
|
|
when 1 then 'text-warning'
|
|
when 2 then 'text-success'
|
|
end
|
|
raw content_tag(:span, t("subject.status.#{subject.status}"), class: style)
|
|
end
|
|
end |