diff --git a/app/views/clients/_client_details.html.erb b/app/views/clients/_client_details.html.erb index f570be4..5bb6cc1 100644 --- a/app/views/clients/_client_details.html.erb +++ b/app/views/clients/_client_details.html.erb @@ -1,60 +1,61 @@ -
+
+

Client Details

Name <%= @client.name %>
Uname <%= @client.uname %>
Active Jobs <%= @client.running_jobs %>
Last Backup <%= @client.last_job_date_formatted %>
File Retention <%= @client.file_retention_days %> days
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/_jobs.html.erb b/app/views/clients/_jobs.html.erb index a8b8db4..2b49f16 100644 --- a/app/views/clients/_jobs.html.erb +++ b/app/views/clients/_jobs.html.erb @@ -1,20 +1,21 @@ -
+
+

Backup Jobs

<%= render partial: 'clients/job', collection: @client.persisted_jobs, object: :job %>
Name Type Fileset Schedule Created Last Backup Actions
diff --git a/app/views/clients/show.html.erb b/app/views/clients/show.html.erb index b532fb3..baf85df 100644 --- a/app/views/clients/show.html.erb +++ b/app/views/clients/show.html.erb @@ -1,23 +1,10 @@ <%= render partial: 'header' %>
-
-

Client Details

-
-
-

Backup Jobs

-
-
- -
<%= render partial: 'client_details' %> -
-
- <%= render partial: 'jobs' %> -
-
+ <%= render partial: 'jobs' %>
<%= render partial: 'actions' %> <%= render partial: 'jobs/modals' %>