Skip to content

Commit

Permalink
added link to signin page on vote buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Sep 24, 2018
1 parent 1d0e20e commit bedefd5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/resources/templates/macro.vm
Expand Up @@ -600,18 +600,21 @@
<div class="votebox ${sizeClass}">
#if($votable.votes && $votable.votes != 0)#set($_vvotes = $votable.votes)#else#set($_vvotes = "&nbsp;&nbsp;")#end
#if (!$authenticated || ($authenticated && $votable.creatorid == $authUser.id))
<i class="fa fa-chevron-up upvote grey-text mrs" title="Vote up"></i>
<i class="fa fa-chevron-down downvote grey-text mrs" title="Vote down"></i>
<span class="votecount">$!_vvotes</span>
<a href="${signinlink}?returnto=$!{returnto}">
<i class="fa fa-chevron-up upvote grey-text mrs" title="Vote up"></i>
</a>
<a href="${signinlink}?returnto=$!{returnto}">
<i class="fa fa-chevron-down downvote grey-text mrs" title="Vote down"></i>
</a>
#else
<a href="$voteuplink/$!votable.type/$!votable.id" class="upvote votelink" title="Vote up">
<i class="fa fa-chevron-up upvote mrs" title="Vote up"></i>
</a>
<a href="$votedownlink/$!votable.type/$!votable.id" class="downvote votelink" title="Vote down">
<i class="fa fa-chevron-down downvote mrs" title="Vote down"></i>
</a>
<span class="votecount">$!_vvotes</span>
#end
<span class="votecount">$!_vvotes</span>
</div>
#end
#end
Expand Down

0 comments on commit bedefd5

Please sign in to comment.