Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Sun, May 18, 1:51 AM
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 @@
<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 data-toggle="tooltip" title="Defines the length of time that the File records will be available">
+ File Retention <label class="glyphicon glyphicon-question-sign"></label>
+ </td>
<td><%= @client.file_retention_days %> days</td>
</tr>
<tr>
- <td>Job Retention</td>
+ <td data-toggle="tooltip" title="Defines the length of time that the Job records will be available">
+ Job Retention <label class="glyphicon glyphicon-question-sign"></label>
+ </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>
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 @@
<h1>My Pending Clients</h1>
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>FQDN</th>
<th>Port</th>
<th>Token</th>
- <th>FileRetention (days)</th>
- <th>JobRetention (days)</th>
- <th>Verified</th>
+ <th data-toggle="tooltip" title="Defines the length of time that the File records will be available">
+ File Retention <label class="glyphicon glyphicon-question-sign"></label>
+ </th>
+ <th data-toggle="tooltip" title="Defines the length of time that the Job records will be available">
+ Job Retention <label class="glyphicon glyphicon-question-sign"></label>
+ </th>
+ <th data-toggle="tooltip" title="Determines if a client is backups approved">
+ Verified <label class="glyphicon glyphicon-question-sign"></label>
+ </th>
<th>Created At</th>
</tr>
</thead>
<tbody>
<%= render partial: 'hosts/host', collection: @hosts %>
</tbody>
</table>
</div>
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 @@
<div class="col-xs-4">
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
<tr>
<td><b>Name</b></td>
<td><%= @host.name %></td>
</tr>
<tr>
<td><b>FQDN</b></td>
<td><%= @host.fqdn %></td>
</tr>
<tr>
<td><b>FDPort</b></td>
<td><%= @host.port %></td>
</tr>
<tr>
<td><b>Token</b></td>
<td>********</td>
</tr>
<tr>
- <td><b>File Retention</b></td>
+ <td data-toggle="tooltip" title="Defines the length of time that the File records will be available">
+ <b>File Retention</b> <label class="glyphicon glyphicon-question-sign"></label>
+ </td>
<td><%= @host.file_retention %> days</td>
</tr>
<tr>
- <td><b>Job Retention</b></td>
+ <td data-toggle="tooltip" title="Defines the length of time that the Job records will be available">
+ <b>Job Retention</b> <label class="glyphicon glyphicon-question-sign"></label>
+ </td>
<td><%= @host.job_retention %> days</td>
</tr>
<tr>
- <td><b>Verified</b></td>
+ <td data-toggle="tooltip" title="Determines if a client is backups approved">
+ <b>Verified</b> <label class="glyphicon glyphicon-question-sign"></label>
+ </td>
<td>
<% if @host.verified? %>
<span class="label label-success">yes</span>
<% else %>
<span class="label label-danger">no</span>
<% end %>
</td>
</tr>
<tr>
<td><b>Created</b></td>
<td><%= I18n.l(@host.created_at, format: :long) %></td>
</tr>
</table>
</div>
<div class='row'>
<div class='col-xs-2'>
<%= link_to 'Edit', edit_host_path(@host), class: "btn btn-primary", role: "button" %>
</div>
<% if @host.needs_dispatch? %>
<div class='col-xs-4 pull-right text-right'>
<%= link_to 'Deploy Changes', submit_config_host_path(@host), method: :post,
class: 'btn btn-success', role: 'button' %>
</div>
<% end %>
<% if @host.needs_revoke? %>
<div class='col-xs-4 pull-right text-right'>
<%= link_to 'Remove From Backup service', revoke_host_path(@host), method: :delete,
class: 'btn btn-danger', role: 'button' %>
</div>
<% end %>
</div>
<br />
<div class='row'>
<% if @host.client %>
<div class='col-xs-12 text-right'>
<%= link_to "Back to <b>#{@host.name}</b> client".html_safe, client_path(@host.client) %>
</div>
<% end %>
</div>
</div>

Event Timeline