diff --git a/app/views/clients/_client_details.html.erb b/app/views/clients/_client_details.html.erb index 28aa859..f2ce313 100644 --- a/app/views/clients/_client_details.html.erb +++ b/app/views/clients/_client_details.html.erb @@ -1,64 +1,85 @@
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) %>
<% if @client.is_backed_up? %> <%= button_or_disabled(@client.host.blocked?, 'Restore Files', restore_client_path(@client), class: "btn btn-warning", role: "button") %> <% end %> <%= link_to fd_config_host_path(@client.host, token: current_user.token), class: "btn btn-default", role: "button", download: 'fd_config' do %> Download Config <% end %> + + <%= link_to '#', data: { toggle: 'modal', target: "#js-fd-config"} do %> + + <% end %>
+ + diff --git a/app/views/hosts/_fd_config.html.erb b/app/views/hosts/_fd_config.html.erb index 74eee07..6445a96 100644 --- a/app/views/hosts/_fd_config.html.erb +++ b/app/views/hosts/_fd_config.html.erb @@ -1,26 +1,46 @@

Client FileDaemon Config

 <%= @host.bacula_fd_filedaemon_config %>
   

Client Director Config

 <%= @host.bacula_fd_director_config %>
   

Client Messages Config

 <%= @host.bacula_fd_messages_config %>
   
<%= link_to fd_config_host_path(@host, token: current_user.token), class: "btn btn-default", role: "button", download: 'fd_config' do %> Download Config <% end %> + <%= link_to '#', data: { toggle: 'modal', target: "#js-fd-config"} do %> + + <% end %>
+ +