diff --git a/app/views/hosts/_host_details.html.erb b/app/views/hosts/_host_details.html.erb index 3bbe717..6960244 100644 --- a/app/views/hosts/_host_details.html.erb +++ b/app/views/hosts/_host_details.html.erb @@ -1,57 +1,67 @@
Name <%= @host.name %>
FQDN <%= @host.fqdn %>
FDPort <%= @host.port %>
Password <%= @host.password %>
File Retention <%= @host.file_retention %> days
Job Retention <%= @host.job_retention %> days
Auto Prune <%= @host.auto_prune_human %>
Created <%= I18n.l(@host.created_at, format: :long) %>
<%= link_to 'Edit', edit_host_path(@host), class: "btn btn-primary", role: "button" %>
+ <% if @host.needs_dispatch? %>
<%= link_to 'Deploy Changes', submit_config_host_path(@host), method: :post, class: 'btn btn-success', role: 'button' %>
<% end %> <% if @host.needs_revoke? %>
<%= link_to 'Remove From Bacula', revoke_host_path(@host), method: :delete, class: 'btn btn-danger', role: 'button' %>
<% end %> +
+ +
+
+ <% if @host.client %> +
+ <%= link_to "Back to #{@host.name} client".html_safe, client_path(@host.client) %> +
+ <% end %>