diff --git a/app/views/clients/_clients.html.erb b/app/views/clients/_clients.html.erb new file mode 100644 index 0000000..fe6cd25 --- /dev/null +++ b/app/views/clients/_clients.html.erb @@ -0,0 +1,24 @@ +

My Clients

+ +
+ + + + + + + + + + + + + + + + + + <%= render partial: 'client', collection: @clients %> + +
NameUnameActive JobsLast BackupFile Ret. (days)Job Ret. (days)Space UsedQuotaSpace Used %Files
+
diff --git a/app/views/clients/_pending_clients.html.erb b/app/views/clients/_pending_clients.html.erb new file mode 100644 index 0000000..0ada35a --- /dev/null +++ b/app/views/clients/_pending_clients.html.erb @@ -0,0 +1,21 @@ +

My Pending Clients

+ +
+ + + + + + + + + + + + + + + <%= render partial: 'hosts/host', collection: @hosts %> + +
NameFQDNPortTokenFileRetention (days)JobRetention (days)VerifiedCreated At
+
diff --git a/app/views/clients/index.html.erb b/app/views/clients/index.html.erb index 48c0b36..8afebcd 100644 --- a/app/views/clients/index.html.erb +++ b/app/views/clients/index.html.erb @@ -1,54 +1,11 @@
<%= link_to 'New Client', new_host_path, class: 'btn btn-primary', role: 'button' %>
-

My Clients

- -
- - - - - - - - - - - - - - - - - - <%= render partial: 'client', collection: @clients %> - -
NameUnameActive JobsLast BackupFile Ret. (days)Job Ret. (days)Space UsedQuotaSpace Used %Files
-
- -<% if @hosts.any? %> -

My Pending Clients

- -
- - - - - - - - - - - - - - - <%= render partial: 'hosts/host', collection: @hosts %> - -
NameFQDNPortTokenFileRetention (days)JobRetention (days)VerifiedCreated At
-
+<% if @hosts.empty? && @clients.empty? %> +

You have not configured any hosts yet

+<% else %> + <%= render partial: 'clients' if @clients.any? %> + <%= render partial: 'pending_clients' if @hosts.any? %> + <%= render partial: 'client_graphs', locals: { path: clients_path } if @clients.any? %> <% end %> - -<%= render partial: 'client_graphs', locals: { path: clients_path } %>