website_item.html 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <!-- template that displays individual website entries -->
  2. <template name="website_item">
  3. <li class="list-group-item row">
  4. <div class="col-md-3">
  5. {{! Do not display the details link if this is already the details page. }}
  6. {{#unless onPage }}
  7. <a href="/site/{{ _id }}"><span class="glyphicon glyphicon-list-alt"></span></a>
  8. {{/unless}}
  9. <a href="{{url}}">{{title}}</a>
  10. </div>
  11. <div class="col-md-4">
  12. {{description}}
  13. </div>
  14. <div class="col-md-3">
  15. <p>Added on {{ postDate }}.</p>
  16. <p>Votes: + {{ plusVotes }} - {{ minusVotes }} &rArr; {{ score }}</p>
  17. </div>
  18. <div class="col-md-2">
  19. {{#if isLoggedIn }}
  20. <a href="#" class="btn btn-default js-upvote {{ upVoted }}">
  21. <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
  22. </a>
  23. <a href="#" class="btn btn-default js-downvote {{ downVoted }}">
  24. <span class="glyphicon glyphicon-minus-sign" aria-hidden="true"></span>
  25. </a>
  26. <!-- you will be putting your up and down vote buttons in here! -->
  27. {{/if}}
  28. </div>
  29. </li>
  30. </template>