diff --git a/app/views/clients/_client_details.html.erb b/app/views/clients/_client_details.html.erb index eec2634..ad5383e 100644 --- a/app/views/clients/_client_details.html.erb +++ b/app/views/clients/_client_details.html.erb @@ -1,52 +1,56 @@
- + - +
Name <%= @client.name %>
Uname <%= @client.uname %>
Active Jobs <%= @client.running_jobs %>
Last Backup <%= @client.last_job_date_formatted %>
File Retention + File Retention + <%= @client.file_retention_days %> days
Job Retention + Job Retention + <%= @client.job_retention_days %> days
Total Space Used <%= number_to_human_size @client.backup_jobs_size %>
Client Quota <%= number_to_human_size @client.quota %>
Space Used % <% if @client.quota.to_f > 0 %> <%= pretty_percentage(@client.backup_jobs_size.to_f / @client.quota, @client.quota) %> <% end %>
Files count <%= number_by_magnitude(@client.files_count) %>
diff --git a/app/views/clients/_pending_clients.html.erb b/app/views/clients/_pending_clients.html.erb index 0ada35a..d77226a 100644 --- a/app/views/clients/_pending_clients.html.erb +++ b/app/views/clients/_pending_clients.html.erb @@ -1,21 +1,27 @@

My Pending Clients

- - - + + + <%= render partial: 'hosts/host', collection: @hosts %>
Name FQDN Port TokenFileRetention (days)JobRetention (days)Verified + File Retention + + Job Retention + + Verified + Created At
diff --git a/app/views/hosts/_host_details.html.erb b/app/views/hosts/_host_details.html.erb index 2f1b33d..32b319c 100644 --- a/app/views/hosts/_host_details.html.erb +++ b/app/views/hosts/_host_details.html.erb @@ -1,73 +1,79 @@
- + - + - +
Name <%= @host.name %>
FQDN <%= @host.fqdn %>
FDPort <%= @host.port %>
Token ********
File Retention + File Retention + <%= @host.file_retention %> days
Job Retention + Job Retention + <%= @host.job_retention %> days
Verified + 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 Backup service', 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 %>