% if (typeof treePath === 'undefined') { %>
<%= getLabel(obj, highlight) %>
<% } else if (treePath.length > 3) { %>
<%= getLabel(treePath[0], highlight) %>
/
...
/
<%= getLabel(treePath[treePath.length - 1], highlight) %>
<% } else { %>
<% for (var i = 0; i < treePath.length; i++) { %>
<%= getLabel(treePath[i], highlight) %>
<% if (i !== treePath.length - 1) { %>
/
<% } %>
<% } %>
<% } %>
<% if (id === null) { %>
<%= _.__(newKey) %>
<% } %>