Revision 4d4b84f6
Added by Ohad Levy almost 13 years ago
- ID 4d4b84f6b722874504f508fa92802f6ddee37c11
app/helpers/hosts_and_hostgroups_helper.rb | ||
---|---|---|
end
|
||
end
|
||
|
||
def hostgroup_name group
|
||
return if group.blank?
|
||
content_tag(:span, group.to_s.gsub(group.name, ""), :class => "grey") +
|
||
link_to_if_authorized(h(group.name), hash_for_edit_hostgroup_path(:id => group))
|
||
end
|
||
|
||
def accessible_hostgroups
|
||
hg = (User.current.hostgroups.any? and !User.current.admin?) ? User.current.hostgroups : Hostgroup.all
|
||
hg.sort
|
||
end
|
||
|
||
def image_file_entry item
|
||
# If the host has an explicit image_path then use that
|
||
# Else use the default based upon the host's medium and operatingsystem
|
Also available in: Unified diff
fixes #35 - Allow hostgroup nesting for puppet classes and parameters