From 333cb1a3fd859ab3a80ea71a87e712983e9da921 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 5 Jul 2018 13:34:05 +0100 Subject: Customise the services message on the show page For mini environments. --- app/views/mini_environments/show.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 %> -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 (show revision details): -- cgit v1.2.3