123456789101112131415161718192021222324252627282930 |
- <!-- template that displays individual website entries -->
- <template name="website_item">
- <li class="list-group-item row">
- <div class="col-md-3">
- {{! Do not display the details link if this is already the details page. }}
- {{#unless onPage }}
- <a href="/site/{{ _id }}"><span class="glyphicon glyphicon-list-alt"></span></a>
- {{/unless}}
- <a href="{{url}}">{{title}}</a>
- </div>
- <div class="col-md-4">
- {{description}}
- </div>
- <div class="col-md-3">
- <p>Added on {{ postDate }}.</p>
- <p>Votes: + {{ plusVotes }} - {{ minusVotes }} ⇒ {{ score }}</p>
- </div>
- <div class="col-md-2">
- {{#if isLoggedIn }}
- <a href="#" class="btn btn-default js-upvote {{ upVoted }}">
- <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
- </a>
- <a href="#" class="btn btn-default js-downvote {{ downVoted }}">
- <span class="glyphicon glyphicon-minus-sign" aria-hidden="true"></span>
- </a>
- <!-- you will be putting your up and down vote buttons in here! -->
- {{/if}}
- </div>
- </li>
- </template>
|