From d7b9f9235babd102b36c3ca660428ec0ad9fcd29 Mon Sep 17 00:00:00 2001 From: Christoph Matthies Date: Fri, 5 Apr 2019 11:21:46 +0200 Subject: [PATCH] Fix(VMs Show): Extract modal into partial --- app/views/application/_modal.html.erb | 20 +++++++ app/views/vms/show.html.erb | 76 +++++++++++---------------- 2 files changed, 51 insertions(+), 45 deletions(-) create mode 100644 app/views/application/_modal.html.erb diff --git a/app/views/application/_modal.html.erb b/app/views/application/_modal.html.erb new file mode 100644 index 00000000..58586b37 --- /dev/null +++ b/app/views/application/_modal.html.erb @@ -0,0 +1,20 @@ +<%# Partial params: id, dialog_class, title %> + \ No newline at end of file diff --git a/app/views/vms/show.html.erb b/app/views/vms/show.html.erb index 9c5c1156..12f69a6d 100644 --- a/app/views/vms/show.html.erb +++ b/app/views/vms/show.html.erb @@ -148,51 +148,37 @@ end %> <% if @vm.config.present? && current_user.admin? %> - <%# Render content in location defined in app/views/layouts/application.html.erb %> - <% content_for :modals do %> - <%# Modal for Puppet Script display %> -