diff --git a/app/views/clients/index.html.erb b/app/views/clients/index.html.erb index a218eff..20e488e 100644 --- a/app/views/clients/index.html.erb +++ b/app/views/clients/index.html.erb @@ -1,53 +1,54 @@
<%= link_to 'New Client', new_host_path, class: 'btn btn-primary', role: 'button' %>

My Bacula Clients

<%= render partial: 'client', collection: @clients %>
Name Uname Active Jobs Last Backup FileRetention (days) JobRetention (days) Space Used File count AutoPrune
<% if @hosts.any? %>

My Pending Hosts

+ <%= render partial: 'hosts/host', collection: @hosts %>
Name FQDN Port Password FileRetention (days) JobRetention (days) AutoPruneVerified Created At
<% end %> <%= render partial: 'client_graphs', locals: { path: clients_path } %> diff --git a/app/views/hosts/_host.html.erb b/app/views/hosts/_host.html.erb index dceaa4a..393086c 100644 --- a/app/views/hosts/_host.html.erb +++ b/app/views/hosts/_host.html.erb @@ -1,10 +1,17 @@ <%= link_to host.name, host_path(host) %> <%= host.fqdn %> <%= host.port %> <%= host.password %> <%= host.file_retention %> <%= host.job_retention %> <%= host.auto_prune_human %> + + <% if host.verified? %> + yes + <% else %> + no + <% end %> + <%= I18n.l(host.created_at, format: :long) %> diff --git a/app/views/hosts/_host_details.html.erb b/app/views/hosts/_host_details.html.erb index 6960244..7fb774e 100644 --- a/app/views/hosts/_host_details.html.erb +++ b/app/views/hosts/_host_details.html.erb @@ -1,67 +1,77 @@
+ + + +
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 %>
Verified + <% if @host.verified? %> + yes + <% else %> + no + <% end %> +
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 %>