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

My Clients

<%= render partial: 'client', collection: @clients %>
Name Uname Active Jobs Last Backup File Ret. (days) Job Ret. (days) Space Used Quota Space Used % Files
<% if @hosts.any? %>

My Pending Clients

- + <%= render partial: 'hosts/host', collection: @hosts %>
Name FQDN PortPasswordToken FileRetention (days) JobRetention (days) Verified Created At
<% end %> <%= render partial: 'client_graphs', locals: { path: clients_path } %> diff --git a/app/views/hosts/_host_details.html.erb b/app/views/hosts/_host_details.html.erb index 55b9b89..08e46f9 100644 --- a/app/views/hosts/_host_details.html.erb +++ b/app/views/hosts/_host_details.html.erb @@ -1,73 +1,73 @@
- +
Name <%= @host.name %>
FQDN <%= @host.fqdn %>
FDPort <%= @host.port %>
PasswordToken ********
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', 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 %>