From 1861f86b2c3bc48aa13d2d505e36a65241c5d615 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 17 Jan 2019 17:27:32 +0100 Subject: [PATCH] Improve export all modal messages in case of unlimited exports [SCI-2965] --- app/views/projects/export/_modal.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/projects/export/_modal.html.erb b/app/views/projects/export/_modal.html.erb index 02a119c04..3dfc75ac4 100644 --- a/app/views/projects/export/_modal.html.erb +++ b/app/views/projects/export/_modal.html.erb @@ -1,5 +1,7 @@

<%=t 'projects.export_projects.modal_text_p1_html', num_projects: num_projects, team: @team.name %>

<%=t 'projects.export_projects.modal_text_p2_html' %>

-

- <%=t 'projects.export_projects.modal_text_p3_html', limit: limit, num: num_of_requests_left %> -

+<% unless limit.zero? %> +

+ <%=t 'projects.export_projects.modal_text_p3_html', limit: limit, num: num_of_requests_left %> +

+<% end %>