diff --git a/app/views/clients/show.html.erb b/app/views/clients/show.html.erb index 2a34358..ece9b7c 100644 --- a/app/views/clients/show.html.erb +++ b/app/views/clients/show.html.erb @@ -1,53 +1,57 @@

<%= notice %>

+<% if @client.host %> +
+ <%= link_to 'Manage Client', host_path(@client.host), class: "btn btn-primary", role: "button" %> +
+<% end %> +

<%= @client.name %>

Name <%= @client.name %>
Uname <%= @client.uname %>
Active Jobs <%= @client.running_jobs %>
Last Backup <%= @client.last_job_date %>
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 %>
Files count <%= number_by_magnitude(@client.files_count) %>
Auto Prune <%= @client.auto_prune_human %>
- <%= link_to 'New Job', '#', class: "btn btn-primary", role: "button" %> - <%= link_to 'Restore Files', '#', class: "btn btn-success", role: "button" %> + <%= link_to 'Restore Files', '#', class: "btn btn-warning", role: "button" %> <%= link_to 'Take Backup', '#', class: "btn btn-success", role: "button" %> - <%= link_to 'Remove client', '#', class: "btn btn-danger", role: "button" %>

<%= link_to 'Back to clients', clients_path %>