diff --git a/app/views/clients/index.html.erb b/app/views/clients/index.html.erb index 8afebcd..1f0d8e9 100644 --- a/app/views/clients/index.html.erb +++ b/app/views/clients/index.html.erb @@ -1,11 +1,24 @@ -
- <%= link_to 'New Client', new_host_path, class: 'btn btn-primary', role: 'button' %> -
- <% if @hosts.empty? && @clients.empty? %> -

You have not configured any hosts yet

+
+
+
+

You have not configured any hosts yet

+
+
+

You should follow the application procedure as described here. +

+

When your application will be approved, you may proceed with your clients configuration

+
+ <%= link_to 'New Client', new_host_path, class: 'btn btn-primary', role: 'button' %> +
+
+
<% else %> +
+ <%= link_to 'New Client', new_host_path, class: 'btn btn-primary', role: 'button' %> +
+ <%= 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 %>