]> git.r.bdr.sh - rbdr/dasein/blame - app/components/comment.js
🔧 Update version in package.json
[rbdr/dasein] / app / components / comment.js
CommitLineData
9b1f50fe
RBR
1import Vue from 'vue';
2
3const internals = {};
4
5export default internals.CommentComponent = Vue.component('comment', {
6 template: '<article class="comment">' +
7 '<aside class="comment-meta">' +
8 '<img :src="comment.userImage" v-bind:alt="\'Avatar for @\' + comment.userId">' +
9 '<a v-bind:href="\'https://twitter.com/\' + comment.userId">{{comment.userName}}</a> said on ' +
10 '<time v-bind:datetime="comment.timestamp | datetime">{{comment.timestamp | usertime}}</time>' +
11 '</aside>' +
12 '<div class="comment-content">{{comment.content}}</div>' +
13 '</article>',
14
15 props: ['comment']
16});
17