Skip to content

Commit

Permalink
Merge pull request #322 from DFE-Digital/refine-task-question-display
Browse files Browse the repository at this point in the history
Refine task question display
  • Loading branch information
jacksonj04 authored Apr 27, 2021
2 parents 4ddd3e9 + 3ca14d4 commit 560af84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/views/tasks/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<h1 class="govuk-heading-xl"><%= @task.title %></h1>

<ol class="app-task-list">
<h2 class="app-task-list__task"><%= @task.title %></h2>
<li>
<ul class="app-task-list__items">
<% @steps.each do |step| %>
Expand All @@ -23,10 +22,9 @@
<% end %>
</li>
<% end %>
</ul>
</li>
<% end %>
<% end %>
</ul>
</li>
</ol>

<%= link_to I18n.t("journey.specification.button"), journey_specification_path(@journey), class: "govuk-button" %>

<%= link_to I18n.t("task.buttons.back"), journey_path(@journey), class: "govuk-button" %>
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ en:
status:
not_started: Not started
completed: Completed
task:
buttons:
back: Back to all questions
journey_map:
page_title: "Contentful entry map"
edit_step_link_text: "Edit step in Contentful"
Expand Down

0 comments on commit 560af84

Please sign in to comment.