<% } %>
<% prevG = g; %>
<% const d = latest[p.name]; %>
<% const live = lastLive[p.name]; %>
<% const af = accessFlags[p.name] || { enabled: true, protected: false }; %>
<% const ps = !af.enabled ? 'deactivated' : (pm2[p.name] || 'unknown'); %>
<% const info = infos[p.name]; %>
<% const primary = info && info.DOMAINS ? String(info.DOMAINS).split(',')[0].trim() : (info && info.SYSTEM_DOMAIN ? String(info.SYSTEM_DOMAIN).trim() : ''); %>
<% const commitLine = d ? (d.commit_msg || d.step || d.status) : 'no deployments yet'; %>
<% if (primary) { %>

<% } %>
<% if (typeof user !== 'undefined' && user && user.role === 'admin' && typeof owners !== 'undefined' && owners[p.owner_user_id] && owners[p.owner_user_id] !== user.username) { %>
<%= owners[p.owner_user_id] %>
<% } %>
<% if (d) { %>
<%= h.depLabel(d.status) %>
<% } else { %>
never
<% } %>
<%= commitLine %>
๐ฆ <%= h.repoShort(p.repo_url) %> ยท <%= p.branch %>
<%= ps %>
<% if (af.protected) { %>๐ protected<% } %>
<% } %>
<% } %>