summaryrefslogtreecommitdiff
path: root/client/html/fav.tpl
blob: 7b72a7c0055b7aab19d1864fb2752214201bc305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<% if (ctx.canFavorite) { %>
    <% if (ctx.ownFavorite) { %>
        <a href class='remove-favorite'>
            <i class='fa fa-heart'></i>
    <% } else { %>
        <a href class='add-favorite'>
            <i class='far fa-heart'></i>
    <% } %>
<% } else { %>
    <a class='add-favorite inactive'>
        <i class='far fa-heart'></i>
<% } %>
    <span class='vim-nav-hint'>add to favorites</span>
</a>
<span class='value'><%- ctx.favoriteCount %></span>