<% if (ctx.canFavorite) { %> <% if (ctx.ownFavorite) { %> <% } else { %> <% } %> <% } else { %> <% } %> add to favorites <%- ctx.favoriteCount %>