2018-04-07 12:30:37 -05:00
|
|
|
<template>
|
|
|
|
<div class="mk-sub-note-content">
|
|
|
|
<div class="body">
|
2018-11-08 12:44:35 -06:00
|
|
|
<span v-if="note.isHidden" style="opacity: 0.5">{{ $t('private') }}</span>
|
|
|
|
<span v-if="note.deletedAt" style="opacity: 0.5">{{ $t('deleted') }}</span>
|
2018-11-05 10:40:11 -06:00
|
|
|
<a class="reply" v-if="note.replyId"><fa icon="reply"/></a>
|
2019-01-18 17:45:12 -06:00
|
|
|
<mfm v-if="note.text" :text="note.text" :author="note.user" :i="$store.state.i" :custom-emojis="note.emojis"/>
|
2018-10-19 17:01:09 -05:00
|
|
|
<a class="rp" v-if="note.renoteId" :href="`/notes/${note.renoteId}`">RN: ...</a>
|
2018-04-07 12:30:37 -05:00
|
|
|
</div>
|
2018-09-05 05:32:46 -05:00
|
|
|
<details v-if="note.files.length > 0">
|
2018-11-08 12:44:35 -06:00
|
|
|
<summary>({{ this.$t('media-count').replace('{}', note.files.length) }})</summary>
|
2018-09-05 05:32:46 -05:00
|
|
|
<mk-media-list :media-list="note.files"/>
|
2018-04-07 12:30:37 -05:00
|
|
|
</details>
|
|
|
|
<details v-if="note.poll">
|
2018-11-08 12:44:35 -06:00
|
|
|
<summary>{{ $t('poll') }}</summary>
|
2018-04-07 12:30:37 -05:00
|
|
|
<mk-poll :note="note"/>
|
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-08 12:44:35 -06:00
|
|
|
import i18n from '../../../i18n';
|
2018-04-07 12:30:37 -05:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-08 12:44:35 -06:00
|
|
|
i18n: i18n('desktop/views/components/sub-note-content.vue'),
|
2018-04-07 12:30:37 -05:00
|
|
|
props: ['note']
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.mk-sub-note-content
|
|
|
|
overflow-wrap break-word
|
|
|
|
|
|
|
|
> .body
|
|
|
|
> .reply
|
|
|
|
margin-right 6px
|
|
|
|
color #717171
|
|
|
|
|
|
|
|
> .rp
|
|
|
|
margin-left 4px
|
|
|
|
font-style oblique
|
2018-09-27 09:09:23 -05:00
|
|
|
color var(--renoteText)
|
2018-04-07 12:30:37 -05:00
|
|
|
|
|
|
|
mk-poll
|
|
|
|
font-size 80%
|
|
|
|
|
|
|
|
</style>
|