2016-06-11 17:41:28 +02:00
|
|
|
<% if (ctx.canFavorite) { %>
|
|
|
|
<% if (ctx.ownFavorite) { %>
|
2016-08-22 01:25:10 +02:00
|
|
|
<a href class='remove-favorite'>
|
2016-06-11 17:41:28 +02:00
|
|
|
<i class='fa fa-heart'></i>
|
|
|
|
<% } else { %>
|
2016-08-22 01:25:10 +02:00
|
|
|
<a href class='add-favorite'>
|
2016-06-11 17:41:28 +02:00
|
|
|
<i class='fa fa-heart-o'></i>
|
|
|
|
<% } %>
|
|
|
|
<% } else { %>
|
|
|
|
<a class='add-favorite inactive'>
|
|
|
|
<i class='fa fa-heart-o'></i>
|
|
|
|
<% } %>
|
|
|
|
<span class='vim-nav-hint'>add to favorites</span>
|
|
|
|
</a>
|
2016-06-23 11:41:52 +02:00
|
|
|
<span class='value'><%- ctx.favoriteCount %></span>
|