diff --git a/config/locales/new_ui.en.yml b/config/locales/new_ui.en.yml index 750fdd76a..bc586229b 100644 --- a/config/locales/new_ui.en.yml +++ b/config/locales/new_ui.en.yml @@ -31,6 +31,7 @@ en: no_app: No module no_category: No Available Category no_date: No date + no_file: No file previous: Previous remove: Remove remove_default: Remove default diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form_file.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form_file.html.erb index d2d2f9b8e..5d42da5ce 100644 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form_file.html.erb +++ b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form_file.html.erb @@ -2,7 +2,11 @@
<% else %>
- <%= link_to form_file.file_identifier, form_file.file.url, {:class => 'file-link for_preview', :target => '_blank', :title => t(:view), "data-trigger" => :hover}.merge(file_picture_preview_setting(form_file.file.url)) %> + <% if form_file.file.blank? %> + <%= t(:no_file) %> + <% else %> + <%= link_to form_file.file_identifier, form_file.file.url, {:class => 'file-link for_preview', :target => '_blank', :title => t(:view), "data-trigger" => :hover}.merge(file_picture_preview_setting(form_file.file.url)) %> + <% end %> <% end %>
<% if form_file.new_record? %>