<% if (viewing) { %>

<%= title %>

<% if (!fromrepo) { %> <% } %> <% if (formfields.profile_version != 0) { %> <% } %> <% if (formfields.profile_version == 0 || fromrepo) { %> <% } else { %> <% } %> <% if (fromrepo) { %> <% } %> <% if (withpublishing) { %> <% if (formfields.profile_published != "") { %> <% } else { %> <% } %> <% } %> <% if (disabled) { %> <% } %> <% if (nodelete) { %> <% } %>
Name: <%- formfields.profile_name %>
Version: <% if (history) { %> <%- formfields.profile_version %> <% } else { %> <%- formfields.profile_version %> <% } %> <% if (version_uuid != latest_uuid) { %> (Latest: <%- latest_version %>) <% } %>
Project: <%- formfields.profile_pid %>
Creator: <%- formfields.profile_creator %>
Updated by: <%- formfields.profile_updater %>
Created:Updated: <%- formfields.profile_created %>
Public: <% if (formfields.profile_who == "public") { %>Yes<% } else { %>No<% } %> (change this setting)
Writable: <% if (formfields.profile_project_write) { %> Project Members <% } else { %> Profile Creator <% } %> <% if (isadmin || iscreator || isleader) { %> (change this setting) <% } %>
Refspec: <%- formfields.profile_reporef %>
Commit: <%- formfields.profile_repohash.substring(0,8) %>
Published: <%- formfields.profile_published %>Not Published!
Disabled:Yes
Lockdown:Yes
<% if (activity) { %> Activity <% } %> <% if (paramsets) { %> Paramsets <% } %>
<% if (fromrepo) { %> <% } %>
<% if (!disabled && gotrspec) { %> <% var url = "instantiate.php?profile=" + version_uuid + "&from=manage-profile"; %> Instantiate <% } %>

<% if (canmodify) { %> Modify <% } %> Profile <%- formfields.profile_pid %>/<%- formfields.profile_name %>

<% } else { %>

<%= title %>

<% } %>
<% if (general_error) { %>

<%- general_error %>

<% } %> <% if (copyuuid) { %> <% } %> <% if (snapuuid) { %> <% if (snapnode_id) { %> <% } %> <% } %> <% if (window.CLONING) { %> <% } %> <% if (_.has(formfields, "portal_converted")) { %> <% } else { %> <% } %>
<% if (viewing) { %> <% } %> <% if (!viewing) { %>
<% if (projects.length == 1) { %> <% } else { %> <% } %>
<% } %>
<% if (! genilib_editor) { %>
<% if (! (fromrepo || window.CLONING)) { %> <% } %> <% if ((viewing && canmodify) && gotrspec && !fromrepo && !gotscript){ %> <% } %> <% if (! (viewing || window.CLONING)) { %> or <% } %>
<% } %> <% if (viewing && fromrepo) { %>
<% } %>
class="hidden" <% } %> >
class="hidden" <% } %> > <% if (isadmin) { %>
Who can instantiate your profile?
checked<% } %> value='public'>
checked<% } %> value='private'>
<% } else { %> <% } %> <% if (0 && (isadmin || iscreator || isleader)) { %>
data-key='profile_project_write' id='profile_project_write' value='checked' type='checkbox'>
<% } else { %> <% } %> <% if (isadmin) { %>
data-key='profile_listed' id='profile_listed' value='checked' type='checkbox'>
data-key='profile_topdog' id='profile_topdog' value='checked' type='checkbox'>
data-key='profile_disabled' id='profile_disabled' value='checked' type='checkbox'>
data-key='profile_nodelete' id='profile_nodelete' value='checked' type='checkbox'>
<% if (window.MAINSITE) { %> List in Examples:
= 0) { %> checked <% } %> type='checkbox'> = 0) { %> checked <% } %> type='checkbox'> = 0) { %> checked <% } %> type='checkbox'> = 0) { %> checked <% } %> type='checkbox'>
<% } else { %>
= 0) { %> checked <% } %> type='checkbox'>
<% } %>
<% } %> <% if (0) { %> <% } %>
<% if (viewing && canmodify) { %> <% } %> <% if (!viewing || canmodify) { %> <% } %> <% if (candelete) { %> <% } %>
<% if (fromrepo) { %> <% } %>
<% if (viewing && Object.keys(versions).length > 1) { %>

Version History

<% if (withpublishing) { %> <% } %> <% _.each(sorted_versions, function(profile) { %> <% if (profile.deleted) { return; } %> <% if (profile.uuid != version_uuid) { %> <% } else { %><% } %> <% if (withpublishing) { %> <% } %> <% }); %>
Vers Description Created    PublishedFrom
<%- profile.version %> <%- profile.description %> <%- profile.created %><%- profile.published %> <% if (profile.parent_uuid) { %> <% if (profile.version == 0) { %> <%- profile.parent_version %> <% } else { %> <% if (versions[profile.parent_version].deleted) { %> <%- profile.parent_version %> <% } else { %> <%- profile.parent_version %> <% } %> <% } %> <% } else { %>   <% } %>
<% } %>