From 4bde59341f6d4679b2eefa2c5e332c33c3c76050 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Wed, 15 Jun 2016 17:31:00 +0200 Subject: lots of refactoring again based on feedback. Changed the UI slightly and also fixed a small bug --- app/views/notify/project_was_not_exported_email.html.haml | 6 ++++-- app/views/notify/project_was_not_exported_email.text.erb | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'app/views/notify') diff --git a/app/views/notify/project_was_not_exported_email.html.haml b/app/views/notify/project_was_not_exported_email.html.haml index 78d4751b64a..c9e9ade2cf1 100644 --- a/app/views/notify/project_was_not_exported_email.html.haml +++ b/app/views/notify/project_was_not_exported_email.html.haml @@ -3,5 +3,7 @@ %p The errors we encountered were: - %h3{style: "background: black; color: red;"} - #{@errors} + %ul + - @errors.each do |error| + %li + error diff --git a/app/views/notify/project_was_not_exported_email.text.erb b/app/views/notify/project_was_not_exported_email.text.erb index ad730d2162b..a07f6edacf7 100644 --- a/app/views/notify/project_was_not_exported_email.text.erb +++ b/app/views/notify/project_was_not_exported_email.text.erb @@ -2,4 +2,5 @@ Project <%= @project.name %> couldn't be exported. The errors we encountered were: -<%= @errors %> +- @errors.each do |error| +<%= error %> \ No newline at end of file -- cgit v1.2.1