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_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_simple_config? %>
<%= link_to new_host_simple_config_path(@host), role: 'button', class: 'btn btn-default' do %> Configure <% end %>
<% end %> <% if @host.needs_dispatch? %>
<%= 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 %>