aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-05 13:34:05 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-05 13:34:05 +0100
commit333cb1a3fd859ab3a80ea71a87e712983e9da921 (patch)
tree87c5dd37faf281a5573e42a2b16ed970aefca40f
parente4e26a24c5df2095b25194ab9f05e37fdbb355c5 (diff)
downloadgovuk-mini-environment-admin-333cb1a3fd859ab3a80ea71a87e712983e9da921.tar
govuk-mini-environment-admin-333cb1a3fd859ab3a80ea71a87e712983e9da921.tar.gz
Customise the services message on the show page
For mini environments.
-rw-r--r--app/views/mini_environments/show.html.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/mini_environments/show.html.erb b/app/views/mini_environments/show.html.erb
index 203fb62..6b7871d 100644
--- a/app/views/mini_environments/show.html.erb
+++ b/app/views/mini_environments/show.html.erb
@@ -125,7 +125,12 @@ License along with the GOV.UK Mini Environment Admin. If not, see
<% end %>
</ul>
-Plus <%= uncustomised_services.length %> other services at the revision specified in the revision of GOV.UK Guix
+<% if customised_services.any? %>
+ Plus <%= pluralize(uncustomised_services.length, 'other service') %>
+<% else %>
+ <%= pluralize(uncustomised_services.length, 'service') %>
+<% end %>
+at the revision specified in the revision of GOV.UK Guix
(<a
href="<%= govuk_guix_revision_path @mini_environment.govuk_guix_revision %>"
>show revision details</a>):