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