From 69406f9ec5c5ae6f9e3ba898f19fc461b1a0b6e9 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 22 Jun 2017 16:40:59 -0400 Subject: [PATCH] hide thumbnails subtitle if no thumbnails --- app/views/notification_mailer/recording_ready_email.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/notification_mailer/recording_ready_email.html.erb b/app/views/notification_mailer/recording_ready_email.html.erb index e70a051d..c2f72880 100644 --- a/app/views/notification_mailer/recording_ready_email.html.erb +++ b/app/views/notification_mailer/recording_ready_email.html.erb @@ -63,7 +63,7 @@ <% end %>
-

<%= t('thumbnails') %>:

+

<%= (t('thumbnails') + ':') if @recording[:previews].length > 0 %>

<% @recording[:previews].each do |preview| %> <%= preview[:alt] %> <% end %>