client/posts: add Vimperator hints to vote buttons
This commit is contained in:
parent
e9fb93d5c8
commit
07603be35e
1 changed files with 12 additions and 5 deletions
|
@ -46,7 +46,8 @@
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<i class='fa fa-thumbs-o-up'></i>
|
<i class='fa fa-thumbs-o-up'></i>
|
||||||
<% } %>
|
<% } %>
|
||||||
<span class='hint'></span>
|
<span class='vim-nav-hint'>upvote</span>
|
||||||
|
<span class='vim-nav-hint'>like</span>
|
||||||
</a>
|
</a>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<a class='upvote inactive'>
|
<a class='upvote inactive'>
|
||||||
|
@ -61,7 +62,8 @@
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<i class='fa fa-thumbs-o-down'></i>
|
<i class='fa fa-thumbs-o-down'></i>
|
||||||
<% } %>
|
<% } %>
|
||||||
<span class='hint'></span>
|
<span class='vim-nav-hint'>downvote</span>
|
||||||
|
<span class='vim-nav-hint'>dislike</span>
|
||||||
</a>
|
</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,13 +71,18 @@
|
||||||
<div class='fav'>
|
<div class='fav'>
|
||||||
<% if (ctx.canFavoritePosts) { %>
|
<% if (ctx.canFavoritePosts) { %>
|
||||||
<% if (ctx.post.ownFavorite) { %>
|
<% if (ctx.post.ownFavorite) { %>
|
||||||
<a class='remove-favorite' href='#'><i class='fa fa-heart'></i></a>
|
<a class='remove-favorite' href='#'>
|
||||||
|
<i class='fa fa-heart'></i>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<a class='add-favorite' href='#'><i class='fa fa-heart-o'></i></a>
|
<a class='add-favorite' href='#'>
|
||||||
|
<i class='fa fa-heart-o'></i>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<a class='add-favorite inactive'><i class='fa fa-heart-o'></i></a>
|
<a class='add-favorite inactive'>
|
||||||
|
<i class='fa fa-heart-o'></i>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<span class='vim-nav-hint'>add to favorites</span>
|
||||||
|
</a>
|
||||||
<span class='value'><%= ctx.post.favoriteCount %></span>
|
<span class='value'><%= ctx.post.favoriteCount %></span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue