mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
normalized question text
This commit is contained in:
parent
e39e32f700
commit
d9b7fd89f2
2 changed files with 5 additions and 1 deletions
|
|
@ -63,4 +63,8 @@ class Question < ApplicationRecord
|
||||||
most_popular_answer
|
most_popular_answer
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def normalized_text
|
||||||
|
text.gsub("[science/math/English/social studies]", "")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
.col-12.col-md-6.py-3
|
.col-12.col-md-6.py-3
|
||||||
.question.p-2{id: "question-#{question.id}"}
|
.question.p-2{id: "question-#{question.id}"}
|
||||||
%p.question-text.pt-3.px-2
|
%p.question-text.pt-3.px-2
|
||||||
= question.text
|
= question.normalized_text
|
||||||
|
|
||||||
.row.pt-2
|
.row.pt-2
|
||||||
.col-4.indicator-container.centered
|
.col-4.indicator-container.centered
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue