|
|
|
@ -26,8 +26,8 @@ module QuestionViewHelper
|
|
|
|
|
def answer_option_append(resource) |
|
|
|
|
return unless resource.instance_of?(Scheme) |
|
|
|
|
|
|
|
|
|
confirmed_locations_count = resource.locations.confirmed.size |
|
|
|
|
unconfirmed_locations_count = resource.locations.unconfirmed.size |
|
|
|
|
confirmed_locations_count = resource.locations.visible.confirmed.size |
|
|
|
|
unconfirmed_locations_count = resource.locations.visible.unconfirmed.size |
|
|
|
|
"#{confirmed_locations_count} completed #{'location'.pluralize(confirmed_locations_count)}, #{unconfirmed_locations_count} incomplete #{'location'.pluralize(unconfirmed_locations_count)}" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|