convert Upvote to inline template