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.
12 lines
386 B
12 lines
386 B
4 months ago
|
module GuidanceHelper
|
||
|
include GovukLinkHelper
|
||
|
include GovukVisuallyHiddenHelper
|
||
|
|
||
|
def question_link(question_id, log, user)
|
||
|
question = log.form.get_question(question_id, log)
|
||
|
return "" unless question.page.routed_to?(log, user)
|
||
|
|
||
|
"(#{govuk_link_to "Q#{question.question_number}", send("#{log.class.name.underscore}_#{question.page.id}_path", log)})".html_safe
|
||
|
end
|
||
|
end
|