<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2013 %>

<%= t_label 'licenses.primary_license_header.hardware_id'%>

<%= @hardware_hash %>

<%= t_label 'common.agents'%>
<% if @license_info.getPrimaryLicense().isTierKey()%> <%end%> <% if @agents.length > 0 @tiers = Agent::AGENT_TIERS @tiers.each do |tier| unless tier == Agent::TIER_UNDEFINED @licenses = @license_info.getPrimaryLicense().getTierPoints(tier) @used = Agent.count(:all, :conditions => {:tier => tier, :allocate_license => true}) @available = (@licenses > @used)? @licenses - @used : 0 else @licenses = "-" @used = "-" @available = "-" end %> <% if @license_info.getPrimaryLicense().isTierKey() %> <%end%> <% end else %> <% end %>
<%= t 'common.tier' %> <%= t 'common.registered' %><%= t 'common.licenses' %> <%= t 'common.used' %> <%= t 'common.available' %>
<%= @agents[0].agent_tier(tier)%> <%= Agent.count(:all, :conditions => {:tier => tier}) %><% if @license_info.getPrimaryLicense().isUnlimitedTier(tier) %><%= t 'common.unlimited'%><% else %><%= @licenses %><% end %> <%= @used %> <% if @license_info.getPrimaryLicense().isUnlimitedTier(tier) %> - <% else %><%= @available %><% end %>
<%= t 'licenses.no_available_agents' %>