<% if (detailActions.length > 0) {%>
<%_ for (let p of detailActions) { %> <%_}%>
<%}%>