2020-05-24 03:46:34 +00:00
|
|
|
<div class="profile <%= profile.parent_profile ? "child-profile hidden" : "" %>" id="profile-<%= profile.name %>">
|
2020-05-22 19:19:17 +00:00
|
|
|
<% display_name = profile.title || profile.name %>
|
|
|
|
<h2 class="profile_title">Profile <%= display_name %> (<%= profile.name %>)</h2>
|
|
|
|
|
|
|
|
<table class="profile-metadata info" id="profile-metadata-<%= profile.name %>">
|
|
|
|
<tr class="profile-version"><th>Version:</th><td><%= profile.version %></td></tr>
|
|
|
|
<% if profile.summary %>
|
|
|
|
<tr class="profile-summary"><th>Summary:</th><td><%= profile.summary %></td></tr>
|
|
|
|
<% end %>
|
2020-07-02 13:20:43 +00:00
|
|
|
<% if profile.status != "loaded" %>
|
|
|
|
<tr class="profile-status"><th>Status:</th><td><%= profile.status %></td></tr>
|
|
|
|
<% end %>
|
|
|
|
<% if profile.status_message && !profile.status_message.empty? %>
|
2020-06-30 14:09:15 +00:00
|
|
|
<tr class="profile-status-message"><th>Status Message:</th><td><%= profile.status_message %></td></tr>
|
2020-05-22 19:19:17 +00:00
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<% if profile.status == "loaded" %>
|
|
|
|
<% profile.controls.each do |control| %>
|
|
|
|
<%= ERB.new(File.read(template_path + "/control.html.erb"), nil, nil, "_ctl").result(binding) %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|