Project

General

Profile

« Previous | Next » 

Revision 4e85a944

Added by Ohad Levy about 14 years ago

  • ID 4e85a9444b734150b1da2afd8b7611f599ed6102

fixes #233 - In the "Show" page for a Host, Build link should not be visible when Unattended is false.

View differences:

app/views/hosts/show.html.erb
<%= link_to "Facts", facts_host_path(@host), :title => "Browse host facts" %> |
<%= link_to "Reports", reports_host_path(@host), :title => "Browse host reports" %> |
<%= link_to "YAML", externalNodes_host_path(@host), :title => "Puppet external nodes YAML dump" %> |
<%= link_to_if @host.build == false, "Build", setBuild_host_path(@host), :title => "prepare this host for build" %> |
<%= link_to_if @host.can_be_build?, "Build", setBuild_host_path(@host), :title => "prepare this host for build" %> |
<span title="trigger a puppetrun on a node; requires that Puppet run is enabled">
<%= link_to_if SETTINGS[:puppetrun], "Run Puppet", puppetrun_host_path(@host) %>
</span> |

Also available in: Unified diff