From cb3d298bb30cb94edb39273c8b78bb45259b53a1 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 16 Oct 2019 19:19:10 +0300 Subject: [PATCH] Convert HAML to ERB --- .../admin/contacts/partials/_statuses.haml | 14 --------- .../contacts/partials/_statuses.html.erb | 31 +++++++++++++++++++ 2 files changed, 31 insertions(+), 14 deletions(-) delete mode 100644 app/views/admin/contacts/partials/_statuses.haml create mode 100644 app/views/admin/contacts/partials/_statuses.html.erb diff --git a/app/views/admin/contacts/partials/_statuses.haml b/app/views/admin/contacts/partials/_statuses.haml deleted file mode 100644 index 3131fd4ba..000000000 --- a/app/views/admin/contacts/partials/_statuses.haml +++ /dev/null @@ -1,14 +0,0 @@ -.panel{class: 'panel-default'} - .panel-heading - = t(:statuses) - .table-responsive - %table.table.table-hover.table-bordered.table-condensed - %thead - %tr - %th{class: 'col-xs-6'}= t(:status) - %th{class: 'col-xs-6'}= t(:notes) - %tbody - - contact.statuses.each do |status| - %tr - %td= status - %td= contact.status_notes[status] diff --git a/app/views/admin/contacts/partials/_statuses.html.erb b/app/views/admin/contacts/partials/_statuses.html.erb new file mode 100644 index 000000000..15b5af7c0 --- /dev/null +++ b/app/views/admin/contacts/partials/_statuses.html.erb @@ -0,0 +1,31 @@ +
+
+ <%= t(:statuses) %> +
+
+ + + + + + + + + <% contact.statuses.each do |status| %> + + + + + <% end %> + +
+ <%= t(:status) %> + + <%= t(:notes) %> +
+ <%= status %> + + <%= contact.status_notes[status] %> +
+
+