diff --git a/app/views/hosts/_host_details.html.erb b/app/views/hosts/_host_details.html.erb index b686515..b11c548 100644 --- a/app/views/hosts/_host_details.html.erb +++ b/app/views/hosts/_host_details.html.erb @@ -1,117 +1,104 @@
Name <%= @host.name %>
FQDN <%= @host.fqdn %>
FDPort <%= @host.port %>
Token ********
File Retention <%= @host.file_retention %> days
Job Retention <%= @host.job_retention %> days
Verified <% if @host.verified? %> yes <% else %> no <% end %>
Created <%= I18n.l(@host.created_at, format: :long) %>
<%= link_to edit_host_path(@host), class: "btn btn-default", role: "button" do %> Edit <% end %>
<% if @host.can_be_disabled? %>
<%= link_to disable_host_path(@host), method: :post, data: { confirm: 'This will disable the client. Are you sure?' }, class: "btn btn-default", role: "button" do %> Disable <% end %>
<% end %>
<%= link_to host_path(@host), method: :delete, data: { confirm: 'This will remove your client from the Backup service. Are you sure?' }, class: "btn btn-default", role: "button" do %> Remove <% end %>
<% if @host.needs_simple_config? %>
<%= link_to new_host_simple_config_path(@host), role: 'button', class: 'btn btn-default' do %> Configure <% end %>
<% end %> <% if @host.needs_dispatch? %>
<%= link_to submit_config_host_path(@host), method: :post, class: 'btn btn-success', role: 'button' do %> Deploy Changes <% end %>
<% end %> <% if @host.needs_revoke? %>
<%= link_to 'Remove From Backup service', revoke_host_path(@host), method: :delete, class: 'btn btn-danger', role: 'button' %>
<% end %>
- -
- -
- <% if @host.client %> -
- <%= link_to client_path(@host.client), class: 'btn btn-default' do %> - - Back to client - <% end %> -
- <% end %> -
diff --git a/app/views/hosts/show.html.erb b/app/views/hosts/show.html.erb index 14fd87d..1cc5579 100644 --- a/app/views/hosts/show.html.erb +++ b/app/views/hosts/show.html.erb @@ -1,33 +1,45 @@ <%= notifier(@host.display_message) unless @host.deployed? || @host.blocked? %> <%= render partial: 'header' %>
<%= render partial: "host_details" %>
<%= render partial: "jobs/job_templates" %>
<%= render partial: "fd_config" %>
+
+ +
+ <% if @host.client %> +
+ <%= link_to client_path(@host.client), class: 'btn btn-default' do %> + + Back to client + <% end %> +
+ <% end %> +
<%= render partial: 'jobs/modals' %> diff --git a/app/views/jobs/_job_templates.html.erb b/app/views/jobs/_job_templates.html.erb index 79b64a6..0abe959 100644 --- a/app/views/jobs/_job_templates.html.erb +++ b/app/views/jobs/_job_templates.html.erb @@ -1,27 +1,27 @@ -
+
<%= render partial: 'jobs/job_template_details', collection: @host.job_templates, as: :job %>
Name Type FileSet Schedule Client Before Run Job Client After Run Job Enabled Actions
<%= button_or_disabled_with_label( @host.blocked?, 'Add Job', new_host_job_path(host_id: @host.id), class: "btn btn-default", role: "button", icon_class: 'glyphicon glyphicon-plus', text_class: 'text-success') %>