/
_configuration_job.html.haml
29 lines (27 loc) · 1.65 KB
/
_configuration_job.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- if @record.try(:name)
#accordion.panel-group
= miq_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do
= render_quadicon(@record, :mode => :icon, :size => 72, :typ => :listnav)
= miq_accordion_panel(_("Properties"), false, "stack_prop") do
%ul.nav.nav-pills.nav-stacked
%li
= link_to_with_icon(_('Summary'),
{:action => 'show', :id => @record, :display => 'main'},
:title => _("Show Summary"))
= miq_accordion_panel(_("Relationships"), false, "stack_rel") do
%ul.nav.nav-pills.nav-stacked
- if role_allows?(:feature => "provider_foreman_view") && @record.ext_management_system
%li
= link_to("#{ui_lookup(:model => @record.ext_management_system.class.to_s)}: #{@record.ext_management_system.name}",
{:controller => "automation_manager", :action => 'explorer', :id => "at-#{to_cid(@record.ext_management_system.id)}"},
:title => _("Show parent %s for this Job") % ui_lookup(:model => @record.ext_management_system.class.to_s))
- if role_allows?(:feature => "service_view") && @record.service
%li
= link_to("#{ui_lookup(:table => "service")}: #{@record.service.name}",
{:controller => "service", :action => 'show', :id => to_cid(@record.service.id)},
:title => _("Show service %s for this Job") % ui_lookup(:table => "service"))
= li_link(:count => @record.number_of(:parameters),
:text => _("Parameters"),
:action => 'parameters',
:record_id => @record.id,
:title => _("Show all Parameters"))