diff options
author | Christopher Baines <mail@cbaines.net> | 2018-07-06 10:01:08 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-07-06 10:01:08 +0100 |
commit | 0c27a8077792d0a6695ef329af6d19424b4fc8c2 (patch) | |
tree | 8f421d93f47979a77100e57b4eecda841b0af21c | |
parent | a104debbcbdffc7ff7acfae9aed2c744608d6ad8 (diff) | |
download | govuk-mini-environment-admin-0c27a8077792d0a6695ef329af6d19424b4fc8c2.tar govuk-mini-environment-admin-0c27a8077792d0a6695ef329af6d19424b4fc8c2.tar.gz |
Don't say "Plus 0 services" ... as that doesn't make sense
-rw-r--r-- | app/views/mini_environments/show.html.erb | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/app/views/mini_environments/show.html.erb b/app/views/mini_environments/show.html.erb index 0f166f6..5a6de0b 100644 --- a/app/views/mini_environments/show.html.erb +++ b/app/views/mini_environments/show.html.erb @@ -125,22 +125,24 @@ License along with the GOV.UK Mini Environment Admin. If not, see <% end %> </ul> -<% 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>): - -<% multi_column = (uncustomised_services.length > 6) %> -<ul <% if multi_column %>class="row"<% end %>> - <% uncustomised_services.each do |service| %> - <li <% if multi_column %>class="col-xs-12 col-sm-6 col-md-3"<% end %>><%= service.name %></li> +<% if uncustomised_services.any? %> + <% if customised_services.any? %> + Plus <%= pluralize(uncustomised_services.length, 'other service') %> + <% else %> + <%= pluralize(uncustomised_services.length, 'service') %> <% end %> -</ul> + 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>): + + <% multi_column = (uncustomised_services.length > 6) %> + <ul <% if multi_column %>class="row"<% end %>> + <% uncustomised_services.each do |service| %> + <li <% if multi_column %>class="col-xs-12 col-sm-6 col-md-3"<% end %>><%= service.name %></li> + <% end %> + </ul> +<% end %> <p> <% if @mini_environment.data_snapshot %> |