szurubooru/client/html/score.tpl
rr- 6ea129a9ef client/views: escape HTML
This lets client use < > in tag names.
2016-06-23 12:47:56 +02:00

27 lines
832 B
Smarty

<% if (ctx.canScore) { %>
<a class='upvote' href='#'>
<% if (ctx.ownScore == 1) { %>
<i class='fa fa-thumbs-up'></i>
<% } else { %>
<i class='fa fa-thumbs-o-up'></i>
<% } %>
<span class='vim-nav-hint'>upvote</span>
<span class='vim-nav-hint'>like</span>
</a>
<% } else { %>
<a class='upvote inactive'>
<i class='fa fa-thumbs-o-up'></i>
</a>
<% } %>
<span class='value'><%- ctx.score %></span>
<% if (ctx.canScore) { %>
<a class='downvote' href='#'>
<% if (ctx.ownScore == -1) { %>
<i class='fa fa-thumbs-down'></i>
<% } else { %>
<i class='fa fa-thumbs-o-down'></i>
<% } %>
<span class='vim-nav-hint'>downvote</span>
<span class='vim-nav-hint'>dislike</span>
</a>
<% } %>