Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Sun, May 18, 9:08 PM
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 @@
-<div class="col-xs-4">
+<div class="col-xs-12 col-sm-10 col-md-4">
+ <h3>Client Details</h3>
<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 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 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 data-toggle="tooltip" title="The total disk size that this client's backups use">
Total Space Used <label class="glyphicon glyphicon-question-sign"></label>
</td>
<td><%= number_to_human_size @client.backup_jobs_size %></td>
</tr>
<tr>
<td data-toggle="tooltip" title="The maximum disk size that this client's backups are allowed to use">
Client Quota <label class="glyphicon glyphicon-question-sign"></label>
</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/_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 @@
-<div class="col-xs-12">
+<div class="col-sm-12 col-md-8">
+ <h3>Backup Jobs</h3>
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Fileset</th>
<th>Schedule</th>
<th>Created</th>
<th>Last Backup</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<%= render partial: 'clients/job', collection: @client.persisted_jobs, object: :job %>
</tbody>
</table>
</div>
</div>
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' %>
<div class="row">
- <div class="col-xs-4">
- <h3>Client Details</h3>
- </div>
- <div class="col-xs-6">
- <h3>Backup Jobs</h3>
- </div>
-</div>
-
-<div class="row">
<%= render partial: 'client_details' %>
- <div class="col-xs-8">
- <div class="row">
- <%= render partial: 'jobs' %>
- </div>
- </div>
+ <%= render partial: 'jobs' %>
</div>
<%= render partial: 'actions' %>
<%= render partial: 'jobs/modals' %>

Event Timeline