diff --git a/app/views/hosts/_header.html.erb b/app/views/hosts/_header.html.erb index 505c035..3d78b94 100644 --- a/app/views/hosts/_header.html.erb +++ b/app/views/hosts/_header.html.erb @@ -1,31 +1,19 @@ -
- <% if @host.can_be_disabled? %> - <%= link_to 'Disable client', disable_host_path(@host), method: :post, - data: { confirm: 'This will disable the client. Are you sure?' }, - class: "btn btn-warning", role: "button" %> - <% end %> - - <%= link_to 'Remove client', host_path(@host), method: :delete, - data: { confirm: 'This will remove your client from the Backup service. Are you sure?' }, - class: "btn btn-danger", role: "button" %> -
-

Configuration for <%= @host.name %> <%= host_status_label(@host) %>



diff --git a/app/views/hosts/_host_details.html.erb b/app/views/hosts/_host_details.html.erb index 32b319c..54e0e8f 100644 --- a/app/views/hosts/_host_details.html.erb +++ b/app/views/hosts/_host_details.html.erb @@ -1,79 +1,105 @@
Name <%= @host.name %>
FQDN <%= @host.fqdn %>
FDPort <%= @host.port %>
Token ********
File Retention <%= @host.file_retention %> days
Job Retention <%= @host.job_retention %> days
Verified <% if @host.verified? %> yes <% else %> no <% end %>
Created <%= I18n.l(@host.created_at, format: :long) %>
- <%= link_to 'Edit', edit_host_path(@host), class: "btn btn-primary", role: "button" %> + <%= link_to edit_host_path(@host), class: "btn btn-default", role: "button" do %> + + Edit + <% end %> +
+ + <% if @host.can_be_disabled? %> +
+ <%= link_to disable_host_path(@host), method: :post, + data: { confirm: 'This will disable the client. Are you sure?' }, + class: "btn btn-default", role: "button" do %> + + Disable + <% end %> +
+ <% end %> + +
+ <%= link_to host_path(@host), method: :delete, + data: { confirm: 'This will remove your client from the Backup service. Are you sure?' }, + class: "btn btn-default", role: "button" do %> + + Remove + <% end %>
<% if @host.needs_dispatch? %>
- <%= link_to 'Deploy Changes', submit_config_host_path(@host), method: :post, - class: 'btn btn-success', role: 'button' %> + <%= link_to submit_config_host_path(@host), method: :post, + class: 'btn btn-success', role: 'button' do %> + + Deploy Changes + <% end %>
<% end %> <% if @host.needs_revoke? %>
<%= link_to 'Remove From Backup service', revoke_host_path(@host), method: :delete, class: 'btn btn-danger', role: 'button' %>
<% end %>

<% if @host.client %>
<%= link_to "Back to #{@host.name} client".html_safe, client_path(@host.client) %>
<% end %>