app/views/foreman/smart_proxies/show.html.erb
<% if @smart_proxy.pulp_mirror? -%>
<div ng-controller="CapsuleContentController">
<%= render :template => 'smart_proxies/show' %>
</div>
<% elsif @smart_proxy.pulp_primary? -%>
<div ng-controller="PulpPrimaryController">
<%= render :template => 'smart_proxies/show' %>
</div>
<% else -%>
<%= render :template => 'smart_proxies/show' %>
<% end -%>