Skip to content

Commit

Permalink
Change start button text for benchmarking
Browse files Browse the repository at this point in the history
This commit changes the start button text for the benchmarking
exercise, due to start on the 24th.

A helper (start_button) is defined that caters for the change of the
start button text.

The following smarts-answer (and button text) are affect by this commit:

- Overseas passport => "Continue"
-  calculate-your-child-maintenance => "Calculate your child maintenance"
  • Loading branch information
ikennaokpala committed Oct 21, 2016
1 parent 6455c87 commit 272251a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions app/helpers/application_helper.rb
Expand Up @@ -10,4 +10,15 @@ def ajax_enabled_for?(name)
register-a-death
).exclude?(name)
end

def start_button
case @name.to_s
when "overseas-passports"
"Continue"
when "calculate-your-child-maintenance"
"Calculate your child maintenance"
else
"Start now"
end
end
end
2 changes: 1 addition & 1 deletion app/views/smart_answers/_landing.html.erb
Expand Up @@ -18,7 +18,7 @@
<div class="intro">
<%= start_node.body %>
<p class="get-started">
<a rel="nofollow" href="<%= smart_answer_path(@name, started: 'y') %>" class="big button">Start now</a>
<a rel="nofollow" href="<%= smart_answer_path(@name, started: 'y') %>" class="big button"><%= start_button %></a>
</p>
</div>
<%= start_node.post_body %>
Expand Down

0 comments on commit 272251a

Please sign in to comment.