Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Sat, Mar 21, 11:34 AM
diff --git a/app/views/clients/_client_details.html.erb b/app/views/clients/_client_details.html.erb
index d82e4e9..28aa859 100644
--- a/app/views/clients/_client_details.html.erb
+++ b/app/views/clients/_client_details.html.erb
@@ -1,59 +1,64 @@
<div class="col-xs-4">
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed ">
<tr>
<td>Name</td>
<td><%= @client.name %></td>
</tr>
<tr>
<td>Uname</td>
<td><%= @client.uname %></td>
</tr>
<tr>
<td>Active Jobs</td>
<td><%= @client.running_jobs %></td>
</tr>
<tr>
<td>Last Backup</td>
<td>
<%= @client.last_job_date_formatted %>
</td>
</tr>
<tr>
<td>File Retention</td>
<td><%= @client.file_retention_days %> days</td>
</tr>
<tr>
<td>Job Retention</td>
<td><%= @client.job_retention_days %> days</td>
</tr>
<tr>
<td>Total Space Used</td>
<td><%= number_to_human_size @client.backup_jobs_size %></td>
</tr>
<tr>
<td>Client Quota</td>
<td><%= number_to_human_size @client.quota %></td>
</tr>
<tr>
<td>Space Used %</td>
<td>
<% if @client.quota.to_f > 0 %>
<%= pretty_percentage(@client.backup_jobs_size.to_f / @client.quota, @client.quota) %>
<% end %>
</td>
</tr>
<tr>
<td>Files count</td>
<td><%= number_by_magnitude(@client.files_count) %></td>
</tr>
</table>
</div>
<div>
<% 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 %>
+ <label class="glyphicon glyphicon-download-alt text-primary"></label>
+ Download Config
+ <% end %>
</div>
</div>
diff --git a/app/views/hosts/_fd_config.html.erb b/app/views/hosts/_fd_config.html.erb
index 60cc110..74eee07 100644
--- a/app/views/hosts/_fd_config.html.erb
+++ b/app/views/hosts/_fd_config.html.erb
@@ -1,23 +1,26 @@
<div class="col-xs-4">
<h3>Client FileDaemon Config</h3>
<pre class="pre">
<%= @host.bacula_fd_filedaemon_config %>
</pre>
</div>
<div class="col-xs-4">
<h3>Client Director Config</h3>
<pre class="pre">
<%= @host.bacula_fd_director_config %>
</pre>
</div>
<div class="col-xs-4">
<h3>Client Messages Config</h3>
<pre class="pre">
<%= @host.bacula_fd_messages_config %>
</pre>
</div>
<div class='col-xs-10'>
- <%= link_to 'Download Config', fd_config_host_path(@host, token: current_user.token),
- class: "btn btn-success", role: "button", download: 'fd_config' %>
+ <%= link_to fd_config_host_path(@host, token: current_user.token),
+ class: "btn btn-default", role: "button", download: 'fd_config' do %>
+ <label class="glyphicon glyphicon-download-alt text-primary"></label>
+ Download Config
+ <% end %>
</div>

Event Timeline