2021-06-08 04:34:47 -07:00
|
|
|
<template>
|
2021-06-08 04:51:42 -07:00
|
|
|
<span class="MentionsLine">
|
|
|
|
<MentionLink
|
2021-06-10 02:08:31 -07:00
|
|
|
v-for="mention in mentionsComputed"
|
|
|
|
:key="mention.index"
|
2021-06-08 04:51:42 -07:00
|
|
|
class="mention-link"
|
2021-06-10 02:08:31 -07:00
|
|
|
:content="mention.content"
|
|
|
|
:url="mention.url"
|
2021-06-08 04:51:42 -07:00
|
|
|
:first-mention="false"
|
|
|
|
/><span
|
|
|
|
v-if="manyMentions"
|
|
|
|
class="extraMentions"
|
2021-06-08 04:34:47 -07:00
|
|
|
>
|
2021-06-08 04:51:42 -07:00
|
|
|
<span
|
|
|
|
v-if="expanded"
|
|
|
|
class="fullExtraMentions"
|
|
|
|
>
|
|
|
|
<MentionLink
|
|
|
|
v-for="mention in extraMentions"
|
2021-06-10 02:08:31 -07:00
|
|
|
:key="mention.index"
|
2021-06-08 04:51:42 -07:00
|
|
|
class="mention-link"
|
2021-06-10 02:08:31 -07:00
|
|
|
:content="mention.content"
|
|
|
|
:url="mention.url"
|
2021-06-08 04:51:42 -07:00
|
|
|
:first-mention="false"
|
|
|
|
/>
|
|
|
|
</span><button
|
|
|
|
v-if="!expanded"
|
2021-08-11 16:49:37 -07:00
|
|
|
class="button-unstyled showMoreLess"
|
2021-06-08 04:51:42 -07:00
|
|
|
@click="toggleShowMore"
|
|
|
|
>
|
|
|
|
{{ $t('status.plus_more', { number: extraMentions.length }) }}
|
|
|
|
</button><button
|
|
|
|
v-if="expanded"
|
2021-08-11 16:49:37 -07:00
|
|
|
class="button-unstyled showMoreLess"
|
2021-06-08 04:51:42 -07:00
|
|
|
@click="toggleShowMore"
|
|
|
|
>
|
|
|
|
{{ $t('general.show_less') }}
|
|
|
|
</button>
|
|
|
|
</span>
|
2021-06-08 04:34:47 -07:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<script src="./mentions_line.js" ></script>
|
|
|
|
<style lang="scss" src="./mentions_line.scss" />
|