<% if (has_img && !is_root) -%>
<% elsif (!is_root) -%>
<% end -%> <% if (df.isGroup) -%> <% end -%>