This commit is contained in:
Ulf Gebhardt 2019-04-09 11:09:03 +02:00
parent 42e39a6973
commit b235c640c5
No known key found for this signature in database
GPG Key ID: 44C888923CC8E7F3

View File

@ -4,11 +4,18 @@
:image="post.image"
:class="{'post-card': true, 'disabled-content': post.disabled}"
>
<a v-router-link class="post-link" :href="href(post)">{{ post.title }}</a>
<a
v-router-link
class="post-link"
:href="href(post)"
>{{ post.title }}</a>
<!-- eslint-disable vue/no-v-html -->
<!-- TODO: replace editor content with tiptap render view -->
<ds-space margin-bottom="large">
<div class="hc-editor-content" v-html="excerpt"/>
<div
class="hc-editor-content"
v-html="excerpt"
/>
</ds-space>
<!-- eslint-enable vue/no-v-html -->
<ds-space>
@ -17,12 +24,20 @@
align="right"
size="small"
color="soft"
>{{ post.createdAt | dateTime('dd. MMMM yyyy HH:mm') }}</ds-text>
>
{{ post.createdAt | dateTime('dd. MMMM yyyy HH:mm') }}
</ds-text>
</ds-space>
<ds-space margin="small" style="position: absolute; bottom: 44px;">
<ds-space
margin="small"
style="position: absolute; bottom: 44px;"
>
<!-- TODO: find better solution for rendering errors -->
<no-ssr>
<hc-user :user="post.author" :trunc="35"/>
<hc-user
:user="post.author"
:trunc="35"
/>
</no-ssr>
</ds-space>
<template slot="footer">
@ -36,16 +51,20 @@
</div>
<div style="display: inline-block; float: right">
<span :style="{ opacity: post.shoutedCount ? 1 : .5 }">
<ds-icon name="bullhorn"/>
<ds-icon name="bullhorn" />
<small>{{ post.shoutedCount }}</small>
</span>
&nbsp;
<span :style="{ opacity: post.commentsCount ? 1 : .5 }">
<ds-icon name="comments"/>
<ds-icon name="comments" />
<small>{{ post.commentsCount }}</small>
</span>
<no-ssr>
<content-menu resource-type="contribution" :resource="post" :is-owner="isAuthor"/>
<content-menu
resource-type="contribution"
:resource="post"
:is-owner="isAuthor"
/>
</no-ssr>
</div>
</template>