website_item.html 738 B

12345678910111213141516171819
  1. <!-- template that displays individual website entries -->
  2. <template name="website_item">
  3. <li>
  4. <a href="{{url}}">{{title}}</a>
  5. <p>
  6. {{description}}
  7. </p>
  8. <p>Added on {{ postDate }}. Votes: Plus = {{ plusVotes }} / Minus = {{ minusVotes }} / Score = {{ score }}.</p>
  9. {{#if isLoggedIn }}
  10. <a href="#" class="btn btn-default js-upvote {{ upVoted }}">
  11. <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
  12. </a>
  13. <a href="#" class="btn btn-default js-downvote {{ downVoted }}">
  14. <span class="glyphicon glyphicon-minus-sign" aria-hidden="true"></span>
  15. </a>
  16. <!-- you will be putting your up and down vote buttons in here! -->
  17. {{/if}}
  18. </li>
  19. </template>