This commit is contained in:
syuilo 2018-02-23 21:45:59 +09:00
parent 96bc49adc6
commit cd9fc9a717
7 changed files with 97 additions and 99 deletions

View file

@ -1,15 +1,15 @@
<template>
<div class="mk-post-preview">
<a class="avatar-anchor" :href="`/${post.user.username}`">
<router-link class="avatar-anchor" :to="`/${post.user.username}`">
<img class="avatar" :src="`${post.user.avatar_url}?thumbnail&size=64`" alt="avatar"/>
</a>
</router-link>
<div class="main">
<header>
<a class="name" :href="`/${post.user.username}`">{{ post.user.name }}</a>
<router-link class="name" :to="`/${post.user.username}`">{{ post.user.name }}</router-link>
<span class="username">@{{ post.user.username }}</span>
<a class="time" :href="`/${post.user.username}/${post.id}`">
<router-link class="time" :to="`/${post.user.username}/${post.id}`">
<mk-time :time="post.created_at"/>
</a>
</router-link>
</header>
<div class="body">
<mk-sub-post-content class="text" :post="post"/>